Practice free →
HomeGATE CSEcomputerscienceAlgorithms › A problem X is NP-complete if and only if

A problem X is NP-complete if and only if

AX is in P
BX is in NP and has a known polynomial-time algorithm
CX reduces to some easy problem in P
DX is in NP AND every problem in NP polynomially reduces to X
Answer & Solution
Correct answer: D. X is in NP AND every problem in NP polynomially reduces to X
Two-part definition: (1) X ∈ NP (polynomial verifier exists), (2) X is NP-hard (every NP problem reduces to X in polynomial time). Together these make X 'the hardest in NP'. If X also had a polynomial-time algorithm (option B), then P = NP. NP-complete problems by definition reduce from EVERY NP problem, not to easy ones.
Solve this in the app — GATE CSE practice & 24k+ MCQs →
Related questions