Solving the NP-Completeness of Travelling Salesman Problem

  • Level: Graduate 
  • Thread starter Thread starter Dragonfall
  • Start date Start date
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
3 replies · 3K views
Dragonfall
Messages
1,023
Reaction score
5
I don't understand how travenlling salesman is NP-complete. In particular, how can you possibly verify that a given route is the shortest one in polynomial time?
 
Mathematics news on Phys.org
The TSP isn't NP-complete - it's NP-hard. But the question: Is there a path shorter than x is NP-complete. A problem is NP-hard iff it can be used to solve an NP-complete problem in O(n) time.
 
Last edited:
TSP is only NP-complete if you use the decision version of the problem.

Side note, TSP is one reason why combinatorial optimization is one of my favorite subjects.