期刊文献+

求无向赋权图最小生成树的两种算法的探讨 被引量:1

Discussions about the Two Algorithms for Finding the Minimal Spanning Tree of an Undirected Weighted Graph
在线阅读 下载PDF
导出
摘要 对求无向赋权图最小生成树两种算法分别是PRIM算法和KRUSKAL算法。本文通过用堆改进了PRIM方法中选择最小边的方法。结合C语言的特点,实现了集合的划分和合并。对KRUSKAL方法进行了探讨,弥补了一些数据结构教科书上未给出C语言实现的KRUSKAL算法的不足。 The two algorithms for finding the minimal spanning tree of an undirected weighted graph are PRIM algorithm and KRUSKAL algorithm. This paper improves the method for selecting the minimal edge in PRIM algorithm by using a heap. Combining the characteristics of programming langrage C, it implements set partition and merger and explores the realization of KRUSCAL algorithm. This overcomes the shortage of not giving the KRUSCAL algorithm in langrage C in some data structure textbooks.
出处 《华东船舶工业学院学报》 2004年第2期27-32,共6页 Journal of East China Shipbuilding Institute(Natural Science Edition)
关键词 无向赋权图 最小生成树 PRIM算法 KRUSKAL算法 C语言 undirected weighted graph minimal spanning tree heap
  • 相关文献

参考文献1

  • 1唐策善 李龙厨.数据结构[M].北京:高等教育出版社,1995.201-202.

共引文献1

同被引文献2

引证文献1

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部