• Tutorials
  • DSA
  • Data Science
  • Web Tech
  • Courses
June 13, 2022 |85.0K Views

Travelling Salesman Problem

Description
Discussion

Travelling Salesman Problem (TSP): Given a set of cities and the distance between every pair of cities, the problem is to find the shortest possible route that visits every city exactly once and returns to the starting point. Note the difference between Hamiltonian Cycle and TSP.

 The Hamiltonian cycle problem is to find if there exists a tour that visits every city exactly once. Here we know that Hamiltonian Tour exists (because the graph is complete) and in fact, many such tours exist, the problem is to find a minimum weight Hamiltonian Cycle.

Travelling Salesman Problem : https://www.geeksforgeeks.org/travelling-salesman-problem-set-1/