1

I know how to prove longest-path problem by reducing Hamiltonian Path problem.

Here I want to prove NP-hardness of a Hamiltonion Path problem by reducing longest-path problem. (pretend we know longest-path problem is NP-hardness, not Hamiltonion Path problem)

I'm wondering if it is possible to reduce Hamiltonian Path problem to longest path problem.

Is there any way I can do that?

1
3

Suppose you have a graph G of order n. G has a simple path of length n1 if and only if G has a hamiltonian path.

3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.