Suppose he starts travel from source city ‘A’, visit different cities in the following ways:
Considering the above scenario, you have to choose a suitable algorithm from the following list of algorithms which you think is the best algorithm for the salesman to cover maximum cities by traveling minimum distance.
The most optimal path to reach from one node to another is the direct path, rather than the connecting path.It is always less than or equal path "d(i,k)" + "d(k, j)"
The most feasible algorithm for the traveling salesman problem is Prim's algorithm.
Algorithm to use the minimum spanning tree
Comments
Leave a comment