登录
首页 » 数据结构 » Order to map any of the distance between two nodes, (2) with two

Order to map any of the distance between two nodes, (2) with two

于 2022-04-20 发布 文件大小:932.77 kB
0 195
下载积分: 2 下载次数: 1

代码说明:

求图的任两结点间的距离,(2) 用二维数组存放C和A ,C是原成本矩阵,A 是求出的距离矩阵 (3) 算法采用三重循环,其中最外层的循环变量必须代表中间结点,中层的循环变量代表头结点而内层循环变量代表尾结点。 (4) 试着把三层循环变量的顺序作些改变,最外层的循环变量仍代表中间结点,而中层循环变量代表尾结点,内层循环变量代表头结点。把两种做法所得结果作比较,看结果是否相同 (5) 显示结果要清晰易懂 (6) 本题运行结果 -Order to map any of the distance between two nodes, (2) with two-dimensional array of storage C, A, C is the original cost matrix, A is to find the distance matrix (3) The algorithm uses the triple loop, one of the most outer loop variable must be representative of intermediate nodes, the middle loop variable represents the first node and the inner loop variable represents the end nodes. (4) tried to three-loop order of the variables to make some changes, the most outer loop variables still represent intermediate nodes, while the middle loop variable represents the end nodes, the inner loop variable represents the first node. The two approaches to compare the results to see whether the results the same (5) shows the results must be clear and understandable (6) The q

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

发表评论

0 个回复

  • 最短路径 迪杰斯特拉 最短路径 迪杰斯特拉
    最短路径 迪杰斯特拉 最短路径 迪杰斯特拉-Shortest Path Floyd Shortest Path Floyd
    2023-07-28 05:30:02下载
    积分:1
  • 该程序是分布计排序,它是我所见过的各种排序方法中最快的,它的时间复杂度为O(n),但是这种排序适用于已知待排序列的上下限,并且如果上限与下限的差值比较大的话,...
    该程序是分布计数排序,它是我所见过的各种排序方法中最快的,它的时间复杂度为O(n),但是这种排序适用于已知待排序列的上下限,并且如果上限与下限的差值比较大的话,空间消耗也比较大.-distribution of the program is counting sequencing, it is I have seen the fastest sorting methods, it"s time complexity of O (n), but this sort known to be applicable to sort out the range, and if the upper and lower limits of the relatively large margin, space consumption is relatively large.
    2022-06-14 17:10:55下载
    积分:1
  • 以一个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,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
    2023-04-15 19:50:03下载
    积分:1
  • A simple access database instance, use the CGridCtrl control.
    一个简单的access数据库实例,使用了CGridCtrl控件。-A simple access database instance, use the CGridCtrl control.
    2022-04-29 03:08:24下载
    积分:1
  • 由系统随机建立一个迷宫,然后屏幕输出路径。为在完成作业的同时复习所学过的内容,完成一条路径的时候用到了递归的方法 而做全部路径的时候用非递归的方法。用户界面友好...
    由系统随机建立一个迷宫,然后屏幕输出路径。为在完成作业的同时复习所学过的内容,完成一条路径的时候用到了递归的方法 而做全部路径的时候用非递归的方法。用户界面友好,有用户使用说明.每一步操作都有说明与提示。程序运行通过,有详细的解释说明-system by the establishment of a random maze, and then screen output path. For the complete review of operations at the same time have learned from the contents of a complete path of the use of recursive method to do all the time path of non- recursive method. User friendly interface, users note. Every step of the operation have notes and hints. Running through a detailed explanation of
    2022-03-01 05:58:24下载
    积分:1
  • Merging Sort: The array is divided into a small array, in an orderly manner thro...
    归并排序:将数组划分为小数组,通过局部的有序合并,解决问题 算法平均时间复杂度: O(nlogn) -Merging Sort: The array is divided into a small array, in an orderly manner through the partial merger, the average time algorithm to solve the problem complexity: O (nlogn)
    2022-01-21 06:13:35下载
    积分:1
  • 全国计算机等级考试三级的部分上级题算法,对上机考试还不是很熟的人,很有帮助(并非书上的答案,是本人自己想的算法)...
    全国计算机等级考试三级的部分上级题算法,对上机考试还不是很熟的人,很有帮助(并非书上的答案,是本人自己想的算法)-National Computer Rank Examination some three superiors that the algorithm, right on the test machine is not very familiar with the helpful (and not the answer book, I want to own the algorithm)
    2022-07-02 07:37:16下载
    积分:1
  • At 0 and 1 backpack case for problem
    在0和1情况下进行背包问题解决,涉及多个物体的重量和价值,求得最大价值量以及分配方案。-At 0 and 1 backpack case for problem-solving, involving more than the weight of objects and values, as well as to achieve maximum value distribution program.
    2022-02-01 11:38:47下载
    积分:1
  • 一个小的闹钟程序
    一个小的闹钟程序-a small alarm clock procedures
    2022-07-15 20:15:28下载
    积分:1
  • 汽车租赁系统
    这个项目是允许客户选择他首选的车,并查看每个事情在旁边提供给客户选择购买其他汽车设备和成本汽车租赁系统。 计划测试包括修正汽车的详细信息,显示该系统的所有汽车,给选项来编辑或删除所选的汽车。后在系统中显示所有的车,我们试图更改某些字段中的数据,而不更改汽车图像,然后单击更新按钮,车信息更新但汽车图像数据库中更改为 NULL。编辑验证之后, 更新过程被成功。另外,我们试图改变用在开始时使用一个登记号码,它已成功更新。编辑验证之后, 更新过程失败,用来更新新车存在的注册号码。此外,当我们选择了一个特定的汽车的删除选项,汽车详细信息显示的选项确认删除,或取消它。而取消选项不会,确认选项将删除系统中的那辆车。 · 另外,该计划包含测试的租赁管理那里的管理员能够检查正在进行的所有租金。显示租金后, 我们选择视图选项,显示总结页面显示客户信息、 出租信息和车辆信息、 位置控制列表和状态控制列表。当我们试着单击返回按钮,以返回车上时,这一进程失败,因为我们做不将状态更改为完成,改变它的进程成功后。
    2022-03-21 21:49:24下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载