Is finding a hamiltonian cycle as hard as determining if one exists? Can a hamiltonian cycle be found in polynomial time given an oracle for detecting hamiltonian cycles?
Tell me more
×
Mathematics Stack Exchange is a question and answer site for
people studying math at any level and professionals in related fields. It's 100% free, no registration required.
|
Assume you have a method to detect whether or not a graph $G$ with $v$ vertices and $e$ edges has a hamiltonian cycle in time $p(v,e)$ for some polynomial $p$. The following method than actually finds such a cycle: For each edge: Remove the edge; check if the graph is still hamiltonian; if not, add the edge back, otherwise leave it deleted. Once we have treted all edges, a cycle remains. This makes $e$ tests of time $\le p(v,e)$ each, hence the time is $\le e\cdotp(v,e)$ and still polynomial. |
|||
|
|
