作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2011, Vol. 37 ›› Issue (23): 241-243. doi: 10.3969/j.issn.1000-3428.2011.23.082

• 开发研究与设计技术 • 上一篇    下一篇

一种求解最小生成树问题的算法

孙小军 1,刘三阳 2,王志强 3   

  1. (1. 宝鸡文理学院数学系,陕西 宝鸡 721013;2. 西安电子科技大学理学院,西安 710071;3. 总装备部驻天水地区军事代表室,陕西 宝鸡 721006)
  • 收稿日期:2011-07-15 出版日期:2011-12-05 发布日期:2011-12-05
  • 作者简介:孙小军(1978-),男,副教授、硕士,主研方向:网络优化;刘三阳,教授、博士生导师;王志强,硕士
  • 基金资助:
    陕西省教育厅专项科研计划基金资助项目(11JK0509);宝鸡文理学院基金资助重点项目(ZK0931)

Algorithm for Solving Minimum Spanning Tree Problem

SUN Xiao-jun 1, LIU San-yang 2, WANG Zhi-qiang 3   

  1. (1. Dept. of Mathematics, Baoji University of Arts and Sciences, Baoji 721013, China; 2. School of Science, Xidian University, Xi’an 710071, China; 3. General Armament Department Military Representative Office in Tianshui Region, Baoji 721006, China)
  • Received:2011-07-15 Online:2011-12-05 Published:2011-12-05

摘要: 基于节点合并和反向追踪的思想,提出一种求解最小生成树问题的算法。该算法依据网络邻接矩阵,将与源节点相邻的节点逐步合并为新的源节点,使网络中的所有节点合并为一个点,借助引入的前点标号数组得到网络的最小生成树,对算法正确性与算法复杂度进行分析。将该算法应用于某高速公路网工程建设方案,结果证明了算法的有效性。

关键词: 最小生成树, 节点合并, 反向追踪, 前点标号数组, 邻接矩阵

Abstract: This paper presents an algorithm for solving Minimum Spanning Tree(MST) problem based on the node combination and reverse direction tracing method. According to the adjacent matrix, the source node and the adjacent nodes are combined into new source node repeatedly and all the nodes in the network are combined into one single node. By introducing the front point label array, it gets the MST. The correctness and complexity of the algorithm are analyzed. It applies the algorithm to the highway system engineering construction plan, the results prove the validity of the algorithm.

Key words: Minimum Spanning Tree(MST), node combination, reverse direction tracing, front point label array, adjacent matrix

中图分类号: