Minimum spanning tree definition
A minimum spanning tree is a spanning tree of a weighted graph whose total edge weight is as small as possible among all spanning trees of that graph.
Udacity · YouTube · 1:47
This whiteboard clip introduces minimum spanning trees by building on the prior notion of a spanning tree. The speaker draws a weighted graph, explains that each edge carries a number, and shows how to compute the weight of a spanning tree by summing the labels on its edges. Two example spanning trees are compared, with weights 20 and 21, motivating the definition of a minimum spanning tree as a spanning tree whose total edge sum is as small as possible. The clip also states that a graph may have more than one minimum spanning tree.
Use the learning inspector for key ideas and moments, or open the reading tabs for the complete notes.
Generated from the video's visuals and explanation; not verbatim speech.
The clip opens by assuming the viewer already knows what a spanning tree is, then announces a refinement of that idea: the minimum spanning tree.
The speaker explains that a minimum spanning tree is still a spanning tree, but now the underlying graph must be weighted: every edge carries a number. The example under the heading "SHORTEST TOUR" is reused only structurally; the numbers need not be distances.
A concrete weighted graph is drawn, and one spanning tree is selected from it. The method is to add the labels on exactly the edges in that tree, producing . This total is called the weight of the spanning tree.
A second spanning tree of the same graph is chosen and its edges are summed in the same way, giving . The comparison shows that different spanning trees can have different total weights.
From these examples, the definition is stated directly: a minimum spanning tree is a spanning tree whose total edge sum is the smallest possible among all spanning trees of the graph.
The final point is that the minimum spanning tree need not be unique. A graph may have several minimum spanning trees, but each one must attain the same lowest possible total edge weight.
A minimum spanning tree is a spanning tree of a weighted graph whose total edge weight is as small as possible among all spanning trees of that graph.
Before discussing minimum spanning trees, the graph must have a numerical value attached to every edge. These values may be distances in one application, but they can also be other quantities.
To find the weight of a spanning tree, select the tree and add the numbers on all of its edges. In the first example, the chosen tree has weight .
A second spanning tree of the same graph is weighted by . Since , the example illustrates why one seeks the spanning tree of minimum total weight.
The video explicitly states that a graph can have more than one minimum spanning tree. What matters is that every minimum spanning tree has the lowest possible sum of edge values.
Explore conditions, steps and evidence. Supplementary explanations are labeled separately from content shown in the video.
The speaker says a minimum spanning tree is still a spanning tree on a graph, and that the graph must have numbers attached to its edges.
A hand draws a graph with purple vertices and blue edges, then writes red numbers beside the edges.
weighted graph
A graph whose edges each carry an assigned numerical value.
Graph theory; finite undirected graphs with edge weights.
"all of the edges have a certain number assigned to them" and "each edge must have a certain value attached to it".
Red numerals are written next to individual edges of the drawn graph.
The video does not state whether negative or zero weights are allowed.
edge number / edge value
The numerical quantity assigned to an edge; in this clip the examples use positive integers such as 1, 2, 3, 4, and 6.
Edge labels of the displayed weighted graph.
"for each spanning tree, you can sum up those numbers" and "this spanning tree here has a weight of 20".
The board shows for one highlighted spanning tree.
weight of a spanning tree
The sum of the numerical values on all edges belonging to that spanning tree.
Applies to any chosen spanning tree of a weighted graph.
The speaker introduces "the concept of a minimum spanning tree" and later defines it as the spanning tree whose total edge sum is the smallest possible one.
The title written on the board is "Minimum Spanning Tree".
In this clip, a minimum spanning tree is presented as a spanning tree of a weighted graph whose total weight, meaning the sum of the numbers on its edges, is as small as possible among all spanning trees of that graph.
The underlying object must be a graph.
Each edge must have a numerical value attached to it.
The comparison is made over spanning trees of the same graph.
"So now that you know what a spanning tree is, I would like to introduce to you the concept of a minimum spanning tree."
The phrase "Spanning Tree" is written before being expanded to "Minimum Spanning Tree".
This clip assumes the definition of spanning tree from earlier material and does not restate it fully.
The video treats "spanning tree" as already known and uses it as the base notion that is refined into a minimum spanning tree by adding weights and minimization.
Prior knowledge of spanning trees is assumed.
To find a minimum spanning tree, one needs a special kind of graph where all edges have a certain number assigned to them.
Vertices and edges are drawn first, then red numbers are added to the edges.
The clip does not formally define the broader class of weighted graphs beyond saying each edge has a number attached.
The speaker states that a minimum spanning tree is defined on a graph whose edges carry numerical labels. In the shortest-tour context these labels were distances, but here they may be other values as well.
Every edge must have a numerical value attached to it.
"for each spanning tree, you can sum up those numbers" followed by "this spanning tree here has a weight of 20".
The displayed sum is .
Selected edges of the graph are traced in green while their labels are added.
Given a weighted graph, choose any spanning tree and add together the numerical values on exactly the edges included in that tree. The resulting sum is called the weight of that spanning tree.
The graph must have numerical values on its edges.
Only the edges belonging to the selected spanning tree are summed.
"A graph can have more than one minimum spanning tree, but every minimum spanning tree has to have the property that the sum of the edges is as low as possible."
The video explicitly notes that a graph may possess multiple minimum spanning trees. What is required is not uniqueness of the tree itself, but that each minimum spanning tree attains the lowest possible total edge sum.
Applies to weighted graphs discussed in this clip.
"A minimum spanning tree is the spanning tree for the graph for which the total weight, the sum of all of the edge numbers, is the smallest possible one."
For a weighted graph, a spanning tree is a minimum spanning tree exactly when its total edge sum is the smallest possible among the spanning trees of that graph.
The graph has numerical values attached to its edges.
The object under consideration is a spanning tree of that graph.
For a given weighted graph and for all of its spanning trees, the minimum spanning trees are those attaining the minimum total edge sum.
"A graph can have more than one minimum spanning tree, but every minimum spanning tree has to have the property that the sum of the edges is as low as possible."
A graph may have more than one minimum spanning tree, and each such tree must have the lowest possible total edge sum.
The graph is a weighted graph of the type described in the clip.
There exist weighted graphs with more than one minimum spanning tree; for every minimum spanning tree of such a graph, its edge sum is minimal.
The speaker first takes one spanning tree, computes its weight as 20, then takes another spanning tree and computes its weight as 21, and finally uses this comparison to motivate the definition of a minimum spanning tree.
Two sums are shown: and .
Different sets of edges are traced in green to indicate different spanning trees.
The clip does not prove that no other spanning tree has weight below 20; it only illustrates how to compare weights and motivates the definition.
Start with a weighted graph and choose one spanning tree from it.
The speaker says, "let's take any spanning tree for this graph here."
Add the numerical labels on the edges of that chosen spanning tree to obtain its total weight.
By the stated method, the weight of a spanning tree is the sum of the numbers on its edges.
Choose a different spanning tree of the same graph.
The speaker explicitly says, "Now if you choose another spanning tree, for example this one here."
Sum the edge labels of the second spanning tree to get its total weight.
The same summation rule is applied to the second selected tree.
Compare the two totals and observe that the first spanning tree has smaller weight than the second.
Direct arithmetic comparison of the displayed sums.
Use this comparison to motivate the definition: the minimum spanning tree is the spanning tree whose total weight is smallest possible.
The speaker transitions from the example to the general definition immediately after the comparison.
The example shows how spanning-tree weights are computed and compared, leading to the definition of a minimum spanning tree as a spanning tree of minimum total weight.
The speaker selects a spanning tree and says its weight is 20.
The board displays .
A subset of edges is traced in green to mark the chosen spanning tree.
The exact vertex names are not labeled, so the selected edges are identified only by their displayed weights and relative positions.
Given the drawn weighted graph, choose one spanning tree and compute its total weight.
A weighted graph is drawn with numerical labels on its edges.
One spanning tree is selected from that graph.
Find the weight of the selected spanning tree.
Identify the edges included in the chosen spanning tree.
The speaker traces a set of edges in green to indicate the selected tree.
Read off the numerical labels on those selected edges and list them for addition.
The weight of a spanning tree is obtained by summing the numbers attached to its edges.
Perform the addition to obtain the total weight.
Arithmetic evaluation of the displayed sum.
The selected spanning tree has weight 20.
The displayed equation on the board matches the spoken result: the sum equals 20.
The speaker chooses another spanning tree and states its total weight is 21.
The board displays .
A different subset of edges is traced in green.
As in the previous example, the vertices are unlabeled, so the chosen edges are specified only visually and by their weights.
Choose a different spanning tree of the same weighted graph and compute its total weight.
The same weighted graph is used.
A second spanning tree is selected.
Find the weight of the second spanning tree.
Select another spanning tree of the graph.
The speaker explicitly introduces a second example spanning tree.
Collect the edge labels belonging to this second spanning tree.
Apply the same summation rule used for spanning-tree weight.
Add the collected numbers to get the total weight.
Arithmetic evaluation of the displayed sum.
The second spanning tree has weight 21.
The board equation and the spoken conclusion agree that the total is 21.
Purple dots are placed as vertices, blue lines are drawn as edges, and red numbers are written next to the edges.
The speaker explains that the graph must have numbers attached to all edges.
The exact graph layout is hand-drawn and some edge endpoints are visually approximate rather than formally labeled.
Purple vertices
Blue edges
Red numerical edge labels
Vertices appear first.
Edges are then drawn between vertices.
Numerical labels are added to the edges last.
The graph remains the same object throughout the clip once completed.
Each edge keeps one associated number.
The drawing establishes the setting needed for minimum spanning trees: a graph whose edges carry weights.
A subset of edges is traced in green while the formula is written.
The speaker says this is one spanning tree and computes its weight.
Original weighted graph
Green-traced selected edges
Formula
Selected edges are recolored or overdrawn in green.
Their labels are summed on the right side of the board.
The underlying graph and all edge weights remain unchanged.
Only the chosen subset of edges is emphasized.
The visual emphasis distinguishes one spanning tree from the full graph and shows how its weight is calculated.
A different subset of edges is traced in green while the formula is written.
The speaker introduces another spanning tree and computes its weight.
Same weighted graph
Another green-traced subset of edges
Formula
A new set of edges is highlighted.
A second total weight is written beside the graph.
The graph structure and edge labels do not change.
The comparison is between different spanning trees of the same graph.
The second highlighting demonstrates that different spanning trees can have different total weights.
"A graph can have more than one minimum spanning tree..."
One might think a graph has only one minimum spanning tree.
The video explicitly states that a graph can have more than one minimum spanning tree; what is required is that each has the lowest possible total edge sum.
"in the case of shortest tour those were distances, but it can be other values as well. That doesn't really matter."
Because the topic is introduced under "SHORTEST TOUR," one may assume the edge numbers must always be distances.
The speaker says the numbers may be distances in the shortest-tour setting, but they can also be other values; the essential requirement is just that each edge has a number attached.
The speaker begins by referring to the previously known concept of a spanning tree and then introduces the minimum spanning tree.
Understanding spanning trees is treated as prior knowledge needed before defining minimum spanning trees.
To find a minimum spanning tree, one needs a graph where all edges have numbers attached.
The existence of numerical edge values is required before the notion of minimizing total spanning-tree weight makes sense.
"a minimum spanning tree is still a spanning tree on a graph" and later the definition as the spanning tree with smallest total weight.
A minimum spanning tree is a particular kind of spanning tree, namely one whose total edge weight is minimal.
The speaker first explains how to sum edge numbers for a spanning tree and then defines the minimum spanning tree using that total weight.
The definition of a minimum spanning tree depends on first having a way to measure the weight of any spanning tree by summing its edge values.
The speaker compares the needed graph to the input for shortest tour, noting that there the numbers were distances but here they can be other values.
The heading "SHORTEST TOUR" remains visible above the new topic.
The clip contrasts the shortest-tour setting, where edge numbers were distances, with the more general weighted-graph setting used for minimum spanning trees.
The speaker gives the definition of a minimum spanning tree in words.
The board shows for a selected spanning tree.
The speaker explains that one sums the numbers on the edges of the spanning tree.
The speaker says a graph can have more than one minimum spanning tree.
Two spanning-tree weights are computed: 20 and 21.
After the comparison, the speaker defines the minimum spanning tree as the one with smallest total weight.
The speaker says the numbers were distances in shortest tour but can be other values as well.
Covered · Opening transition from previously discussed spanning trees to the new topic.
Covered · Introduction of minimum spanning trees and the requirement that edges carry numerical values.
Covered · First worked example: selecting a spanning tree and computing its weight as 20.
Covered · Second worked example: another spanning tree has weight 21.
Covered · General definition of minimum spanning tree and note that multiple minimum spanning trees may exist.
Covered · Final trailing moment with no additional mathematical content beyond the completed explanation.
Reviewed English material v1: card/concept_card "Minimum spanning tree definition" starting at 1:23 — A minimum spanning tree is a spanning tree of a weighted graph whose total edge weight is as small as possible among all spanning trees of that graph.