登录
首页 » C++ » Maze-code

Maze-code

于 2014-01-20 发布 文件大小:3KB
0 226
下载积分: 1 下载次数: 6

代码说明:

  以一个m×n的长方阵表示迷宫,0和1分别表示迷宫中的通路和障碍。设计一个程序,对任意设定的迷宫,求出一条从入口到出口的通路,或得出没有通路的结论。首先用二维数组存储迷宫数据,迷宫数据由用户输入。一个以链表作存储结构的栈类型,然后编写一个求解迷宫的递归或非递归程序。求得的通路以三元组(i,j,d)形式输出,其中:(i,j)指示迷宫中的一个坐标,d表示走到下一坐标的方向(东、南、西、北四个方向所用代表数字,自行定义) (With an m × n the long square maze, 0 and 1, respectively maze of pathways and obstacles. Design a program, for any set of the maze, find a path from the inlet to the outlet, or come to the conclusion there is no path. First of a two-dimensional array to store the data maze, maze data input by the user. A linked list storage structure for stack type, and then write a recursive or non-recursive solving the maze procedure. Obtained access to triples (i, j, d) in the form of output, of which: (i, j) indicates the maze of a coordinate, d represents the coordinates walked next direction (east, south, west, north four directions used on behalf of a digital, self-defined))

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

发表评论

0 个回复

  • sdgbf dChAT SDB
    xbcnv提示:你将获得积分(0-20)的基础上,你的产品质量
    2022-03-11 04:21:10下载
    积分:1
  • tree
    使用非递归的方法遍历二叉树,可以直接运行。( Non-recursive binary tree traversal.)
    2013-12-04 16:08:43下载
    积分:1
  • delphi控件 一般开发人员都用,使用的库控件
    delphi控件 一般开发人员都用,使用的数据库控件-general controls delphi developers are using the database control
    2022-03-19 19:16:02下载
    积分:1
  • pro.2
    链表练习 掌握数据的链式存储结构及它们在计算机中的实现方法。(Chain store chain exercises control structure of the data and their implementation in the computer.)
    2014-06-05 21:34:05下载
    积分:1
  • Rome dominated the number of algorithms, on the generalized Petersen graph P (n,...
    罗马支配数的算法,对广义Petersen图P(n,2)的罗马支配数进行了研究-Rome dominated the number of algorithms, on the generalized Petersen graph P (n, 2) the number of Roman domination of the research
    2022-02-04 22:11:59下载
    积分:1
  • CStruct
    易语言自定义的数据结构,学习的最佳选择。(Easy Language custom data structures, learning the best choice.)
    2014-07-06 17:56:17下载
    积分:1
  • This is my personal vc done in the context of the realization of the maze. You c...
    这是我个人做的在vc环境下的迷宫问题的实现。各位可以参考或指教!-This is my personal vc done in the context of the realization of the maze. You can reference or enlighten!
    2023-02-28 21:45:03下载
    积分:1
  • 涵盖多种算法,非常全面,可以下载到硒…
    包罗各种算法,相当全面,可以下载看看,具体有单元加、求进制、汉诺塔、底层编程、小写数字转为大写数字、数据结构、算法基础等等。-Cover a variety of algorithms, is very comprehensive and can be downloaded to see the specific unit plus, and band, Tower of Hanoi, the underlying programming, lower case to upper case the number of figures, data structures, algorithms, etc. basis.
    2022-01-22 13:32:15下载
    积分:1
  • 大二,,8套期末考试试题,仅供学习之用
    大二,数据结构,8套期末考试试题,仅供学习之用-Sophomore year, data structure, 8 sets of examination papers at the end, only learning
    2022-12-24 16:00:03下载
    积分:1
  • 数据结构--树的常见操作及维护算法的实现-data structure-- a common tree operation and maintenance of the algorithm to achieve
    2022-06-16 13:51:04下载
    积分:1
  • 696518资源总数
  • 106208会员总数
  • 21今日下载