Opening your learning space
Starting the app …
Opening your learning space
Starting the app …
A minimum spanning tree connects every vertex of a connected, undirected, weighted graph with the minimum total edge weight.
Free to browse · flashcards or a multiple-choice quiz · import from Essential
Formula
w(e) is an additive edge cost; a spanning tree on |V| vertices has exactly |V|−1 edges.
| Symbol | Meaning | Unit |
|---|---|---|
| Connected undirected graph | nodes and edges | |
| A spanning tree connecting every vertex without a cycle | edge set | |
| Weight of edge e | cost per edge | |
| T* | A spanning tree with minimum total weight | edge set |
T^*\in\arg\min_{T\in\mathcal T(G)}\sum_{e\in T}w(e),\quad |E(T^*)|=|V|-1Original schematic by Quanta
Free with a Quanta account. Your download stays ready after registration.
A spanning tree contains all vertices, is connected and has no cycles; therefore it has exactly |V|−1 edges. A minimum spanning tree minimizes the sum of their weights, not the longest individual path or paths from one chosen start vertex. Kruskal sorts edges by weight and accepts an edge only if it does not create a cycle; Prim repeatedly adds a least-weight edge crossing the current cut. Tied weights can yield several equally light spanning trees. A disconnected graph instead has a minimum spanning forest.
A spanning tree contains all vertices, is connected and has no cycles; therefore it has exactly |V|−1 edges. A minimum spanning tree minimizes the sum of their weights, not the longest individual path or paths from one chosen start vertex. Kruskal sorts edges by weight and accepts an edge only if it does not create a cycle; Prim repeatedly adds a least-weight edge crossing the current cut. Tied weights can yield several equally light spanning trees. A disconnected graph instead has a minimum spanning forest.
A minimum spanning tree connects all vertices without cycles at the lowest possible total weight.
Number of edges in a spanning tree
Applies to every spanning tree of a connected graph.
Apply Kruskal: which edges do you choose for AB=1, BC=2, CD=3, AC=4, BD=5, and what is the total weight?
Kruskal selects AB=1, BC=2 and CD=3.
The four vertices are connected without a cycle; total weight is 1+2+3=6.
Confusing a minimum spanning tree with shortest paths from a starting vertex.
A spanning tree minimizes the sum of all selected edges and has no designated starting vertex.
Formula cluster
A minimum spanning tree connects every vertex of a connected, undirected, weighted graph with the minimum total edge weight.
For edges AB=1, BC=2, CD=3, AC=4, and BD=5, Kruskal selects AB, BC, and CD. The three edges connect four vertices without a cycle; their total weight is 1+2+3=6. Check: replacing BC with AC gives 1+4+3=8, and any connection using BD costs at least 8.
Design low-cost connected networks such as utility, road, or communication networks.
Here is how to work through a typical Minimum spanning tree (Connect all vertices with minimum total edge weight and |V|−1 edges.) task step by step:
Task
Apply Kruskal: which edges do you choose for AB=1, BC=2, CD=3, AC=4, BD=5, and what is the total weight?
Solution path
Kruskal selects AB=1, BC=2 and CD=3.
The four vertices are connected without a cycle; total weight is 1+2+3=6.
The relation T^*\in\arg\min_{T\in\mathcal T(G)}\sum_{e\in T}w(e),\quad |E(T^*)|=|V|-1 describes A minimum spanning tree connects every vertex of a connected, undirected, weighted graph with the minimum total edge weight. In the example For edges AB=1, BC=2, CD=3, AC=4, and BD=5, Kruskal selects AB, BC, and CD. It applies under the assumptions stated in the background. Validity limit: A spanning tree contains all vertices, is connected and has no cycles; therefore it has exactly |V|−1 edges. A minimum spanning tree minimizes the sum of their weights, not the Source: MIT OpenCourseWare 6.046J, Lectures 3–4: Minimum Spanning Trees I–II.
First write down the requested quantity and all given values with their symbols. Substitute them into the defining relation and check unit consistency. The example For edges AB=1, BC=2, CD=3, AC=4, and BD=5, Kruskal selects AB, BC, and CD. The three edges connect four vertices without a cycle; their total weight is 1+2+3=6. Check: replacing BC with AC gives 1+4+3=8, and any connection using BD costs at least 8. provides a worked check: formula and result must have compatible scale and meaning; round only at the end. Validity limit: A spanning tree contains all vertices, is connected and has no cycles; therefore it has exactly |V|−1 edges. A minimum spanning tree minimizes the sum of their weights, not the Source: MIT OpenCourseWare 6.046J, Lectures 3–4: Minimum Spanning Trees I–II.
The formula applies only when quantities are defined as in the source and background. Check boundary cases, measurement conditions and whether an approximation rather than equality is intended. Substitution can be algebraically correct yet technically wrong when assumptions fail or the population or system boundary changes. Validity limit: A spanning tree contains all vertices, is connected and has no cycles; therefore it has exactly |V|−1 edges. A minimum spanning tree minimizes the sum of their weights, not the Source: MIT OpenCourseWare 6.046J, Lectures 3–4: Minimum Spanning Trees I–II.
The stated units are: w(e) is an additive edge cost; a spanning tree on |V| vertices has exactly |V|−1 edges.. Convert values to a consistent unit system before substitution; counts, percentages and dimensionless ratios are not interchangeable. The variable list states the role of each symbol. Dimensional analysis catches many errors but does not replace checking the formula's assumptions. Validity limit: A spanning tree contains all vertices, is connected and has no cycles; therefore it has exactly |V|−1 edges. A minimum spanning tree minimizes the sum of their weights, not the Source: MIT OpenCourseWare 6.046J, Lectures 3–4: Minimum Spanning Trees I–II.
Comparison helps when both quantities address the same question but emphasize different properties. Report the definition, input data, threshold or averaging with the value. The source MIT OpenCourseWare 6.046J, Lectures 3–4: Minimum Spanning Trees I–II. supports the definition used here; other conventions can differ. Choose the measure to match the learning or analysis goal. Validity limit: A spanning tree contains all vertices, is connected and has no cycles; therefore it has exactly |V|−1 edges. A minimum spanning tree minimizes the sum of their weights, not the Source: MIT OpenCourseWare 6.046J, Lectures 3–4: Minimum Spanning Trees I–II.
Quanta exam set
Curated exam set for "Minimum spanning tree":
Question (front)
Which formula describes Minimum spanning tree?
Answer in your set
Question (front)
How do you rearrange Minimum spanning tree for Number of edges in a spanning tree?
Answer in your set
Question (front)
Which common mistake happens with Minimum spanning tree?
Answer in your set
+ 7 more cards: units, variables, derivation, example, exam task
The formula set contains 10 cards. After importing, review them and start practicing; your ratings determine later review intervals.
This list names subject references and further reading. A page or section number appears when it is part of the reference; these are not verbatim quotations.
Create a curated FSRS exam set for Connect all vertices with minimum total edge weight and |V|−1 edges.: formula recall, variables, derivation, rearrangement, worked example, common mistakes and exam context.
Curated formula set · LaTeX · FSRS spaced repetition · import from Essential