| Thread Closed |
Travelling Salesman Problem |
Share Thread | Thread Tools |
| May11-07, 09:35 PM | #1 |
|
|
Travelling Salesman Problem
Given an answer to the travelling 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.
|
| May13-07, 09:02 AM | #2 |
|
|
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.
|
| May14-07, 12:50 PM | #3 |
|
|
I'm not sure what you mean.
|
| May14-07, 05:24 PM | #4 |
|
Recognitions:
|
Travelling Salesman Problem
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. |
| May14-07, 10:21 PM | #5 |
|
|
|
| May15-07, 12:14 AM | #6 |
|
Recognitions:
|
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 ). |
| May15-07, 04:45 AM | #7 |
|
|
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?
|
| May15-07, 05:42 AM | #8 |
|
Mentor
|
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. |
| May15-07, 06:07 AM | #9 |
|
|
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.
|
| May15-07, 06:29 AM | #10 |
|
Mentor
|
Suppose we have three cities in an equilateral triangle, with nodes seperated 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?
|
| May15-07, 07:47 AM | #11 |
|
Recognitions:
|
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. |
| May16-07, 02:57 AM | #12 |
|
|
|
| Thread Closed |
| Thread Tools | |
Similar Threads for: Travelling Salesman Problem
|
||||
| Thread | Forum | Replies | ||
| Travelling Salesman | General Math | 3 | ||
| Salesman problem | General Math | 0 | ||
| Travelling Problem | Set Theory, Logic, Probability, Statistics | 1 | ||
| Traveling salesman formula. | General Math | 1 | ||
| Travelling Salesman Problem | General Math | 4 | ||