登录
首页 » 数据结构 » 以一个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 181
下载积分: 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 个回复

  • 应用程序,面向课程设计
    应用程序,面向课程设计-applications, design-oriented courses
    2022-01-28 17:24:14下载
    积分:1
  • 清华大学 严蔚敏 PPT+习题答案
    清华大学数据结构 严蔚敏 PPT+习题答案-Tsinghua University, Yan Wei-min data structure PPT+ Exercises Answer
    2022-03-20 23:22:42下载
    积分:1
  • 短信开发利用kfxt和MSComm控件
    sms develop use kfxt and mscomm and suce-sms develop and use kfxt mscomm and suce
    2022-08-08 19:25:25下载
    积分:1
  • 操作系统中的文件是通过文件目录项来管理的,为了管理和查找的方便,按层次把文件目录项组织起来,同一层上的目录成该层上的目录,第一层为根目录,一下为各层子目录。...
    操作系统中的文件是通过文件目录项来管理的,为了管理和查找的方便,按层次把文件目录项组织起来,同一层上的目录构成该层上的目录,第一层为根目录,一下为各层子目录。 假设以一串字符代表一个文件,每个字符表示一个记录。 在建立上述目录结构的基础上,建立相应的管理系统并要求完成以下各项操作: 1. 一次建立各个文件 2. 查访两个用户的所有文件 3. 查访用户sun 是否有文件AB 4. 删除用户sun的文件AC,然后在分别查访两个用户的全部文件,检查是否已经删除文件AC 5. 撤销用户sun,并检查是否被删除 6. 删除用户sun的全部文件,然后在撤销sun用户,在查访用户sun, 检查其是否已被撤销。 在建立一个新用户及新用户的两个文件,然后查该两个用户的所有文件-operating system, the paper is to document catalog items to the management, in order to manage and facilitate the search, according to the document level directory entries organizations, the same floor on which constitute the directory contents on the floor, the first layer of the root directory to look for levels of subdirectories. Assuming that the representative of a string of characters, each character expressed a record. In establishing the directory structure on the basis of the establishment of a corresponding system of management and asked to accomplish the following : 1. Once established two separate files. Visits to the two users of all three docum
    2022-01-26 01:47:05下载
    积分:1
  • algorithm, foaming, selection, sculpture, a certain reference value.
    算法,发泡,选择,雕刻,有一定的参考价值。
    2022-04-08 12:58:45下载
    积分:1
  • 、算法 矩阵运算程序
    数据结构、算法 矩阵运算程序-data structure, algorithm matrix calculation procedures
    2023-08-12 06:55:02下载
    积分:1
  • Solving clues to binary tree node before the trend and follow
    求解线索二叉树中结点前趋和后继的算法以及以相应次序遍历线索二叉树的算法,二叉树的线索化算法的设计-Solving clues to binary tree node before the trend and follow-up algorithm and the corresponding sequence of binary tree traversal algorithm clues, clues to binary tree algorithm design
    2022-01-25 14:32:44下载
    积分:1
  • Transfert tables or sheet EXCEL to ACCESS
    查看transfert表或EXCEL工作表以访问和检索
    2022-11-16 03:05:04下载
    积分:1
  • 一个会议签到系统
    一个会议签到系统-a meeting attendance system
    2023-04-11 08:50:04下载
    积分:1
  • 在 php 中的登录系统
    供应链管理 — — 在 PHP 开发网上考勤系统。 这个软件将帮助您管理组织出席中复杂的交互方式。它的设计与 PHP 技术。您可以管理网上考勤。网上考勤管理软件将为您提供设施,以操作毫无阻碍地通过互联网出勤。
    2022-08-12 15:15:15下载
    积分:1
  • 696518资源总数
  • 105873会员总数
  • 12今日下载