This is a question that our professor uploaded yesterday, to prepare for our exam tomorrow. My problem with the question is part b (in boldface below); I'm not sure what I should do exactly.
The Traveling Salesman Problem consists of a salesman and a set of cities. The salesman has to visit each one of the cities starting from a certain one (e.g. the hometown) and returning to the same city. The challenge of the problem is that the traveling salesman wants to minimize the total length of the trip.
TSP = {(G, f, t): G = (V, E) a complete graph, f is a function V×V → Z, t ∈ Z, G is a graph that contains a traveling salesman tour with cost that does not exceed t}.
Let the HAM-CYCLE problem defined as follows: given an undirected graph G = (V, E), does there exist a simple cycle H that contains every node in V.
Let a complete graph be a graph where there is an edge “between” every possible tuple of vertices.
a-Define a certificate for TSP. Show that we can verify the certificate in deterministic polynomial time.
b-Prove that the reduction of HAM-CYCLE to TSP is polynomial-time.
c-Using the fact that HAM-CYCLE is NP-complete, what can we conclude?