Data Structures and Algorithms Made Easy by Karumanchi Narasimha

Data Structures and Algorithms Made Easy by Karumanchi Narasimha

Author:Karumanchi, Narasimha
Language: eng
Format: epub, pdf
Published: 2017-01-13T05:00:00+00:00


Algorithm:

Problem-41  Travelling Sales Person Problem: Find the shortest path in a graph that visits each vertex at least once, starting and ending at the same vertex?

Solution: The Traveling Salesman Problem (TSP) is related to finding a Hamiltonian cycle. Given a weighted graph G, we want to find the shortest cycle (may be non-simple) that visits all the vertices.

Approximation algorithm: This algorithm does not solve the problem but gives a solution which is within a factor of 2 of optimal (in the worst-case).



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.