IB Mathematics AHL 3.16 Walks, trails, paths, circuits, cycles AI HL Paper 2- Exam Style Questions- New Syllabus
Question
An inspector, Eduardo, needs to check the condition of the network of roads shown in the following weighted graph. To do so, he walks down each road at least once. The weights on the graph represent the time, in minutes, it takes to check a road. If Eduardo has to walk any road twice, his second walk only takes half the time it took when checking.

The sum of the times on all the edges is \(122\) minutes.
Eduardo begins and ends his inspection at vertex \(A\).
(a) (i) Find the minimum possible time required for Eduardo to complete his inspection.
(ii) Write down one route he could take. \([3]\)
A new road is built connecting vertices \(C\) and \(D\). The time taken to check this road is \(14\) minutes.
(b) (i) Find which roads now need to be repeated for Eduardo to complete his inspection in the minimum possible time. Justify your answer.
(ii) Write down the minimum possible time the inspection could take. \([6]\)
Eduardo can now begin and end his inspection at any two of the vertices shown on the graph.
(c) (i) State which vertices he should choose to complete his inspection in the minimum possible time.
(ii) Find the amount of time he saves with his new route, compared to when he had to begin and end his route at vertex \(A\). \([3]\)
Useful graph theory facts: a connected graph has an Eulerian circuit when all vertices have even degree, and an open Eulerian trail when exactly two vertices have odd degree.
For this question, the total time is the sum of the checking times plus half the sum of the weights of any repeated roads.
Total: \([12\text{ marks}]\)
▶️ Answer/Explanation
(a)(i) Minimum inspection time
In the original graph, \(A\) and \(B\) are the only vertices of odd degree. To begin and end at \(A\), repeat the shortest path connecting them, which is edge \(AB\) with weight \(8\). (M1)
The repeated walk takes half its checking time:
\[\boxed{122+\frac12(8)=126\text{ minutes}.}\] A1
(a)(ii) One possible route
\[\boxed{A-B-D-E-F-G-E-H-C-B-A-H-I-A.}\] A1
This route checks every road and repeats only \(AB\).
Part (a): \([3\text{ marks}]\).
(b)(i) Roads to repeat after adding \(CD\)
Adding \(CD\) changes the degrees of \(C\) and \(D\). The odd-degree vertices are now \(A,B,C,D\). (A1)
Compare the three possible pairings using shortest connecting paths. M1
| Pairing | Combined shortest-path weights |
|---|---|
| \(AB\) and \(CD\) | \(8+14=22\) |
| \(AC\) and \(BD\) | \(15+18=33\) |
| \(AD\) and \(BC\) | \(26+7=33\) |
The three pairing totals are \(22,33,33\). A1
The smallest total is obtained by repeating \(\boxed{AB\text{ and }CD}\). A1
(b)(ii) Minimum time
Add the checking time for the new road and half the combined weight of the repeated roads:
\[122+14+\frac12(22).\] (M1)
Therefore, the new minimum is \(\boxed{147\text{ minutes}}\). A1
Part (b): \([6\text{ marks}]\).
(c)(i) Best starting and finishing vertices
For an open route, leave two vertices odd and make the other two even by repeating the shortest available connection. Among \(A,B,C,D\), the least-weight connection is \(BC\), with weight \(7\). (M1)
Repeating \(BC\) leaves \(A\) and \(D\) odd. Thus Eduardo should start at \(\boxed{A}\) and finish at \(\boxed{D}\), or vice versa. A1
(c)(ii) Time saved
The open route takes \(122+14+\frac12(7)=139.5\) minutes.
✅ Answer: \(\boxed{147-139.5=7.5\text{ minutes saved}}\). A1
Part (c): \([3\text{ marks}]\). Total: \([12\text{ marks}]\).
AHL 3.16 — Eulerian trails and circuits, and the Chinese postman problem: (a), (b), (c).
Question


(ii) Write down the total weight of the minimum spanning tree.
Given that the length of each road shown on the graph is given to the nearest kilometre,
Most-appropriate topic codes:
• AHL 3.16: Minimum spanning tree (MST) algorithms (Kruskal’s and Prim’s) — part (d)
• AHL 3.16: Travelling salesman problem: nearest neighbour and deleted vertex algorithms — parts (b), (c), (e), (f), and (g)
▶️ Answer/Explanation
(a)
It is not possible because there are more than two vertices with odd degree (specifically, four vertices have odd degrees). An Euler path exists only if exactly zero or two vertices have odd degree.
(b)
By reading the weights directly from the graph: \(a = 11, b = 18, c = 17, d = 15\).
(c)
Nearest Neighbour from \(G\):
\(G \to E\) (11), \(E \to F\) (4), \(F \to B\) (3), \(B \to D\) (5), \(D \to A\) (5), \(A \to C\) (18), \(C \to G\) (8).
Total distance \(= 11 + 4 + 3 + 5 + 5 + 18 + 8 = 54\).
Upper Bound = 54 km.
(d)
(i) MST edges: \(BF\) (3), \(EF\) (4), \(BD\) (5), \(DA\) (5), \(CD\) (15).
(ii) Total weight \(= 3 + 4 + 5 + 5 + 15 = 24\).
Weight = 24 km.
(e)
Lower Bound \(= \text{MST weight} + \text{two shortest edges from deleted vertex } G\).
Shortest edges from \(G\) are \(GE\) (11) and \(GB\) (13).
Lower Bound \(= 24 + 11 + 13 = 48\).
Lower Bound = 48 km.
(f)
An improved lower bound could be found by removing a different vertex (one at a time), calculating the corresponding lower bound for each, and selecting the maximum value obtained.
(g)
There are 7 edges in the optimal route. Since weights are to the nearest km, each edge distance \(L\) satisfies \(w – 0.5 \le L < w + 0.5\).
Using the total rounded distance of 52:
Lower bound \(= 52 – (7 \times 0.5) = 48.5\).
Lower bound = 48.5 km.
Markscheme:
(a) more than two vertices with odd degree, so not possible [R1A1]
(b) a=11, b=18, c=17, d=15 [A2]
(c) path G-E-F-B-D-A-C-G, upper bound = 54 [M1A1A1]
(d) (ii) 24 [A1]
(e) 24 + 11 + 13 = 48 [M1A1]
(f) try removing a different vertex [A1]
(g) 52 – 7 × 0.5 = 48.5 [M1M1A1]
