TOPICS
Search

Minimum Spanning Tree


The minimum spanning tree of a weighted graph is a set of edges of minimum total weight which form a spanning tree of the graph. When a graph is unweighted, any spanning tree is a minimum spanning tree.

The minimum spanning tree can be found in polynomial time. Common algorithms include those due to Prim (1957) and Kruskal's algorithm (Kruskal 1956). The problem can also be formulated using matroids (Papadimitriou and Steiglitz 1982). A minimum spanning tree can be found in the Wolfram Language using the command FindSpanningTree[g].

Khanna et al. (2026) reported a uniform deterministic algorithm with worst-case running time O(m) for connected undirected multigraphs with m edges. It accesses real edge weights only through pairwise comparisons. The proof gives a linear bound on the number of comparisons and uses the reduction of Pettie and Ramachandran (2002) to obtain the running-time bound. The authors credit Astra 6.2 with generating the main ideas and report checking and simplifying the proof.

The Season 1 episodes "Vector" and "Man Hunt" (2005) and Season 2 episode "Rampage" (2006) of the television crime drama NUMB3RS feature minimal spanning trees.

For a finite point set X in Euclidean space of arbitrary dimension, let M(X) be its minimum spanning-tree length and M_3(X) the minimum length subject to maximum vertex degree at most 3. Han et al. (2026) proved

 M_3(X)<=(757)/(500)M(X)=1.514M(X).

The tree uses only the given points as vertices; this is not a Steiner tree assertion. Their proof gives a deterministic construction in polynomial time once an unrestricted minimum spanning tree is supplied. The finite estimates use rational comparisons. A stronger intermediate statement gives, for any root v and finite list of points a_i, a Hamiltonian path starting at v with length at most (757/500)sum_(i)||a_i-v||. This path bound uses the sum of root-to-point distances, rather than M(X).

For D>=2, they also give the exact ratio

 (M_3(X_D))/(M(X_D))=(3+(2D-3)sqrt(2))/(2D),

where X_D={0,+/-e_1,...,+/-e_D} consists of the origin and the vertices of a cross polytope, with e_i the coordinate unit vectors. This yields a lower bound for the worst ratio in dimension D, without asserting that X_D is extremal among all point sets.


See also

Kruskal's Algorithm, Maximum Spanning Tree, Spanning Tree

Explore with Wolfram|Alpha

References

Fredman, M. L. and Tarjan, R. E. "Fibonacci Heaps and Their Uses in Network Optimization." J. ACM 34, 596-615, 1987.Graham, R. L. and Hell, P. "On the History of the Minimum Spanning Tree Problem." Ann. History Comput. 7, 43-57, 1985.Han, W.; Ismailescu, D.; and Kim, G. "Degree-Three Euclidean Spanning Trees Within a Factor of 1.514 of the Minimum." 18 Nov 2026. https://arxiv.org/abs/2611.23703.Khanna, S.; Putterman, A.; and Song, J. "A Deterministic Linear Time Algorithm for Minimum Spanning Tree." Electronic Colloquium on Computational Complexity, Report TR26-339, 23 Nov 2026. https://eccc.weizmann.ac.il/report/2026/339/.Kruskal, J. B. "On the Shortest Spanning Subtree of a Graph and the Traveling Salesman Problem." Proc. Amer. Math. Soc. 7, 48-50, 1956.Papadimitriou, C. H. and Steiglitz, K. Combinatorial Optimization: Algorithms and Complexity. Englewood Cliffs, NJ: Prentice-Hall, 1982.Pemmaraju, S. and Skiena, S. "Minimum Spanning Trees." §8.2 in Computational Discrete Mathematics: Combinatorics and Graph Theory in Mathematica. Cambridge, England: Cambridge University Press, pp. 335-336, 2003.Pettie, S. and Ramachandran, V. "An Optimal Minimum Spanning Tree Algorithm." J. ACM 49, 16-34, 2002. https://doi.org/10.1145/505241.505243.Prim, R. C. "Shortest Connection Networks and Some Generalizations." Bell System Tech. J. 36, 1389-1401, 1957.Skiena, S. "Minimum Spanning Tree." §6.2 in Implementing Discrete Mathematics: Combinatorics and Graph Theory with Mathematica. Reading, MA: Addison-Wesley, pp. 232-236, 1990.

Referenced on Wolfram|Alpha

Minimum Spanning Tree

Cite this as:

Weisstein, Eric W. "Minimum Spanning Tree." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/MinimumSpanningTree.html

Subject classifications