Is There a Polynomial Time Solution to the Travelling Salesman Problem?

  • Context: Undergrad 
  • Thread starter Thread starter Dragonfall
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the Travelling Salesman Problem (TSP), specifically focusing on the verification of solutions in polynomial time and the distinction between the TSP and its decision problem. Participants explore the complexities involved in verifying whether a given path is the shortest and the implications of NP-hardness and NP-completeness in this context.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Conceptual clarification

Main Points Raised

  • Some participants propose that verifying a given solution to the TSP requires knowing the lengths of all routes and comparing them to the proposed solution.
  • Others argue that if the edge weights are removed, the problem simplifies to finding a route without revisiting vertices, which complicates the verification process.
  • It is noted that the TSP is NP-hard, and while there is a polynomial time algorithm for the decision problem "Is there a tour shorter than L?", verifying the minimum path remains complex.
  • Some participants express confusion about the difference between the TSP and the TSP decision problem, particularly regarding how solutions are verified.
  • There is a discussion about the nature of verification for the decision problem, which involves checking if a path is shorter than a given length L, versus verifying the optimality of a path in the TSP.
  • Participants highlight that verifying an answer to the decision problem is straightforward, while verifying the optimization problem is significantly more challenging.

Areas of Agreement / Disagreement

Participants generally agree that verifying solutions to the TSP is complex and that there are distinct differences between the TSP and its decision problem. However, there is no consensus on the feasibility of polynomial time verification for the TSP itself, and some disagreements persist regarding the implications of NP-hardness and the nature of verification.

Contextual Notes

Limitations in the discussion include the dependence on definitions of verification and the complexity of demonstrating the absence of shorter paths, which remains unresolved.

Dragonfall
Messages
1,023
Reaction score
5
Given an answer to the traveling salesman problem, how do you check it in polynomial time? It seems you must know the length of every route and compare it to the answer.
 
Mathematics news on Phys.org
If you don't know the lengths of the routes Dijkstra's algorithm becomes more or less inert. If you remove the scalar values from the edges of a group, the edges become equidistant and it becomes a matter of finding a route where no vertice is visited twice.
 
I'm not sure what you mean.
 
According to wikipedia, the traveling salesman problem is NP-Hard. NP-Hard means it is at least has hard as problems in NP. If we knew it was in NP, it would be NP-complete.

So, in answer to your question, I don't think there is a polynomial time algorithm that verifies a given path is the minimum. However, there is one for the decision problem "Is there a tour shorter than L?", which is the decision version of TSP.
 
Alkatran said:
I don't think there is a polynomial time algorithm that verifies a given path is the minimum. However, there is one for the decision problem "Is there a tour shorter than L?"

How does that not verify that a given tour is shortest? If you can decide in polynomial time whether there is a shorter tour than L, then if the answer turns out negative, then L is the shortest tour.
 
Moo Of Doom said:
How does that not verify that a given tour is shortest? If you can decide in polynomial time whether there is a shorter tour than L, then if the answer turns out negative, then L is the shortest tour.

You're confusing two things: certifying an answer is correct, and actually finding the answer. The TSP decision problem is NP-complete, so there probably isn't a polynomial time algorithm to solve it, but we can verify solutions in polynomial time. The TSP problem is NP-hard, so there might not even be a polynomial time verifier.

In order for such a verifier to work you would need to show there are no shorter paths, but the certificate you've been given only mentions a single path, so you need to actually show no shorter paths exist, which happens to be just as difficult ( see http://en.wikipedia.org/wiki/Co-NP ).
 
I'm slightly confused. What is the difference between the "TSP decision problem" and the "TSP problem"? What is a solution of the "TSP decision problem" and how do you verify it?
 
You are given a set of nodes and distances between pairs of nodes for both the TSP problem and the TSP decision problem. The goal of the TSP problem is to find the minimum length tour. Note that the solution to the TSP problem is a Hamiltonian path. The solution is not a simple yes or no.

The TSP decision problem is a much simpler problem. You are given a length L. The goal is to determine whether there exists some tour whose length is shorter than L. This is a simple yes/no question. In particular, you are not asked for the optimal solution.
 
Then what is the difference between the verification of the two? If you are given a hamiltonian path, you can get a length L, and if there is no tour whose length is shorter than L, it is the shortest path.
 
  • #10
Suppose we have three cities in an equilateral triangle, with nodes separated by a length L. Some TSP decision problems with this network: Is there a hamiltonian path whose length is at most 4L? at most 2L?
 
  • #11
Dragonfall said:
Then what is the difference between the verification of the two? If you are given a hamiltonian path, you can get a length L, and if there is no tour whose length is shorter than L, it is the shortest path.

It's very easy to verify one, and not so much to verify the other.

Verifying an answer to the decision problem is just summing up the path lengths you're given to make sure they're less than L, and making sure all the cities are visited exactly once.

Verifying the optimization problem requires you to show there are no shorter paths, which can be very hard.
 
  • #12
Alkatran said:
Verifying an answer to the decision problem is just summing up the path lengths you're given to make sure they're less than L, and making sure all the cities are visited exactly once.

Ah, I was under the impression an answer to the decision problem would be "yes," rather than "here is a path shorter than L." Hence the source of my confusion.
 

Similar threads

Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
7K
  • · Replies 81 ·
3
Replies
81
Views
10K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K