-
Order to map any of the distance between two nodes, (2) with two
求图的任两结点间的距离,(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
- 2022-04-20 12:55:19下载
- 积分:1
-
在一台机器上只能处理n个作业,每个作业均可在单位时间内完成,又假定每个作业都有一个截止期限,当且仅当作业i在它的截止期限之前完成时,可以获得一定的效益。
给...
在一台机器上只能处理n个作业,每个作业均可在单位时间内完成,又假定每个作业都有一个截止期限,当且仅当作业i在它的截止期限之前完成时,可以获得一定的效益。
给定作业序列,要求一种作业排序算法,使获得的总效益值最大。
-On a single machine can handle only n-jobs, each job can be completed within the unit, but also assumes that each job has a deadline, if and only if job i in its completed before the deadline, they can to receive some benefits.
For a given job sequence, requires a job sorting algorithm, so that the greatest value of total benefits received.
- 2022-12-08 00:45:02下载
- 积分:1
-
its about the radix sort technique
its about the radix sort technique
- 2022-02-05 14:37:24下载
- 积分:1
-
Prime number algorithm of the program to quickly calculate the first n a prime n...
素数算法的程序,能快速计算出前n个素数
- 2022-01-26 05:43:43下载
- 积分:1
-
ADOClient
ADOClient通过ADO调用后台数据库,支持ORACLE,MSSQL,ACCESS等数据库-ADOClient
- 2023-01-29 15:05:03下载
- 积分:1
-
八数码难题用vc++编写
八数码难题用vc++编写-eight digital problem with the preparation vc
- 2022-06-27 03:46:07下载
- 积分:1
-
Seek the shortest path, based on the VISUAL C++ Developed source code belonging...
求最短路径,基于VISUAL C++开发的源代码 属于数据结构-Seek the shortest path, based on the VISUAL C++ Developed source code belonging to the data structure
- 2022-02-14 15:27:45下载
- 积分:1
-
这个程序是按照离散数学教材上给出的算法写的,是字典序的全排列算法。空间复杂度是O(n),时间复杂度基本上是O(n^2)。缺点是只用于打印并没有储存所有的结果。...
这个程序是按照离散数学教材上给出的算法写的,是字典序的全排列算法。空间复杂度是O(n),时间复杂度基本上是O(n^2)。缺点是只用于打印并没有储存所有的结果。-the procedure is in accordance with the materials on discrete mathematics algorithm is written, is a wholly-lexicographic order algorithm. Space complexity is O (n), is basically time complexity is O (n ^ 2). Only drawback is not for print, and store all the results.
- 2023-07-28 06:00:02下载
- 积分:1
-
Linear chain, said the table when the realization of all basic operations, such...
线性表的链式表示时各基本操作的实现,例如链表的初始化,删除,添加,-Linear chain, said the table when the realization of all basic operations, such as the initialization list, delete, add, and so on
- 2022-08-19 16:08:07下载
- 积分:1
-
VC++ ACCESS简单的数据库系统 ODBC
VC++ ACCESS简单的数据库系统 ODBC-VC++ ACCESS simple ODBC database system
- 2022-03-31 10:03:34下载
- 积分:1