Skip to content
NP-hard
EntityQ1137554· pop 25· linked from 520 articles

alt=Euler diagram for P, NP, NP-complete, and NP-hard set of problems.|thumb|300px|Euler diagram for P, NP, NP-complete, and NP-hard set of problems. The left side is valid under the assumption that P≠NP, while the right side is valid under the assumption that P=NP (except that the empty language and its complement are never NP-complete). In computational complexity theory, a computational problem H is called NP-hard if, for every problem L which can be solved in non-deterministic polynomial-time, there is a polynomial-time reduction from L to H. That is, assuming a solution for H takes 1 unit

Wikidata facts

Instance of
complexity class
Show 3 more facts
maintained by WikiProject
WikiProject Mathematics
topic's main category
Category:NP-hard problems
Sources (1)

via Wikidata · CC0

~6 min read

Encyclopedic overview

8 sections
Contents
  • Definition
  • Consequences
  • Examples
  • NP-naming convention
  • Application areas
  • NP-hard problems
  • See also
  • References

alt=Euler diagram for P, NP, NP-complete, and NP-hard set of problems.|thumb|300px|Euler diagram for P, NP, NP-complete, and NP-hard set of problems. The left side is valid under the assumption that P≠NP, while the right side is valid under the assumption that P=NP (except that the empty language and its complement are never NP-complete). In computational complexity theory, a computational problem H is called NP-hard if, for every problem L which can be solved in non-deterministic polynomial-time, there is a polynomial-time reduction from L to H. That is, assuming a solution for H takes 1 unit time, Hs solution can be used to solve L in polynomial time. As a consequence, finding a polynomial time algorithm to solve a single NP-hard problem would give polynomial time algorithms for all the problems in the complexity class NP. As it is suspected, but unproven, that P≠NP, it is unlikely that any polynomial-time algorithms for NP-hard problems exist.

A simple example of an NP-hard problem is the subset sum problem.

Excerpted from Wikipedia’s “NP-hard” article, available under the CC BY-SA 4.0 licence.

Gallery (2)