Apply to Figure 1a the following approximation algorithms (Johnson and Papadimitriou 1985; Rosenkrantz, Stearns, and Lewis, 1977) to solve the traveling salesman problem.
a. The nearest neighbor algorithm (next best method) begins with an arbitrary vertex v and then finds a vertex w not on the tour that is closest to the vertex u last added and includes in the tour edge(uw) and edge(wv) after deleting edge(uv).
b. The nearest insertion algorithm is obtained from nearestAdditionAlgorithm() by finding two vertices Vq and Vr in the tour that minimize the expression
dist(edge(vqvi)) + dist(edge(vivr)) – dist(edge(vqvr))In this way, a new vertex vi is inserted in the best place in the existing tour, which may not be next to vp.
c. The cheapest insertion algorithm is obtained from nearestAdditionAlgorithm() by including in tour a new vertex vi that minimizes the length of the new tour.
d. The farthest insertion algorithm is just like the nearest insertion algorithms except that it requires that vi is farthest from tour, not closest.
e. The nearest merger algorithm, which corresponds to the Borůvka algorithm:

Figure 1a Using a minimum spanning tree to find a minimum salesman tour.


We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.