登录
首页 » 数据结构 » 以一个Maze(m, n)的长方阵表示迷宫, 迷宫的入口是Maze(1,1), 出口是Maze(m, n), Maze(i,j)等于0表示通路, Maze(i,...

以一个Maze(m, n)的长方阵表示迷宫, 迷宫的入口是Maze(1,1), 出口是Maze(m, n), Maze(i,j)等于0表示通路, Maze(i,...

于 2023-04-15 发布 文件大小:805.00 B
0 199
下载积分: 2 下载次数: 1

代码说明:

以一个Maze(m, n)的长方阵表示迷宫, 迷宫的入口是Maze(1,1), 出口是Maze(m, n), Maze(i,j)等于0表示通路, Maze(i,j)等于1表示障碍。设计一个程序,对任意设定的迷宫,求出一条从入口到出口的通路,或得出没有通路的结论。各个命令以及相关数据的输入格式如下: 输入迷宫:C,接下来一行是m n,其中m是迷宫矩阵行数,n是迷宫矩阵列数,接下来的m行数据是迷宫矩阵,每行n个值,表示一个m*n的迷宫矩阵 求迷宫的一条通路:Q 当输入的命令为E时,程序结束-With a Maze (m, n), said the long square maze, the maze entrance is a Maze (1,1), exports is the Maze (m, n), Maze (i, j) is equal to 0, said channel, Maze (i, j) is equal to 1, said barrier. Designing a program, for any set of the maze, find a path from the entrance to the export, or come to the conclusion there is no path. The various commands and data input format is as follows: Enter the Labyrinth: C, followed by his party mn, where m is the maze of matrix rows, n is a maze of matrix columns, the next line of data is a maze m matrix, each row n- value, indicating an m* n matrix of the labyrinth a maze of pathways: Q when the input command for the E, the end of the process

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

发表评论

0 个回复

  • 邻接表实现原理 C++ 源码
    应用背景图论相关,图论相关算及其应用。邻接表,邻接矩阵 的实现方法,。。图论相关,图论相关算及其应用。邻接表,邻接矩阵 的实现方法图论相关,图论相关算及其应用。邻接表,邻接矩阵 的实现方法关键技术邻接表,邻接矩阵 的实现方法,C++源码 源代码,使用 VS 2010 C++源码 源代码C++源码 源代码 编写的,真麻烦
    2022-02-13 02:07:46下载
    积分:1
  • 相当不错 最新的
    相当不错 最新的-quite the latest
    2022-03-12 02:34:19下载
    积分:1
  • 撒地方适当方式大幅撒地方问题热问题各方的合格的释放出版人员和生日各方各地方...
    撒地方适当方式大幅撒地方问题热问题各方的合格的释放出版人员和生日各方各地方-ewr234213412
    2023-01-27 23:20:03下载
    积分:1
  • VB6 and ActiveX
    2022-01-28 03:37:05下载
    积分:1
  • 串的Replace函
    串的Replace函数-Series Replace function
    2022-07-13 06:57:19下载
    积分:1
  • 题目:设计一个题目,演示用算符优先法对算术表达式求值的过程。 概要设计 1、顺序扫描中缀算术表达式,当读到字时直接将其送至输出队列中; 2、当读到...
    题目:设计一个题目,演示用算符优先法对算术表达式求值的过程。 概要设计 1、顺序扫描中缀算术表达式,当读到数字时直接将其送至输出队列中; 2、当读到运算符时,将栈中所有优先级高于或等于该运算符弹出,送至输出队列中,再将当前运算符入栈; 3、当读入左括号时,即入栈; 4、当读到右括号时,将靠近栈顶的第一个左括号上面的运算符全部一次弹出,送至输出队列中,再删除栈中的左括号。 5、使用VS栈来存储读入的操作和运算结果,然后进行数字字符到数值的转换。 -Title: Design of a topic, presentation operator priority method with arithmetic expression evaluation process. Summary of design 1, the order of scanning arithmetic infix expressions, when they read numbers directly to the output queue 2, when they read operator, it will stack all priority higher than or equal to the operator pop-up , sent to the output queue, and then the current operator入栈 3, when read left brackets, that is, when入栈 4, when they read the right brackets, it will be near the Top-left of the first operator in brackets above All a pop-up, sent to the output queue, and then delete stacks of left brackets. 5, the use of VS stack to store read operation and computing the results of numeric characters and then proceed to the numerical co
    2022-03-18 20:45:34下载
    积分:1
  • 编写管理系统
    数据结构编写管理系统-prepared data structure management system
    2022-07-02 07:04:34下载
    积分:1
  • 车厢调度
    车厢调度----数据结构课程设计。利用的栈的结构进行设计,主要包括栈的基本操作,及进行调度的算法。-Scheduling data structure inside the curriculum design. Use the structure of the stack design, including the basic operation of the stack, and scheduling algorithms.
    2022-08-15 13:11:06下载
    积分:1
  • 本程序用来学校管理学生挡案用. 采用Access库,程序实现关键在应用ODBC 的两个类....
    本程序用来学校管理学生挡案用. 采用Access数据库,程序实现关键在应用ODBC 的两个类.-procedures for the management of schools with students archives. Access database, program lies in the application of two types of ODBC.
    2022-05-07 18:50:56下载
    积分:1
  • Completed in the ODBC asynchronous calls in C source code, runtime environment W...
    完成在ODBC中进行异步调用的C程序源代码,运行环境Windows.-Completed in the ODBC asynchronous calls in C source code, runtime environment Windows.
    2022-02-05 11:27:54下载
    积分:1
  • 696518资源总数
  • 106155会员总数
  • 8今日下载