Show worked solution
Worked solution
Find the least distance from to
There is no direct arc from to , so the least distance is the length of the shortest route, A\to B\to E.
Enter the least distance in the table of least distances
The shortest route A\to B\to E has length .
Find the least distance from to
There is no direct arc from to , so the least distance is the length of the shortest route, B\to C\to D.
Enter the least distance in the table of least distances
The shortest route B\to C\to D has length .
Find the least distance from to
There is no direct arc from to , so the least distance is the length of the shortest route, C\to B\to E.
Enter the least distance in the table of least distances
The shortest route C\to B\to E has length .
Delete vertex and every arc joined to it
The lower bound is built from the network on the other vertices.
List the arcs of the remaining network in ascending order
A minimum spanning tree for these vertices is now needed.
Build the minimum spanning tree of the remaining network
Each arc chosen is the shortest arc joining the tree built so far to a vertex not yet in it.
Add the lengths of the arcs of the residual tree
The residual minimum spanning tree has total weight .
Add back the two shortest arcs from
In any tour, vertex is joined to exactly two other vertices, so at least the two shortest arcs at must be used.
Note that all the distances in this network are different
With no two arcs of equal length, the nearest unvisited vertex is always unique, so the algorithm has a single well-defined output.
Recall that the nearest-neighbour algorithm gives an UPPER bound
The nearest-neighbour algorithm produces a genuine tour, and the optimal tour cannot be longer than a tour we have actually found.
Recall that deleting a vertex gives a LOWER bound
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.
Add the two shortest arcs to the weight of the residual tree
Deleting gives a lower bound of for the length of the optimal tour.