SecSIGSecurity Special Interest Group of US MensaCuriosity. Perspective. Security.

Research Library · Idea

NP-completeness

A problem is NP-complete if it is in NP and every problem in NP reduces to it in polynomial time. Cook's Clay Institute description states this as a language L in NP such that every language L' in NP is polynomial-time many-one reducible to L, meaning a polynomial-time computable function f with x in L' exactly when f(x) is in L.1 If one NP-complete language is in P, then P equals NP, and Cook says this is why it is probably a waste of time to look for a polynomial-time algorithm for an NP-complete problem. To show that a new problem in NP is NP-complete, it is enough to reduce a known NP-complete problem to it.1

Cook's 1971 paper defined a set of strings to be P-reducible to another if a polynomial-time query machine with an oracle for the second set decides the first. Its Theorem 1 says that any set accepted by a nondeterministic Turing machine within polynomial time is P-reducible to the set of tautologies in disjunctive normal form.2 Cook's later description says this paper showed that Satisfiability, 3-SAT and subgraph isomorphism are NP-complete, and that Levin independently defined a similar notion of universal search problem.1

Karp's 1972 paper says it was stimulated by Cook's work and rests on an important theorem that appears there.3 He uses reductions by polynomial-time computable functions, calls a language complete if it is in NP and every language in NP reduces to it, and states that either all complete languages are in P or none of them are, the former holding if and only if P = NP.3 He also shows that a large number of classic difficult problems from graph theory, combinatorics, logic and mathematical programming are complete.3 Cook's description counts these as 20 problems beyond Satisfiability, and notes that Karp introduced the notation P and NP.1

NP-completeness is a statement about worst-case difficulty. Whether any NP-complete problem is in P is the P versus NP question, which the Clay Mathematics Institute lists as unsolved.4

Source · The P versus NP Problem (opens in a new tab) · Clay Mathematics Institute

References

  1. The P versus NP Problem (opens in a new tab) · Clay Mathematics Institute · Definitions of many-one reducibility and NP-completeness, Proposition 1, and the history of Cook, Karp and Levin. ↩ ↩ ↩ ↩
  2. The Complexity of Theorem-Proving Procedures (opens in a new tab) · Proceedings of the Third Annual ACM Symposium on Theory of Computing (author: Stephen A. Cook) · Stephen A. Cook, May 1971, pp. 151-158; definition of P-reducibility and Theorem 1. ↩
  3. Reducibility among Combinatorial Problems (opens in a new tab) · University of California at Berkeley (author: Richard M. Karp) · Richard M. Karp, 1972; in Complexity of Computer Computations, pp. 85-103; abstract, introduction and Theorem 2. ↩ ↩ ↩
  4. P vs NP (opens in a new tab) · Clay Mathematics Institute · Problem page, labelled Unsolved when opened on 26 November 2026. ↩

Research articles

In the news

See what connects to it on the map of ideas →

See also