1. Other
  2. Other
  3. give a polynomialtime reduction from hamiltonian path to hamiltonian...

Question: give a polynomialtime reduction from hamiltonian path to hamiltonian...

Question details

Give a polynomial-time reduction f from Hamiltonian Path (HP) to Hamiltonian Cycle (HC). You should prove that:

1. If G is in HP, then f(G) is in HC.

2. If G is not in HP, then f(G) is not in HC.

3. f(G) can be computed in time polynomial in |G|.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution