- IB
- Question Type 8: Applying different approaches to solve the traveling salesman problem
Consider the following distance matrix for a complete graph with 4 nodes, , , , and :
Using the distance matrix provided, apply Christofides’ heuristic to approximate a TSP tour. Describe each step of the algorithm and determine the weight of the resulting tour.
[6]Prove that in a complete graph on labelled vertices, the number of distinct Hamiltonian circuits (up to starting point and direction) is . Then compute this number for .
[5]In a logistics network with six stops labelled –, the distance matrix is
Apply the nearest neighbour heuristic starting at stop . Give the tour and its total distance.
[3]The following distance matrix shows the distances, in kilometres, between four cities , , , and .
Apply the nearest neighbour heuristic starting from city . State the order of visits and calculate the total distance of the tour found.
[4]A salesperson needs to visit four cities , and . The distances between the cities are given in the following distance matrix:
Perform a branch and bound demonstration to find the optimal Traveling Salesperson Problem (TSP) tour for these cities. In your demonstration:
(i) Compute an initial lower bound based on the Minimum Spanning Tree (MST) of all four nodes. (ii) Compute a more refined initial lower bound using the matrix reduction method (sum of row minima). (iii) Explore the branch and determine its cost. (iv) Explain how a branch could be pruned if an upper bound of is already known. (v) Identify the optimal tour and its total distance.
[8]A Traveling Salesman Problem involves five locations, , and . The distances between certain pairs of locations are given in the following table:
| - | |||||
| - | |||||
| - | |||||
| - | |||||
| - |
A candidate tour has been identified as .
Perform one 2-opt swap on the given tour to attempt an improvement. Indicate the new route and its length, and state whether the tour length decreased.
[6]Given the complete graph on nodes 1 to 5 with weight matrix compute the weight of a minimum spanning tree (MST) and use it to provide a lower bound for the Traveling Salesperson Problem (TSP) tour length.
[6]Discrete Mathematics: Graph Theory – Traveling Salesperson Problem (TSP)
For four cities A, B, C and D with distance matrix
find the shortest Hamiltonian circuit visiting each city exactly once and returning to the start. Provide the tour and its total length.
[4]A machine must process five tasks A–E with setup times given by the following matrix:
Find the sequence of tasks (a Hamiltonian circuit) that minimizes the total setup time by using complete enumeration.
[6]Given five points in the plane: , , , , .
Apply the nearest neighbour heuristic starting at to find a tour for the travelling salesman problem (TSP).
State the sequence of visits and calculate the total length of the resulting tour.
[6]Consider a Traveling Salesperson Problem (TSP) with four cities: A, B, C, and D. The distances between the cities are given in the following table:
Using the Held–Karp dynamic programming algorithm, compute the exact optimal Traveling Salesperson Problem (TSP) cost for a tour starting and ending at city A. Outline the recurrence relations and show the computations for each step.
[6]This question assesses the ability to evaluate the performance of the nearest neighbour heuristic by comparing it with an exact optimal solution using percentage excess in the context of the Traveling Salesman Problem (TSP).
The length of the route obtained by the nearest neighbour heuristic is 80 units and the length of the exact optimal route for the same matrix is 80 units.
Calculate the percentage excess of the heuristic over the optimum and compare the performance of the heuristic with the optimal route.
[3]