Shortest paths and spanning trees

Identify trees and spanning trees in a network; find the minimum spanning tree and the shortest path between two vertices and explain why these may differ.

Worked examples

Identifying trees and counting edges in a spanning tree

Straightforward

Problem

A connected network has 66 vertices. (a) How many edges must a spanning tree of this network have? (b) A connected subgraph of this network has 66 vertices and 66 edges. Is this subgraph a spanning tree? Give a reason.

Finding the minimum spanning tree using Kruskal's algorithm

Moderate

Problem

A network has vertices AA, BB, CC, DD, EE with edges ABAB (weight 44), ACAC (weight 22), BCBC (weight 11), BDBD (weight 55), CDCD (weight 33) and CECE (weight 44). Find the minimum spanning tree and state its total weight.

Finding the minimum spanning tree and shortest path

Challenging

Problem

A network has vertices AA, BB, CC, DD, EE with edges ABAB (weight 22), ACAC (weight 66), BCBC (weight 33), BDBD (weight 88), CDCD (weight 44), CECE (weight 77) and DEDE (weight 55). (a) Find the minimum spanning tree and state its total weight. (b) Find the shortest path from AA to EE and state its length. (c) Explain in one sentence why the path from AA to EE through the MST may differ from the shortest path.

Practise

Q1·Straightforward
A connected network has 77 vertices. How many edges must a spanning tree of this network contain?
Q2·Straightforward
A connected subgraph has 55 vertices and 55 edges. Is this subgraph a spanning tree?
Q3·Straightforward
Which statement correctly describes a tree in the context of networks?
Q4·Straightforward
A connected network has 99 vertices. A spanning tree of this network is formed by removing edges until no cycles remain and all vertices are still connected. How many edges does this spanning tree have?
Q5·Moderate
A network has vertices AA, BB, CC, DD, EE with edges ABAB (weight 44), ACAC (weight 22), BCBC (weight 11), BDBD (weight 55), CDCD (weight 33) and CECE (weight 44). Find the total weight of the minimum spanning tree.
Q6·Moderate
A network has vertices PP, QQ, RR, SS, TT with edges PQPQ (weight 66), PRPR (weight 33), QRQR (weight 44), QSQS (weight 22), QTQT (weight 88), RSRS (weight 55) and STST (weight 77). Find the total weight of the minimum spanning tree.
Q7·Moderate
A network has vertices AA, BB, CC, DD with edges ABAB (weight 77), ACAC (weight 33), BCBC (weight 55), BDBD (weight 44) and CDCD (weight 66). Find the total weight of the minimum spanning tree.
Q8·Moderate
A network has vertices VV, WW, XX, YY, ZZ with edges VWVW (weight 99), VXVX (weight 55), VYVY (weight 77), WXWX (weight 33), XYXY (weight 44), XZXZ (weight 66) and YZYZ (weight 88). Find the total weight of the minimum spanning tree.
Q9·Challenging
A network has vertices AA, BB, CC, DD, EE with edges ABAB (weight 22), ACAC (weight 66), BCBC (weight 33), BDBD (weight 88), CDCD (weight 44), CECE (weight 77) and DEDE (weight 55). Find the total weight of the minimum spanning tree.
Q10·Challenging
A network has vertices AA, BB, CC, DD, EE with edges ABAB (weight 22), ACAC (weight 66), BCBC (weight 33), BDBD (weight 88), CDCD (weight 44), CECE (weight 77) and DEDE (weight 55). Find the length of the shortest path from AA to EE.
Q11·Challenging
A network has vertices PP, QQ, RR, SS, TT, UU with edges PQPQ (weight 33), PRPR (weight 77), QRQR (weight 55), QSQS (weight 44), RSRS (weight 66), RTRT (weight 22), STST (weight 88), TUTU (weight 33) and SUSU (weight 99). Find the total weight of the minimum spanning tree.
Q12·Challenging
A network has vertices AA, BB, CC, DD, EE with edges ABAB (weight 22), BCBC (weight 33), CDCD (weight 44), DEDE (weight 55), CECE (weight 77) and ACAC (weight 66). The minimum spanning tree uses edges ABAB, BCBC, CDCD, DEDE and has total weight 1414. The path from AA to EE through the MST is AABBCCDDEE with length 1414. The shortest path from AA to EE in the full network is AABBCCEE with length 1212. Which statement best explains why the shortest path is shorter than the MST path?