Home / IB Mathematics AHL 3.16 Walks, trails, paths, circuits, cycles AI HL Paper 2- Exam Style Questions

IB Mathematics AHL 3.16 Walks, trails, paths, circuits, cycles AI HL Paper 2- Exam Style Questions- New Syllabus

Question

The vertices in the following graph represent seven towns. The edges represent their connecting roads. The weight on each edge represents the distance, in kilometres, between the two connected towns.
(a) Determine whether it is possible to complete a journey that starts and finishes at different towns that also uses each of the roads exactly once. Give a reason for your answer.
The shortest distance, in kilometres, between any two towns is given in the table below.
(b) Find the value of \(a, b, c, d\) in the given table.
(c) Use the nearest neighbour algorithm, starting at vertex \(G\), to find an upper bound for the travelling salesman problem.
(d) (i) Sketch a minimum spanning tree for the subgraph with vertices \(A, B, C, D, E, F\).
(ii) Write down the total weight of the minimum spanning tree.
(e) Hence find a lower bound for the travelling salesman problem.
(f) Explain one way in which an improved lower bound could be found.
It is found that the optimum solution starting at \(A\) is actually \(A–C–E–G–B–F–D–A\).
Given that the length of each road shown on the graph is given to the nearest kilometre,
(g) find the lower bound for the total distance in the optimal solution.

Most-appropriate topic codes:

AHL 3.16: Eulerian trails and circuits — part (a)
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
Detailed solution

(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]

Scroll to Top