Overview
A minimum spanning tree is the target structure found by algorithms such as Kruskal's and Prim's algorithms.
Connects all nodes in a weighted graph with the lowest total edge cost and no cycles.
Compact metadata for implementation and discovery.
A minimum spanning tree is the target structure found by algorithms such as Kruskal's and Prim's algorithms.
Quick facts
Runtime and memory behavior at a glance.
Best
Depends on algorithm
Average
Depends on algorithm
Worst
Depends on algorithm
Space
O(V) to O(E)
total_weight = sum(weight(edge) for edge in selected_edges)Measures the objective minimized by a spanning tree algorithm.
Highlight selected low-cost edges until a cycle-free spanning tree covers the graph.
The graph must be connected for one tree to span every node; otherwise the result is a forest.
What each reference supports for this entry.
Textbook support for Minimum Spanning Tree's standard algorithm design, invariants, and complexity analysis.
Open sourceAlgorithm catalog support for Minimum Spanning Tree's problem context, known alternatives, and practical selection tradeoffs.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Graph Traversal · Core
Boruvka's Algorithm uses Minimum Spanning Tree as a subroutine, representation, or supporting idea while growing many tree components at once and repeatedly adding each component's cheapest outgoing edge.
Compare with thisOptimization · Core
The first construction step is a minimum spanning tree of the metric graph.
Compare with thisGraph Traversal · Core
Reverse-Delete Algorithm uses Minimum Spanning Tree as a subroutine, representation, or supporting idea while removing expensive edges when their removal does not disconnect the graph.
Compare with thisKruskal's Algorithm is one method for finding a minimum spanning tree.
Prim's Algorithm is one method for finding a minimum spanning tree.