Question 1
25 marks
Graph algorithms with an unknown edge weight: bounds on a tour and route inspection
- Number and algebra
(a)
1 mark
Visit every vertex once and return. For example:
(b)(i)
5 marks
- Without A there are 7 vertices, so the tree has 6 edges. Prim's algorithm from B takes the cheapest edge joining the tree to a new vertex each time.
- The weight of the tree is the sum.
(b)(ii)
2 marks
Add back the two cheapest edges at A: AB with weight 3 and AF with weight , which is smaller than every other edge at A when .
(c)(i)
1 mark
The shortest route from C to G is C–H–G.
(c)(ii)
1 mark
The shortest route from D to F that doesn't use AF is D–E–F.
(c)(iii)
1 mark
The route from D to F through A is D to A (14) and then AF, written as .
(d)(i)
3 marks
With the nearest neighbour algorithm from A has a tie, since AB and AF are both 3. Choosing AB first gives the cycle A, B, C, D, E, G, H, F, A. Choosing AF first gives A, F, G, H, B, C, D, E, then back to A by the shortest route E to F to A.
(d)(ii)
2 marks
The best upper bound is the shorter of the cycles.
(e)(i)
2 marks
For the algorithm starts A, B, C, D, E, G, H, F. The return from F to A can use the edge AF with weight , or the route F–H–B–A with weight . AF will not definitely be avoided until it's longer than 18.
(e)(ii)
2 marks
With the route via B used for the return, the cycle has length
(f)
5 marks
- Corinne must walk every edge, starting and finishing at H. The odd-degree vertices are B, D, G and H. The edges to repeat come from the cheapest pairing.
- The cheapest is BD with GH, adding 15 minutes. The total time is 120 minutes.

