IB Maths AI HL · Unit 3
Graph Theory: AI HL exam practice with markscheme
Covers graph theory: adjacency & weighted matrices; minimum spanning trees (Kruskal's & Prim's algorithms); travelling salesman problem: upper & lower bounds; route inspection & the Chinese postman problem; shortest-path (Dijkstra's) algorithm. Work through the 10 questions on paper as if it were the exam, then open each solution and mark your work against the markscheme.
Question 1
A complete graph
[2]
Show solution
Each of the
For
(Alternative:
Answer:
Question 2
The adjacency matrix
[3]
Show solution
Walks of length 3 from vertex 1 to vertex 1 are given by the (1,1) entry of
Number of walks
Answer:
Question 3
A graph has vertices
Find the shortest distance from
Show solution
Answer:
Question 4
A connected graph has vertex degrees
State, with a reason, whether the graph has an Eulerian circuit, an Eulerian trail, or neither. [2]
Show solution
exactly two odd vertices R1
Eulerian trail (not a circuit) A1
Answer: an Eulerian trail
Question 5
Use Kruskal's algorithm to find the minimum spanning tree of the graph with edges
Find the total weight of the minimum spanning tree. [3]
Show solution
choose
Answer:
Question 6
A weighted graph has edges
Use Dijkstra's algorithm to find the shortest route from
Show solution
labels
Answer:
Question 7
A road network has edges (lengths in km)
Find the length of the shortest route. [4]
Show solution
odd vertices
shortest
Answer:
Question 8
A complete graph on
Use the nearest-neighbour algorithm from
Show solution
three distinct tours:
optimal
Answer: upper bound
Question 9
A courier must visit 5 locations: A, B, C, D, and E. The graph connecting these locations is fully connected. The lengths of the edges connected to vertex A are: AB=4, AC=5, AD=8, and AE=6. The minimum spanning tree for the subgraph containing only vertices B, C, D, and E has a total weight of 14.
Use the deleted vertex algorithm (deleting vertex A) to find a lower bound for the Travelling Salesman Problem for this network.
[5]
Show solution
Delete vertex A and all edges connected to it. M1
The weight of the Minimum Spanning Tree of the remaining vertices (B, C, D, E) is given as 14. A1
Identify the two edges with the lowest weight connecting vertex A to the remaining network. M1
These edges are AB (4) and AC (5). A1
Lower bound = Weight of MST + sum of two lowest edges =
Answer:
Question 10
A water company's network has
Write down the number of pipes that stay open. [1]
Write down the number of pipes that are closed. [1]
Show solution
a spanning tree on
vertices has edges A1 A1
Answer: (a)