基于Prim算法的最小生成树优化研究.pdf

  1. 1、本文档共4页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
基于Prim算法的最小生成树优化研究

( ) 计算机工程与设计 Computer Engineering and Design 3244 2009,30 13 计算机工程与设计 Computer Engineering and Design 开发与应用 基于Prim 算法的最小生成树优化研究 1 2 江 波 , 张 黎 (1. 贺州学院计算机科学与工程系,广西贺州542800 ;2. 贺州学院 图书馆,广西 贺州542800) 摘 要:在图的最小生成树算法中,Prim 和Kruskal 算法分别适用于稠密图和稀疏图,但两种算法都不能根据图的顶点数、顶 点的度数以及边的分布情况自适应地改变自身。由此,对Prim 算法进行改进,从图中每个顶点的度数入手,采取删除某些无 用边的思想方法,给出了一个寻找最小生成树的算法,使其能动态调整自身的性能,既适合于稠密图,又适合于稀疏图。经 实例验证,利用改进的Prim 最小生成树算法,根据无向图的顶点数和顶点的度数动态确定求解最小生成树的时间,并将求解 的时间复杂度最小化。 关键词:Prim 算法; 最小生成树; 无向图; 邻接矩阵; 邻接多重表 中图法分类号:TP301.6 文献标识码:A 文章编号:1000-7024 (2009) 13-3244-04 Research on minimum spanning tree based on prim algorithm 1 2 JIANG Bo , ZHANG Li (1. Department of Computer Science and Engineering, Hezhou University, Hezhou 542800, China; 2. Library of Hezhou University, Hezhou 542800, China) Abstract :In the minimum spanning tree algorithm of graph, Prim and Kruskal algorithm are respectively applied to dense graph and sparse graph. But both cannot dynamically regulate their own capability based on peak number, edge number and edge distribution. Prim starts from the degree of the vertex and then delete some useless edges from the graph. Therefore, improvement on the Prim algo- rithm, enabling it dynamically regulates its capability, can be applied to both dense graph and sparse graph. After experiments, the method by improving on the Prim algorithm can effectively reduce the search space and have the advantage of speed and so on. Key words :prim algorithm; minimum spanning tree; undirected graph; adj acency matrix; adj acency mul

文档评论(0)

hhuiws1482 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:5024214302000003

1亿VIP精品文档

相关文档