摘要
针对赋权有向图最小生成树问题存在可行解的情况,根据树节点入度最大值为1的性质,提出赋权有向图最小生成树性质。采用反证法,调整生成树根节点到弧头的路径来证明赋权有向图MST性质的正确性。基于赋权有向图MST性质,给出改进的Prim和Kruskal算法及其时间复杂度分析。实验给出构造某赋权有向图实例最小生成树的具体步骤,表明这2种算法能正确有效地构造赋权有向图最小生成树。
According to the existence of feasible solutions,this paper proposes the Minimum Spanning Tree(MST) characteristic of weighted directed graph based on the criteria that the maximum in-degree of tree node is less than or equal to one. It proves the correctness of MST characteristic with the reduction to absurdity,by adjusting the path from root of spanning tree to sink of directed edge. Based on the MST characteristic,it also proposes the improved Prim algorithm,the improved Kruskal algorithm and its time complexity analysis. It gives the MST construction of the specified weighted directed graph. Experiment and analysis show that the improved Prim and Kruskal algorithm can find the MST of weighted directed graph correctly and effectively.
出处
《计算机工程》
CAS
CSCD
北大核心
2010年第2期61-63,66,共4页
Computer Engineering
基金
上海市教育委员会科研创新基金资助项目(08YZ13)
江西省教育厅科学技术研究基金资助项目(GJJ09590)