All mock tests are FREE till 31 December — register to save your progress

Consider the following statements:
A. If some NP-complete problem is in P, then P = NP.
B. TSP is in NP.
C. SAT is in NP.
D. The Hamiltonian circuit problem is not NP-complete.
Choose the correct answer from the options given below:

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: A. A, B and C only

Explanation

A is a standard theorem, and TSP (decision version) and SAT are in NP. The Hamiltonian-circuit problem is NP-complete, so D is false.

More Data Structures and Algorithms questions