Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which of the following is not true for the problem classes P, NP, NP-complete and NP-hard ?

  • A.P \(\subset\) NP
  • B.NP-complete \(\subset\) NP
  • C.NP-hard \(\subset\) NP
  • D.NP-complete \(\subset\) NP-hard

Answer: C

The statement that is not true is NP-hard ⊂ NP.

A problem is NP-hard if every problem in NP reduces to it in polynomial time. It need not be in NP itself: the halting problem is NP-hard but undecidable, so it is not in NP, and optimisation versions of NP-complete problems are NP-hard without being decision problems in NP.

The other relations hold. P is contained in NP, since a problem solvable in polynomial time can be verified in polynomial time. NP-complete problems are by definition both in NP and NP-hard, so NP-complete is contained in NP and in NP-hard.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.