首页 | 本学科首页   官方微博 | 高级检索  
     


An alternative for the implementation of Kruskal's minimal spanning tree algorithm
Authors:Jyrki Katajainen  Olli Nevalainen
Affiliation:Department of Mathematical Sciences, University of Turku, Turku, Finland
Abstract:An application of the bucket sort in Kruskal's minimal spanning tree algorithm is proposed. The modified algorithm is very fast if the edge costs are from a distribution which is close to uniform. This is due to the fact that the sorting phase then takes for an m edge graph an O(m) average time. The O(m log m) worst case occurs when there is a strong peak in the distribution of the edge costs.
Keywords:
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号