All revision notes topics

Bounds for the travelling salesman problemEdexcel International A Level Maths: Revision notes

Section 1

Why we use bounds

For a large network there is no quick method that always finds the shortest tour for the travelling salesman problem. Instead we find an upper bound, the length of a tour that exists, so the shortest tour is no longer than it, and a lower bound, a value the shortest tour is no shorter than. The shortest tour then lies between them: lower bound≤shortest tour≤upper bound.\text{lower bound}\leq\text{shortest tour}\leq\text{upper bound}. The smaller the gap, the better we know the answer. If the two bounds are equal, the tour found is optimal.

Key termsupper boundlower bound
Common mistake

Treating a nearest neighbour tour as the shortest tour. It is only an upper bound.

Section 2

Converting to a complete network of shortest distances

The bound methods need a complete network, where every pair of vertices is joined by an arc. If some pairs are not joined by a road, create an arc between them whose length is the shortest distance along the original network. Example: roads AB=7AB=7, BC=5BC=5, CD=6CD=6, DE=4DE=4, BE=9BE=9. Then AC=12AC=12 (via BB), AD=18AD=18, AE=16AE=16 (via BB), BD=11BD=11 (via CC) and CE=10CE=10 (via DD). The new arcs satisfy the triangle inequality, because each is a shortest distance. After finding a tour in the complete network, replace each new arc by the shortest path it stands for. The resulting route in the original network may revisit vertices, which is allowed in the practical problem.

Key termscomplete networkshortest distance
Exam tip

Fill in the table of shortest distances row by row, checking routes through each other vertex.

Section 3

Upper bound: the nearest neighbour algorithm

The nearest neighbour algorithm builds a tour step by step.

  1. Choose a starting vertex.
  2. Move along the shortest arc to a vertex not yet visited.
  3. Repeat until all vertices are visited, then return to the start. Example on a complete network with PQ=14PQ=14, PR=10PR=10, PS=17PS=17, PT=9PT=9, QR=11QR=11, QS=8QS=8, QT=15QT=15, RS=12RS=12, RT=13RT=13, ST=16ST=16: from PP go to TT (99), then RR (1313), then QQ (1111), then SS (88), then back to PP (1717). The tour has length 5858, so 5858 is an upper bound. Different starting vertices can give different tours. Start from each vertex in turn and take the smallest tour length as the best upper bound.
Key termsnearest neighbour algorithm
Common mistake

Forgetting the final arc back to the start vertex when adding up the tour.

Section 4

Upper bound: minimum spanning trees and shortcuts

A walk that goes all the way round a minimum spanning tree, out along each arc and back, visits every vertex and returns to the start. It uses each arc twice, so its length is 2×2\times the weight of the tree. This gives an upper bound. Use shortcuts to improve it: whenever the walk would revisit a vertex, go straight to the next new vertex instead. In a complete network satisfying the triangle inequality a shortcut is never longer than the route it replaces. Example: a network has a minimum spanning tree that is the path BB-CC-AA-EE-DD with arcs 88, 99, 77, 66 (weight 3030), and BD=11BD=11. The walk gives 6060. Shortcutting from DD straight back to BB (1111) gives the tour BB-CC-AA-EE-DD-BB of length 8+9+7+6+11=418+9+7+6+11=41. Shortcuts can also be used on a nearest neighbour tour: if replacing two arcs by one shorter arc still gives a tour, use it.

Key termsshortcut
Exam tip

After a shortcut, check the new route is still a tour: every vertex once, back to the start.

Section 5

Lower bound: deleting a vertex

To find a lower bound:

  1. Delete one vertex XX, with all its arcs.
  2. Find a minimum spanning tree of the remaining vertices.
  3. Add the lengths of the two shortest arcs at XX. This is a lower bound because every tour contains two arcs at XX, each at least as long as the two shortest, and removing XX from a tour leaves a path joining the other vertices, which is at least as long as their minimum spanning tree. Example (the same network, with BC=8BC=8 and BD=11BD=11 the two shortest arcs at BB): delete BB, and the minimum spanning tree on AA, CC, DD, EE has arcs 66, 77, 99 and weight 2222, so the lower bound is 22+8+11=4122+8+11=41. Deleting a different vertex can give a different lower bound. Repeat for several vertices and take the largest, since it is the best lower bound.
Key termsdeleted vertex
Common mistake

Adding the arcs at the deleted vertex to the tree, rather than the two shortest arcs only.

Section 6

Using the bounds

Give the best bounds you have found, and state them as an inequality such as 41≤shortest tour≤4141\leq\text{shortest tour}\leq41. If the lower bound equals the upper bound, the tour is optimal. Otherwise the shortest tour lies in between. You can say how close the upper bound is, for example within 55 of the lower bound. In the practical problem, convert the tour back to the original network by replacing each arc of the complete network with its shortest path. State the final route as a list of vertices, and check its length equals the upper bound.

Exam tip

Show each bound with its working. Marks are given for the tree, the added arcs and the total.

That's the notes covered.

Carry on to the next subtopic.

Exam questions on Bounds for the travelling salesman problem

  1. A complete network has five vertices PP, QQ, RR, SS and TT, with lengths PQ=14PQ=14, PR=10PR=10, PS=17PS=17, PT=9PT=9, QR=11QR=11, QS=8QS=8, QT=15QT=15, RS=12RS=12, RT=13RT=13 and ST=16ST=16.
    Apply the nearest neighbour algorithm starting at PP. Write down the tour and its length, and state what this tells you about the shortest tour.2 marks
  2. A complete network has five depots VV, WW, XX, YY and ZZ, with lengths VW=11VW=11, VX=7VX=7, VY=9VY=9, VZ=14VZ=14, WX=6WX=6, WY=13WY=13, WZ=10WZ=10, XY=8XY=8, XZ=12XZ=12 and YZ=15YZ=15. A lower bound for the travelling salesman problem is found by deleting vertex VV.
    Find the lower bound for the length of the shortest tour from deleting VV, and explain why it is a lower bound.2 marks
  3. A delivery firm has five depots AA to EE. The only direct roads and their lengths in km are AB=7AB=7, BC=5BC=5, CD=6CD=6, DE=4DE=4 and BE=9BE=9. A driver must visit every depot and return to the start, and may pass through a depot more than once.
    Find the shortest distances between AA and DD, between BB and DD, and between CC and EE.3 marks
See the full worksheet

Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).