登录
首页 » Windows开发 » 在 C# 中的迷宫求解 (最短路径)

在 C# 中的迷宫求解 (最短路径)

于 2023-05-25 发布 文件大小:84.71 kB
0 253
下载积分: 2 下载次数: 1

代码说明:

介绍了一个简单的技术,以找到一个 2D 的迷宫中两点间最短路径。类似的应用程序在这种情况下使用图,但本文将展示如何,这可以没有头痛的图。它使用类似于广度优先搜索技术。MazeSolver 类商店迷宫作为一个二维整数数组的值 "0" 开放 (可用) 节点和非零这对已关闭的节点 (墙)。如果某条路径将被发现,一种新的二维整数数组创建的路径 PathCharacter 其默认值是 "100"。类也可以跟踪对角的路径,如果它允许这样做 贯穿这篇文章,我们将使用"节点"来引用矩阵 (二维整数数组表示一个迷宫) 的元素。我假设读者是熟悉图和它的术语 (边缘、 节点等)。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 网吧管理系统
    系统特点: 用户管理 计费 客户端PC机定时器(添加,修改,暂停,恢复) 客户端PC重新启动和关机 注意:您必须下载CrystalReport运行时引擎(CRRuntime_32bit_13_0_1/ CRRuntime_64bit_13_0_1)的VS2010to能生成报表的功能。安装程序(定时器),用于客户端PC isincluded。我建议使用单击一次以制作安装程序的Internet CafeManager。我有一些疑问,请放下一些评论这个职位。
    2022-01-21 19:07:04下载
    积分:1
  • 一个jsp的简明教程
    一个jsp的简明教程-a Concise Guide to the jsp
    2022-03-21 22:45:40下载
    积分:1
  • RGB, the form of diversification, it is suitable for beginners to use, very good...
    RGB,形式多样化,很适合初学者使用,很好的代码-RGB, the form of diversification, it is suitable for beginners to use, very good code
    2022-05-16 00:04:43下载
    积分:1
  • 电子学习系统使用JSP
    这是一个小型项目,模拟电子学习系统。它是用JSP编码的。数据库是mysql。数据库连接代码包含在代码中。
    2023-08-13 21:55:03下载
    积分:1
  • use of this procedure : 1. You can monitor the computer running program, on your...
    利用这个程序: 1.可以监视在你的电脑运行的程序, 把在你的电脑运行过的程序的时间和名字记录下来 2.可以阻止你规定的禁用程序的执行, 比如不让玩游戏。 3.这个程序需要加入注册表, 在系统启动时就运行, 达到监视的目的。注册表大概都不陌生,就是这里: HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun-use of this procedure : 1. You can monitor the computer running program, on your computer one of the procedures of the time and record the names of two. You can stop the implementation of the banned procedures, such as not playing games. 3. This procedure needs to join the registry, the system started running on to achieve the purpose of surveillance. The registry probably not unfamiliar, is here : HKEY_LOCAL_MACHINE SOFTWARE Microsoft Windows CurrentVersion Run
    2022-02-13 15:25:41下载
    积分:1
  • use com to read/write excel files
    windows下通过com服务读写excel的例子-use com to read/write excel files
    2022-09-22 00:30:02下载
    积分:1
  • CATIA二次复制功能代码
    CAA二次开发一个模块的功能介绍,复制功能的实现,通过交互式点选 复制零件
    2022-02-27 03:41:19下载
    积分:1
  • 和微软扫 雷程序类似的扫 雷程序源代码
    和微软扫 雷程序类似的扫 雷程序源代码-And Microsoft a similar de-mining program source code mine
    2022-11-15 21:25:03下载
    积分:1
  • 高质量C++编程指南,一本介绍c++得书,叙述得及其详尽。
    高质量C++编程指南,一本介绍c++得书,叙述得及其详尽。-quality C programming guides, introduced a c++ book, narrated and detailed.
    2022-03-05 08:01:40下载
    积分:1
  • windows 进程守护软件,可以定义响应时间,当指定进程被关闭时自动打。...
    windows 进程守护软件,可以定义响应时间,当指定进程被关闭时自动打开。-guardian of windows process software, response time can be defined, when the specified process was shut down automatically when opened.
    2022-08-20 08:58:30下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载