Further Maths Travelling salesman problem Practice Questions

Free Further Maths Travelling salesman problem practice questions with full step-by-step worked solutions. Covers travelling-salesman, nearest-neighbour, upper-bound, optimal-tour. Practise exam-style problems and check your method.

travelling-salesmannearest-neighbourupper-boundoptimal-tournetworkslower-bound
Further Maths70 questionsStep-by-step solutions
Question 1
2 markseasy
A complete network has vertices AA, BB, CC, DD and EE. The distances between the vertices are AB=14AB=14, AC=87AC=87, AD=61AD=61, AE=92AE=92, BC=74BC=74, BD=30BD=30, BE=29BE=29, CD=68CD=68, CE=75CE=75, DE=50DE=50. In the classical travelling salesman problem each vertex must be visited exactly once and the tour finishes where it started. Use the nearest-neighbour algorithm on this network, starting at AA, to find an upper bound for the length of the optimal tour.
Show worked solution

Worked solution

  1. Start at AA and repeatedly go to the nearest unvisited vertex

    tour:  ABEDCA\text{tour}:\;A\to B\to E\to D\to C\to A

    At each stage the algorithm takes the shortest arc to a vertex that has not yet been visited, and finally returns to AA.

  2. Add the lengths of the arcs used, including the return to AA

    14+29+50+68+87=24814+29+50+68+87=248

    The tour uses the arcs AB,\;BE,\;ED,\;DC,\;CA.

  3. State the upper bound

    upper bound=248\text{upper bound}=248

    The tour A\to B\to E\to D\to C\to A has length 248248, so the optimal tour is no longer than 248248.

Answer
248248
Question 2
2 markseasy
A complete network has vertices AA, BB, CC, DD and EE. The distances between the vertices are AB=61AB=61, AC=75AC=75, AD=76AD=76, AE=30AE=30, BC=69BC=69, BD=38BD=38, BE=35BE=35, CD=86CD=86, CE=79CE=79, DE=34DE=34. In the classical travelling salesman problem each vertex must be visited exactly once and the tour finishes where it started. A lower bound is found by deleting vertex EE, finding the minimum spanning tree of the remaining network and then adding back two arcs. Which two arcs are added back?
Show worked solution

Worked solution

  1. List the arcs joined to the deleted vertex EE

    EA=30,  ED=34,  EB=35,  EC=79EA=30,\;ED=34,\;EB=35,\;EC=79

    Only the arcs at EE matter once the residual minimum spanning tree has been found.

  2. Select the two shortest arcs at EE

    EA=30,  ED=34EA=30,\;ED=34

    A tour uses exactly two arcs at EE, so the two shortest arcs give the smallest possible contribution.

  3. Select the pair of arcs that must be added back

    add back  EA=30,  ED=34\text{add back}\;EA=30,\;ED=34

    These two arcs are added to the weight of the residual minimum spanning tree to give the lower bound.

Answer
EA=30,  ED=34EA=30,\;ED=34
Question 3
4 marksintermediate
A complete network has vertices AA, BB, CC, DD, EE and FF. The distances between the vertices are AB=65AB=65, AC=49AC=49, AD=56AD=56, AE=58AE=58, AF=67AF=67, BC=10BC=10, BD=14BD=14, BE=31BE=31, BF=9BF=9, CD=27CD=27, CE=33CE=33, CF=38CF=38, DE=64DE=64, DF=29DF=29, EF=57EF=57. In the classical travelling salesman problem each vertex must be visited exactly once and the tour finishes where it started. A lower bound is found by deleting vertex DD, finding the minimum spanning tree of the remaining network and then adding back two arcs. Which two arcs are added back?
Show worked solution

Worked solution

  1. List the arcs joined to the deleted vertex DD

    DB=14,  DC=27,  DF=29,  DA=56,  DE=64DB=14,\;DC=27,\;DF=29,\;DA=56,\;DE=64

    Only the arcs at DD matter once the residual minimum spanning tree has been found.

  2. Select the two shortest arcs at DD

    DB=14,  DC=27DB=14,\;DC=27

    A tour uses exactly two arcs at DD, so the two shortest arcs give the smallest possible contribution.

  3. Note that all the distances in this network are different

    distinct weights    the nearest neighbour is never ambiguous\text{distinct weights}\;\Rightarrow\;\text{the nearest neighbour is never ambiguous}

    With no two arcs of equal length, the nearest unvisited vertex is always unique, so the algorithm has a single well-defined output.

  4. Recall that the nearest-neighbour algorithm gives an UPPER bound

    optimal tourany tour found by nearest neighbour\text{optimal tour}\leq\text{any tour found by nearest neighbour}

    The nearest-neighbour algorithm produces a genuine tour, and the optimal tour cannot be longer than a tour we have actually found.

  5. Recall that deleting a vertex gives a LOWER bound

    residual minimum spanning tree+two shortest arcsoptimal tour\text{residual minimum spanning tree}+\text{two shortest arcs}\leq\text{optimal tour}

    Removing a vertex from any tour leaves a path through the other vertices, which is a spanning tree of them, so it is at least as long as the minimum spanning tree.

  6. Select the pair of arcs that must be added back

    add back  DB=14,  DC=27\text{add back}\;DB=14,\;DC=27

    These two arcs are added to the weight of the residual minimum spanning tree to give the lower bound.

Answer
DB=14,  DC=27DB=14,\;DC=27
Question 4
6 markshard
A network has vertices AA, BB, CC, DD, EE and FF. Not every pair of vertices is joined directly by an arc. The arcs of the network and their weights are AB=8AB=8, AC=15AC=15, AD=24AD=24, AE=63AE=63, AF=35AF=35, BC=17BC=17, BF=29BF=29, CE=13CE=13, CF=27CF=27, DE=31DE=31. In the practical travelling salesman problem a vertex may be visited more than once, so the algorithms are applied to the complete network of least distances, in which the distance between two vertices is the length of the shortest route between them; this table of least distances satisfies the triangle inequality. Find the least distance from BB to DD.
Show worked solution

Worked solution

  1. Find the least distance from BB to DD

    BAD=32;\quadBCAD=56;\quadBCED=61;\quadBACED=67B\to A\to D=32;\quadB\to C\to A\to D=56;\quadB\to C\to E\to D=61;\quadB\to A\to C\to E\to D=67

    There is no direct arc from BB to DD, so the least distance is the length of the shortest route, B\to A\to D.

  2. Enter the least distance BD=32BD=32 in the table of least distances

    BD=32BD=32

    The shortest route B\to A\to D has length 3232.

  3. Find the least distance from BB to EE

    BCE=30;\quadBACE=36;\quadBADE=63;\quadBFCE=69B\to C\to E=30;\quadB\to A\to C\to E=36;\quadB\to A\to D\to E=63;\quadB\to F\to C\to E=69

    There is no direct arc from BB to EE, so the least distance is the length of the shortest route, B\to C\to E.

  4. Enter the least distance BE=30BE=30 in the table of least distances

    BE=30BE=30

    The shortest route B\to C\to E has length 3030.

  5. Find the least distance from CC to DD

    CAD=39;\quadCED=44;\quadCBAD=49;\quadCFAD=86C\to A\to D=39;\quadC\to E\to D=44;\quadC\to B\to A\to D=49;\quadC\to F\to A\to D=86

    There is no direct arc from CC to DD, so the least distance is the length of the shortest route, C\to A\to D.

  6. Enter the least distance CD=39CD=39 in the table of least distances

    CD=39CD=39

    The shortest route C\to A\to D has length 3939.

  7. Find the least distance from DD to FF

    DAF=59;\quadDABF=61;\quadDACF=66;\quadDECF=71D\to A\to F=59;\quadD\to A\to B\to F=61;\quadD\to A\to C\to F=66;\quadD\to E\to C\to F=71

    There is no direct arc from DD to FF, so the least distance is the length of the shortest route, D\to A\to F.

  8. Enter the least distance DF=59DF=59 in the table of least distances

    DF=59DF=59

    The shortest route D\to A\to F has length 5959.

  9. Note why the table of least distances is needed

    no direct arc  BD    use the shortest route\text{no direct arc}\;BD\;\Rightarrow\;\text{use the shortest route}

    In the practical problem the salesman may pass through a vertex more than once, so the relevant distance is the shortest route.

  10. State the least distance from BB to DD

    BD=32BD=32

    The shortest route from BB to DD is B\to A\to D, of length 3232, and this is the entry that goes in the table of least distances.

Answer
3232
Question 5
9 markschallenging
A network has vertices AA, BB, CC, DD, EE and FF. Not every pair of vertices is joined directly by an arc. The arcs of the network and their weights are AB=19AB=19, AC=23AC=23, AD=57AD=57, AF=67AF=67, BC=14BC=14, BE=18BE=18, BF=54BF=54, CD=38CD=38, CF=51CF=51, DE=50DE=50. In the practical travelling salesman problem a vertex may be visited more than once, so the algorithms are applied to the complete network of least distances, in which the distance between two vertices is the length of the shortest route between them; this table of least distances satisfies the triangle inequality. Using the table of least distances, delete vertex EE to find a lower bound for the length of the optimal practical tour.
Show worked solution

Worked solution

  1. Find the least distance from AA to EE

    ABE=37;\quadACBE=55;\quadADE=107;\quadACDE=111A\to B\to E=37;\quadA\to C\to B\to E=55;\quadA\to D\to E=107;\quadA\to C\to D\to E=111

    There is no direct arc from AA to EE, so the least distance is the length of the shortest route, A\to B\to E.

  2. Enter the least distance AE=37AE=37 in the table of least distances

    AE=37AE=37

    The shortest route A\to B\to E has length 3737.

  3. Find the least distance from BB to DD

    BCD=52;\quadBED=68;\quadBAD=76;\quadBACD=80B\to C\to D=52;\quadB\to E\to D=68;\quadB\to A\to D=76;\quadB\to A\to C\to D=80

    There is no direct arc from BB to DD, so the least distance is the length of the shortest route, B\to C\to D.

  4. Enter the least distance BD=52BD=52 in the table of least distances

    BD=52BD=52

    The shortest route B\to C\to D has length 5252.

  5. Find the least distance from CC to EE

    CBE=32;\quadCABE=60;\quadCDE=88;\quadCFBE=123C\to B\to E=32;\quadC\to A\to B\to E=60;\quadC\to D\to E=88;\quadC\to F\to B\to E=123

    There is no direct arc from CC to EE, so the least distance is the length of the shortest route, C\to B\to E.

  6. Enter the least distance CE=32CE=32 in the table of least distances

    CE=32CE=32

    The shortest route C\to B\to E has length 3232.

  7. Delete vertex EE and every arc joined to it

    remaining vertices:  A,  B,  C,  D,  F\text{remaining vertices}:\;A,\;B,\;C,\;D,\;F

    The lower bound is built from the network on the other 55 vertices.

  8. List the arcs of the remaining network in ascending order

    BC=14,  AB=19,  AC=23,  CD=38,  CF=51,  BD=52,  BF=54,  AD=57,  AF=67,  DF=89BC=14,\;AB=19,\;AC=23,\;CD=38,\;CF=51,\;BD=52,\;BF=54,\;AD=57,\;AF=67,\;DF=89

    A minimum spanning tree for these 55 vertices is now needed.

  9. Build the minimum spanning tree of the remaining network

    AB=19,  BC=14,  CD=38,  CF=51AB=19,\;BC=14,\;CD=38,\;CF=51

    Each arc chosen is the shortest arc joining the tree built so far to a vertex not yet in it.

  10. Add the lengths of the arcs of the residual tree

    19+14+38+51=12219+14+38+51=122

    The residual minimum spanning tree has total weight 122122.

  11. Add back the two shortest arcs from EE

    EB=18,  EC=32EB=18,\;EC=32

    In any tour, vertex EE is joined to exactly two other vertices, so at least the two shortest arcs at EE must be used.

  12. Note that all the distances in this network are different

    distinct weights    the nearest neighbour is never ambiguous\text{distinct weights}\;\Rightarrow\;\text{the nearest neighbour is never ambiguous}

    With no two arcs of equal length, the nearest unvisited vertex is always unique, so the algorithm has a single well-defined output.

  13. Recall that the nearest-neighbour algorithm gives an UPPER bound

    optimal tourany tour found by nearest neighbour\text{optimal tour}\leq\text{any tour found by nearest neighbour}

    The nearest-neighbour algorithm produces a genuine tour, and the optimal tour cannot be longer than a tour we have actually found.

  14. Recall that deleting a vertex gives a LOWER bound

    residual minimum spanning tree+two shortest arcsoptimal tour\text{residual minimum spanning tree}+\text{two shortest arcs}\leq\text{optimal tour}

    Removing a vertex from any tour leaves a path through the other vertices, which is a spanning tree of them, so it is at least as long as the minimum spanning tree.

  15. Add the two shortest arcs to the weight of the residual tree

    122+18+32=172122+18+32=172

    Deleting EE gives a lower bound of 172172 for the length of the optimal tour.

Answer
172172

Unlock 65 more Travelling salesman problem questions

Create a free account to work through every Further Maths Travelling salesman problem question with instant step-by-step worked solutions, progress tracking and interactive lessons.

  • Full worked solutions for every question
  • Interactive lessons and instant feedback
  • Track your mastery across every topic
Create a Free Account

No card required · Free forever

More Travelling salesman problem practice

Related Decision Maths topics