登录
首页 » 数据结构 » Prim algorithm using minimum spanning tree of the experimental procedures used i...

Prim algorithm using minimum spanning tree of the experimental procedures used i...

于 2022-03-16 发布 文件大小:92.73 kB
0 200
下载积分: 2 下载次数: 1

代码说明:

用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.

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

发表评论

0 个回复

  • 上传几个源代码,比较简单。用标准c++写的。
    上传几个数据结构源代码,比较简单。用标准c++写的。-upload a few data source code structure, relatively simple. Standard c writes.
    2022-01-30 14:19:15下载
    积分:1
  • 一个包装好的树型模板类,可以实例化树型.
    一个包装好的树型模板类,可以实例化树型数据结构.-a packed tree template category, examples of the tree data structure.
    2022-03-20 17:51:45下载
    积分:1
  • 求解一个最短路径问题程序,可以参考一下求一个Dijkstra优化算法! 谢谢了 目的是求给定两点之间的最短距离 或者改一下我的程序也行...
    求解一个最短路径问题程序,可以参考一下求一个Dijkstra优化算法! 谢谢了 目的是求给定两点之间的最短距离 或者改一下我的程序也行 -shortest path to solve a problem of procedure, can seek a reference Dijkstra algorithm optimization! Thank you, the purpose is scheduled for 2:00 to the shortest distance between or change my procedure OK
    2022-03-01 07:56:19下载
    积分:1
  • 最大流问题的最短增广路径算法 是算法中的重要部分
    最大流问题的最短增广路径算法 是算法中的重要部分 -Maximum flow problem of the shortest augmenting path algorithm is an important part of the algorithm
    2022-02-09 12:14:24下载
    积分:1
  • 1. 在IBConsole中添加两个用户LOGIN和MATER,密码均为PASSWORD。 2. 用MISDBA用户登录MISDB库。 3. 在IS...
    1. 在IBConsole中添加两个用户LOGIN和MATER,密码均为PASSWORD。 2. 用MISDBA用户登录MISDB数据库。 3. 在ISQL中,输入第9章提供的SQL语句;或者根据表9-1至表9-8在SQL Explorer中自行创建数据表。数据库创建后需要分配LOGIN和MATER用户的访问权限。 4. 根据表9-9和表9-10设置初始数据,另外需要在PERSON数据表中设置一个用于登录系统的用户(ID=’MAT’,PASSWD=’PASSWORD’,AUTHORITY=’7’,STATE=’F’),同时在PART表中添加ID为’0000000000’的零件,名称为“。 5. 除了修改数据库连接的属性,还需要修改数据模块中LOGIN方法的相关用户密码。 -1. In addition two IBConsole users LOGIN and Mater. passwords are PASSWORD. 2. User login with MISDBA MISDB database. 3. In ISQL, the importation of Chapter 9 of SQL; Or, according to Table 9-1 to Table 9-8 in SQL Explorer to create data sheets. After creating the database needs and Mater distribution LOGIN user access permissions. 4. According to Table 9-9 and Table 9-10 initial data set, Another need PERSON data tables set up a registration system for users (ID = "MAT" PASSWD = "PASSWORD" AUTHORITY ="7 ", STATE = "F"), PART table at the same time adding ID to"0000000000 "parts, name. " 5. In add
    2022-08-02 16:54:09下载
    积分:1
  • 湖南大学ACM
    湖南大学ACM-OJ的部分题目代码,对学习数据结构和算法很有帮助-Hunan University ACM-OJ part of the subject code, the data structure and algorithm to learn helpful
    2022-07-27 15:57:33下载
    积分:1
  • 路径规划A*算法
    如果一个估价函数可以找出最短的路径,我们称之为可采纳性。A*算法是一个可采纳的最好优先算法。A*算法的估价函数可表示为:f"(n) = g"(n) + h"(n) 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报 打分 发表评论 暂无评论
    2023-05-31 17:50:03下载
    积分:1
  • 开括号和比括号的匹配,内容,很不错
    开括号和比括号的匹配,数据结构内容,很不错-More than brackets and brackets to open the match, the contents of data structure
    2023-08-24 01:50:03下载
    积分:1
  • 一个库连接池的完整代码,根网上找来的代码改写。在jbuilder下测试完全通过 使用时注意修改properties文件。用于商业用途请与原开发者联系。原则...
    一个数据库连接池的完整代码,根据网上找来的代码改写。在jbuilder下测试完全通过 使用时注意修改properties文件。用于商业用途请与原开发者联系。原则上只用于学习目的-a database connection pool integrity code, according to the Internet brought the code rewritten. In JBuilder fully tested through the use of properties when changes to documents. For commercial purposes, please contact the original developers. In principle, only for the purpose of learning
    2022-05-13 01:17:31下载
    积分:1
  • 适合用来做K_Means 和K_NN的,一共150组,分成3个簇。
    适合用来做K_Means 和K_NN的数据,一共150组,分成3个簇。-K_Means and make suitable for K_NN data, a total of 150 groups, divided into three clusters.
    2022-01-28 02:09:09下载
    积分:1
  • 696518资源总数
  • 105714会员总数
  • 27今日下载