-
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
-
K-均值在 C 编程
// kmeans.c//伊桑·布罗德斯基2011年//月#include#include#include#定义SQR(X)((X)*(X))#定义MAX_CLUSTERS16#定义MAX_ITERATIONS100#定义BIG_double(INFINITY)无效失败(字符*海峡){的printf(STR);出口(-1);}双calc_distance(INT暗淡,双* P1,双* P2){双distance_sq_sum= 0;对于(INT II=0;二
- 2023-07-21 00:35:03下载
- 积分:1
-
mysql db utils 还原和备份
这是 mysql db utils project.it 支持还原和 mysql.it 的备份是轻量化的项目。它是更多友好比命令行。更多的是轻型比其它工具。
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-02-12 11:08:00下载
- 积分:1
-
利用F90接口创建nc格式文件,并写入一个虚构的2维数据
利用F90接口创建nc格式文件,并写入一个虚构的2维数据-use F90 interface to create nc format file
- 2022-06-06 15:04:45下载
- 积分:1
-
涵盖多种算法,非常全面,可以下载到硒…
包罗各种算法,相当全面,可以下载看看,具体有单元加、求进制、汉诺塔、底层编程、小写数字转为大写数字、数据结构、算法基础等等。-Cover a variety of algorithms, is very comprehensive and can be downloaded to see the specific unit plus, and band, Tower of Hanoi, the underlying programming, lower case to upper case the number of figures, data structures, algorithms, etc. basis.
- 2022-01-22 13:32:15下载
- 积分:1
-
FP的创作
创建FP-Tree树的过程。从.txt文件中读取字符型数据,然后创建FP-Tree。-The creation of FP-Tree tree process. From. Txt file to read character data, and then create a FP-Tree.
- 2022-06-28 10:25:20下载
- 积分:1
-
数据结构 c语言 教程
数据结构 c语言 教程-language data structure c Guide
- 2022-03-17 11:31:19下载
- 积分:1
-
poj1125 binary heap using the Dijkstra algorithm optimization
poj1125用二叉堆优化的Dijkstra算法-poj1125 binary heap using the Dijkstra algorithm optimization
- 2022-07-15 13:25:37下载
- 积分:1
-
Traverse the adjacent table and adjust the implementation of Boolean adjacency m...
遍历邻接表以及执行邻接矩阵布尔调整是数据结构里图的经典算法。- Traverse the adjacent table and adjust the implementation of Boolean adjacency matrix data structure is a classic graph algorithm.
- 2022-05-04 22:05:01下载
- 积分:1
-
Compact_& Repair Database
这是一个简单的实用程序,允许您在不安装MS access的情况下压缩和修复access数据库。对于使用commondialogs和简单的文件复制/删除以及compact&;repair例程的示例来说,它也很好。
- 2022-05-28 22:43:52下载
- 积分:1