A connected network that contains no cycles is called a tree. These have a distinctly tree-like appearance:
Once you leave a vertex on any of these networks, you can’t get back to it without repeating an edge.
Which of these networks is a tree?
Sarah has three children: Kate, Matt, and Tom. Kate has four children, Lisa, Sandy, Amy, and Robert, and Matt has two sons, Joseph and Chris. Both Tom and Lisa have one child each: Barbara and Alex, respectively. If the starting vertex represents Sarah, create a tree to represent the parent-child relationships in this family.
Trees are a connected networks that do not have cycles or loops.
A spanning tree is a subnetwork of a connected network that is also a tree. It has no cycles or loops.
Here’s an example:
The network in the centre has its eight different spanning trees arranged around it. You can still get from one vertex to any other, but you can’t get back without repeating an edge.
A connected network that isn’t already a tree can have multiple spanning trees. The network below has 11 possible spanning trees:
Here are all the spanning trees, with their weights. Notice that all the spanning trees have the same number of edges. The spanning tree for a network with n vertices will have (n-1) edges.
Does the following network have a spanning tree?
Spanning trees are the subnetwork trees of a connected network.
A network has a spanning tree only if all the vertices are connected to the same network.
The last spanning tree in the previous example is special because it has the lowest weight out of all of them. We call it the minimal spanning tree. Sometimes there can be two or more spanning trees with equal lowest weight, in which case they are all minimal spanning trees.
Here’s a network with two minimal spanning trees:
Can you find both of them? It can be quite hard and take a long time. In following lesson we will investigate a more systematic way to find a minimal spanning tree.
Consider the given weighted network.
Which of the following networks is the minimal spanning tree?
A minimal spanning tree is a spanning tree with the lowest total weight of edges.