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 等数据库收录! |