Dragonfall
- 1,023
- 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.
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.
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.
Limitations in the discussion include the dependence on definitions of verification and the complexity of demonstrating the absence of shorter paths, which remains unresolved.
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?"
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.
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.
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.