Abstract
We describe an algorithm for finding a minimum spanning tree of the weighted complete graph induced by a set ofn points in Euclideand-space. The algorithm requires nearly linear expected time for points that are independently uniformly distributed in the unitd-cube. The first step of the algorithm is the spiral search procedure described by Bentleyet al. [BWY82] for finding a supergraph of the MST that hasO(n) edges. (The constant factor in the bound depends ond.) The next step is that of sorting the edges of the supergraph by weight using a radix distribution, or “bucket,” sort. These steps require linear expected time. Finally, Kruskal's algorithm is used with the sorted edges, requiringO(nα(cn, n)) time in the worst case, withc>6. Since the function α(cn, n) grows very slowly, this step requires linear time for all practical purposes. This result improves the previous bestO(n log log*n), and employs a much simpler algorithm. Also, this result demonstrates the robustness of bucket sorting, which requiresO(n) expected time in this case despite the probability dependency between the edge weights.
Similar content being viewed by others
References
J. L. Bentley, B. Weide, and A. C. Yao. Optimal expected-time algorithms for closest-point problems.ACM Transactions on Mathematical Software,6:563–579, 1982.
L. P. Devroye. Moment inequalities for random variables in computational geometry.Computing,30:111–119, 1983.
H. G. Eggleston.Convexity. Cambridge University Press, Cambridge, 1958.
M. Fredman and R. E. Tarjan. Fibonacci heaps and their uses in improved network optimization problems.Proc. 25th IEEE FOCS, pp. 338–346, 1984.
H. N. Gabow,Z. Galil, and T. H. Spencer. Efficient implementation of graph algorithms using contraction.Proc. 25th IEEE FOCS, pp. 155–164, 1984.
K. J. Supowit. The relative neighborhood graph, with an application to minimum spanning trees.Journal of the Association for Computing Machinery,30:428–447, 1983.
R. E. Tarjan.Data Structures and Network Algorithms. SIAM, Philadelphia, PA, 1983.
A. C. Yao. On constructing minimum spanning trees ink-dimensional spaces and related problems.SIAM Journal on Computing,11:721–736, 1982.
Author information
Authors and Affiliations
Additional information
Communicated by C. K. Wong.
Rights and permissions
About this article
Cite this article
Clarkson, K.L. An algorithm for geometric minimum spanning trees requiring nearly linear expected time. Algorithmica 4, 461–469 (1989). https://doi.org/10.1007/BF01553902
Received:
Revised:
Issue Date:
DOI: https://doi.org/10.1007/BF01553902