All mock tests are FREE till 31 December — register to save your progress
Unit 7 · Data Structures and Algorithms Paper 2 CS · December 2024

Choose the correct statement(s)
A. A problem which is NP-Complete will have the property that it can be solved in polynomial time iff all other NP-complete problems can also be solved in polynomial time.
B. All NP-complete problems are NP-hard problems.
C. If an NP-hard problem can be solved in polynomial time, then all NP-complete problems can be solved in polynomial time.
D. All NP-hard problems are 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: D. A, B, C, D

Explanation

All NP-complete problems reduce to one another in polynomial time (A). NP-complete = NP ∩ NP-hard (B). Every NP problem reduces to an NP-hard problem, so a polynomial algorithm for it solves all NP-complete problems (C). D means 'not every NP-hard problem is NP-complete' (e.g. the halting problem), which is true.

More Data Structures and Algorithms questions