top of page
Landing%2520Page_edited_edited.jpg

IAL Decision 1: The Travelling Salesman Problem Exam Questions

10 exam-style questions · 80 marks · about 96 minutes · full mark scheme

Specification: D1 The travelling salesman problem

Quick Links

About this chapter

The travelling salesman problem asks for the shortest tour that visits every vertex and returns to the start. There is no quick algorithm that guarantees the answer, so Decision 1 traps it between an upper bound and a lower bound. The January 2025 examiners found that most students did not mention that a solution must return to its start when asked to describe the problem.

This chapter covers the classical and practical problems, tables of least distances, upper bounds from a minimum spanning tree, shortcuts, the nearest neighbour algorithm, lower bounds by deleting a vertex, choosing the best bounds, the interval for the optimal tour, and deciding whether a tour is optimal. The later questions include an unknown distance x and a route that must be translated back onto the actual roads.

The ten questions

  • Q1 (6 marks): a table of least distances from a road map, and the classical and practical problems compared.
  • Q2 (6 marks): nearest neighbour from A and from D, and which upper bound is better.
  • Q3 (6 marks): an initial upper bound from a minimum spanning tree, then shortcuts to bring it below 120 km.
  • Q4 (6 marks): lower bounds by deleting A and then B, and which one is better.
  • Q5 (6 marks): the best interval from several bounds, and whether a 120 km tour could be optimal.
  • Q6 (10 marks): Prim from A for an initial upper bound, nearest neighbour for another, a lower bound, and the interval.
  • Q7 (10 marks): least distances from a map, a nearest neighbour tour written on the actual roads, and a lower bound.
  • Q8 (10 marks): two upper bounds and two lower bounds, the interval, and whether either route is optimal.
  • Q9 (10 marks): a distance of x km: a lower bound of 89 + min(x, 40), a tour of 119 + x, and x from an upper bound.
  • Q10 (10 marks): seven stalls: Prim, a shortcut below 160, nearest neighbour from D, and a lower bound.

Key skills tested

Two problems. In the classical problem each vertex is visited exactly once; in the practical problem vertices may be revisited. A table of least distances turns a practical problem into a classical one.

Least distances. Replace each entry by the shortest route between the two vertices, which may go through others.

Upper bound from a tree. Twice the weight of a minimum spanning tree is a tour that walks round the tree, so it is an upper bound.

Shortcuts. Replace a repeated section of that walk with a single direct arc, and subtract the saving. State each shortcut used.

Nearest neighbour. From the start, go to the nearest unvisited vertex each time, then return to the start. Write the whole route and its length.

Lower bound. Delete a vertex, find a minimum spanning tree of what is left, then add the two shortest arcs from the deleted vertex.

Best bounds. The best upper bound is the smallest one found; the best lower bound is the largest one found.

The interval. The optimal tour length T satisfies best lower bound ≤ T ≤ best upper bound, with non-strict signs.

Optimal? If a tour’s length equals a lower bound, it is optimal. Otherwise the bounds alone cannot prove it.

Key skills page for IAL Decision 1 Chapter 5, The Travelling Salesman Problem: nine skill cards from the two problems to deciding optimality, with a skills map

Worked example

Question 2 from this chapter. A table gives travelling times between six offices. (a) Use nearest neighbour from A for an upper bound. (b) Repeat from D. (c) State which is better.

(a) From A the nearest is C (18), then F (22), then D (9), then B (23), then E (67), and back to A (41). The route A–C–F–D–B–E–A has length 180 minutes.

(b) From D: F (9), B (16), C (24), A (18), E (41), and back to D (48). The route D–F–B–C–A–E–D has length 156 minutes.

(c) 156, because the best upper bound is the smallest.

Worked solution to Decision 1 Chapter 5 Question 2: nearest neighbour gives a tour of 180 from A and 156 from D, so 156 is the better upper bound

Seen on real papers
Every question in our booklets is original. These are the recent papers where each question type has appeared.

  • January 2025, Q6: what a solution must do, Prim on a table, a doubled tree, nearest neighbour, a lower bound, and the interval, as in Q2, Q4, Q6 and Q8.
  • June 2023, Q7: Prim, a doubled tree, nearest neighbour returning to A, comparing routes with an unknown x, and a lower bound, as in Q2 and Q9.
  • October 2021, Q3: a doubled tree, two nearest neighbour routes from A, a lower bound from a residual tree, and an interval, as in Q6, Q8 and Q10.

Where marks are lost

  • Not returning to the start. All three reports saw nearest neighbour routes that stopped before returning, giving 212 instead of the full tour in June 2023.
  • The wrong thing doubled. In June 2023 some doubled the nearest neighbour length, or added arc CA instead of doubling the tree.
  • Bare numbers. In October 2021 a lower bound of 232 with no working did not score all the marks; January 2025 penalised a length given without its route.
  • A strict upper limit. January 2025 and June 2023 saw marks lost for writing the interval with a strict inequality at the upper bound.

Common questions

Why are there two kinds of bound?
An upper bound is the length of an actual tour, so the best is no longer. A lower bound shows no tour can be shorter.

Which bounds are the best?
The smallest upper bound and the largest lower bound, which give the narrowest interval.

Does nearest neighbour always give the optimal tour?
No. It is quick but can make a poor final choice, so it only gives an upper bound.

Where this chapter leads

bottom of page