-
Prim algorithm using minimum spanning tree of the experimental procedures used i...
用prim算法实验最小生成树
本程序中用到函数adjg( ),此函数作用是通过接受输入的点数和边数,建立无向图。函数prg( )用于计算并输出无向图的邻接矩阵。函数prim( )则用PRIM算法来寻找无向图的最小生成树
定义了两个数组lowcost[max],closest[max],若顶点k加入U中,则令lowcost[k]=0。
定义二维数组g[ ][ ]来建立无向图的邻接矩阵。
-Prim algorithm using minimum spanning tree of the experimental procedures used in function adjg (), this function is through the acceptance of input points and edges, the establishment of a directed graph. Function of prg () used to calculate and output undirected graph of adjacency matrix. Function prim () is used PRIM Algorithm to find the undirected graph of the minimum spanning tree array defines two lowcost [max], closest [max], if it joined the U of k vertices, then the lowcost [k] = 0. The definition of two-dimensional array g [] [] to create a undirected graph of adjacency matrix.
- 2022-03-16 20:21:07下载
- 积分:1
-
大学毕业的课题,可能比较简单一点,入门的人可以
大学毕业的课题,可能比较简单一点,入门的人可以-University graduate topics that may be relatively simple, entry can
- 2022-02-04 15:47:49下载
- 积分:1
-
《数据结构》配书光盘
内容包括:线性表,栈和队列,串,数组与广义表,树,图,查找,排序等所以算法。
该光盘中配有《数据结构》一书中的所有算法、每一个算法...
《数据结构》配书光盘
内容包括:线性表,栈和队列,串,数组与广义表,树,图,查找,排序等所以算法。
该光盘中配有《数据结构》一书中的所有算法、每一个算法的 C 程序(后缀为 .cpp 的文件)及可执行文件(后缀为 .exe 的文件)。-"data structure" assigned CD include : linear table, stack and queue, strings, arrays and broad scale tree, map, search, sort, etc. So algorithm. The CD-ROM equipped with a "data structure," a book of all the algorithm, the algorithm for each one C (suffix. Cpp files) and the executable file (wayward. Exe files).
- 2022-05-14 19:58:49下载
- 积分:1
-
各种排序算法,包括快速排序、插入排序、选择排序、SHELL排序...
各种排序算法,包括快速排序、插入排序、选择排序、SHELL排序-various sorting algorithms, including rapid sorting, insertion sort, select, in order of ranking SHELL
- 2022-01-27 17:32:23下载
- 积分:1
-
彩票号码
随机产生6个数字,并且数字产生不能相互重复,定义了一个时间变量,避免两次产生的数据相同
- 2022-07-23 20:35:14下载
- 积分:1
-
是数据结构中经常见到的矩阵运算,包括+,
是数据结构中经常见到的矩阵运算,包括+,-,* 。-data structure is often seen matrix operations, including+,-,*.
- 2023-06-01 00:25:03下载
- 积分:1
-
任意的表达式求解! 包括函数。
任意的表达式求解! 包括函数。-arbitrary formula to solve! Including function.
- 2022-12-09 13:55:02下载
- 积分:1
-
普里姆算法求最小生成树(邻接表存储),用c++描写的,数据结构中的...
普里姆算法求最小生成树(邻接表存储),用c++描写的,数据结构中的-Prim algorithm for minimum spanning tree (adjacent table storage), with c++ description, data structure
- 2022-02-06 07:06:49下载
- 积分:1
-
利用随机函数产生30000个随机整数,利用插入排序、起泡排序、选择排序、快速排序、堆排序、归并排序等排序方法进行排序,并统计每一种排序上机所花费的时间...
利用随机函数产生30000个随机整数,利用插入排序、起泡排序、选择排序、快速排序、堆排序、归并排序等排序方法进行排序,并统计每一种排序上机所花费的时间-Using random functions to generate 30,000 random integers, the use of insertion sort, bubbling sort, select sort, quick sort, heap sort, merge sort and other sorting methods to sort and sort each type of statistics on the time machine
- 2023-01-11 09:50:04下载
- 积分:1
-
学生信息管理系统(C)
作者说明:这是作者在自己编写的一个C语言程序——一学生信息管理系统,这是我在数据结构实验课上编写的,相对来说比较简单,但这对于初学者来说是大有裨益的。该系统实现了插入、显示、查询、删除、排序、统计等一些基本功能,希望能给读者带来帮助!谢谢你的支持!
- 2023-06-23 01:05:04下载
- 积分:1