3.17 Trees, cycles, minimum spanning trees, postman and salesman
Five IB Maths AI questions on this topic, straight from the Heptavo app: 3 multiple choice and 2 written, climbing from the basics to exam style. Each one comes with its explanation or mark scheme.
A trail may pass through a vertex more than once but never travels the same edge twice. Barring repeated vertices as well gives a path, and returning to the start is a separate condition that turns a trail into a circuit.
Question 2 · Rung 2 · 1 mark
A connected graph has an Eulerian circuit exactly when
Show the answer and why
Answer: B
Every visit to a vertex arrives on one edge and leaves on another, so the edges at each vertex pair up and the degree must be even. Two odd vertices allow an Eulerian trail instead, which starts at one of them and finishes at the other.
Question 3 · Rung 3 · 1 mark
A weighted graph has vertices P, Q, R, S, T and edges PQ 4, PR 2, QR 5, QS 10, RS 8, RT 6 and ST 3. The weight of its minimum spanning tree is
Show the answer and why
Answer: B
Kruskal takes PR 2, ST 3 and PQ 4, rejects QR 5 because it would close a cycle, and then takes RT 6 to join the two fragments — total 15, on four edges as a tree on five vertices must have. The 38 is the weight of the whole graph.
Question 4 · Rung 4 · 5 marks
A weighted graph has vertices P, Q, R, S, T and edges PQ 4, PR 2, QR 5, QS 10, RS 8, RT 6 and ST 3. Apply Prim's algorithm starting from P, listing the edges in the order they are added, and compare the result with the tree Kruskal produces.
Show the mark scheme
Tick each point your answer made: one mark per point, up to 5.
What the examiner is looking for
The two algorithms agree here because every weight is different, which makes the minimum spanning tree unique. Prim's order — 2, 4, 6, 3 — is not increasing, and that is the visible sign that it is choosing locally rather than globally.
Question 5 · Rung 5 · 7 marks
For the complete weighted graph with PQ 8, PR 5, PS 9, QR 6, QS 7 and RS 4, find an upper bound for the travelling salesman problem using nearest neighbour from P, find a lower bound by deleting R, and hence state the length of the optimal tour with justification.
Show the mark scheme
nearest neighbour from P: PR 5, then RS 4, then SQ 7, then QP 8 (M1)(A1)
so an upper bound is 24 (A1)
deleting R leaves the minimum spanning tree QS 7 plus PQ 8, total 15 (M1)(A1)
the two lightest edges at R are RS 4 and PR 5, total 9, so the lower bound is 24 (A1)
the optimal tour length is at least 24 and at most 24, so it is exactly 24, and the nearest-neighbour tour is optimal (R1)
What the examiner is looking for
Bounds meeting is the only way these methods ever prove optimality, and it is worth saying so explicitly in the answer. Had the bounds been 23 and 24, all that would follow is that the true value is one of the two — the tour found would still be a tour, but nothing would show it was best.
Your score
0/15
Answer the questions above and your marks add up here.
Heptavo has 55 questions on 3.17 Trees, cycles, minimum spanning trees, postman and salesman: 26 multiple choice and 29 written, each with its mark scheme. Free to start.
Check your answers. Scan the code or open heptavo.com/practice/maths-ai/3-17-trees-cycles-minimum-spanning-trees-postman-and-salesman/ for the mark scheme and an explanation of every answer. More questions on every IB Maths AI topic are in the Heptavo app.
What 3.17 asks
Routes and networks: spanning trees, the Chinese postman problem and the travelling salesman problem; questions ask you to apply an algorithm and state the total weight.
You need to be able to
Find a minimum spanning tree with Kruskal's or Prim's algorithm, listing edges in the order chosen.
Solve the Chinese postman problem by pairing odd vertices and repeating the shortest pairing.
Bound the travelling salesman tour: nearest neighbour gives an upper bound and deleted vertex a lower bound.
Key terms
minimum spanning tree
Eulerian circuit
Hamiltonian cycle
Chinese postman problem
travelling salesman problem
upper and lower bound
Common trap With four odd vertices, checking only one pairing; compare all three pairings and repeat the one with the smallest total.