Questions: Hamiltonian Path and Cycle Problems

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

An algorithm claims to verify a proposed Hamiltonian cycle in O(n) time by checking that every vertex appears exactly once and each consecutive pair is connected by an edge. Is this consistent with the NP-completeness of the Hamiltonian cycle problem?

ANo — if verification is O(n), then finding a Hamiltonian cycle must also be O(n) by symmetry
BYes — NP-completeness says finding a solution may be hard, but verification is always easy; the Hamiltonian cycle problem is in NP precisely because valid solutions can be verified in polynomial time
CNo — NP-complete problems cannot be verified in polynomial time; that is what makes them hard
DYes, but only for graphs with fewer than 1,000 vertices; larger graphs require exponential verification time
Question 2 Multiple Choice

An undirected graph G has 15 vertices, all with even degree. What can you conclude?

AG contains a Hamiltonian cycle — every vertex with even degree guarantees each can be visited exactly once
BG contains a Hamiltonian cycle if and only if it is also connected
CG contains an Eulerian circuit — a closed walk traversing every edge exactly once — if G is connected
DG contains neither an Eulerian circuit nor a Hamiltonian cycle without further information
Question 3 True / False

The Eulerian circuit problem and the Hamiltonian cycle problem both ask about traversal conditions on graphs, yet one is solvable in polynomial time while the other is NP-complete.

TTrue
FFalse
Question 4 True / False

Because the Hamiltonian cycle problem is NP-complete, it has been proven that no polynomial-time algorithm for it can ever exist.

TTrue
FFalse
Question 5 Short Answer

Why does changing a problem from 'traverse every edge exactly once' to 'visit every vertex exactly once' transform it from polynomial-time solvable to NP-complete?

Think about your answer, then reveal below.