Back to catalogue
Computer ScienceComputational complexityOpen

P versus NP

Whether every problem whose solution can be checked quickly can also be solved quickly.

Problem statement

Does P = NP? Equivalently, can every problem with a polynomial-time verifiable solution also be solved in polynomial time?

Technical overview

P is the class of languages decidable in polynomial time by a deterministic Turing machine. NP is the class decidable in polynomial time by a nondeterministic machine, equivalently those with polynomial size certificates verifiable in polynomial time. Since P is contained in NP, the question is whether the containment is strict. NP complete problems such as SAT are the hardest in NP, so P = NP would collapse the entire class.

In plain language

Checking a finished jigsaw puzzle is quick. Putting it together is hard. The question asks whether those two tasks are really the same difficulty after all.

How it came about

The question grew out of work in the 1960s on what makes computation hard. Stephen Cook and Leonid Levin independently formulated it in the early 1970s, and the Clay Institute added it to its prize list in 2000.

Details
Originator
Stephen Cook and Leonid Levin
Proposed
1971 / 1973
Prize
Clay Millennium Prize: US$1 million
Editorial status
Open
Monetary award
None recorded
What this status means

Evidence supports that the stated problem remains unresolved.

Keywords and what they mean
complexity theoryClassifying problems by their computational difficulty.
algorithmsStep by step procedures for solving problems.
Millennium PrizeA one million dollar award for solving a Clay Institute problem.
Sources (5)
Claimed results and disputes

These are claims or contested sources, not accepted solutions. They are tracked for context.

Have new evidence or a claimed proof? Open a public thread ↗

Tracking history
See all tracking updates ->
Editorial note

Central open problem of theoretical computer science, with deep consequences for cryptography, optimisation and mathematics.

Found an error or a missing source? Open a public correction thread ↗

Public discussion
All public threads ↗

Comments are public and need a GitHub account. A comment does not change the editorial status of this entry. For a claimed proof, link the manuscript, its date and the step you believe is new.

Start a public thread ↗How claims are handled ->

If the thread does not load, open it on GitHub ↗

Keep exploring

More in Computer Science

View discipline ->
Computer ScienceOpen

NP versus co-NP

Whether problems with efficiently verifiable "yes" answers also have efficiently verifiable "no" answers.

Computer ScienceOpen

P versus PSPACE

Whether polynomial time and polynomial space define the same class of problems.

Computer ScienceOpen

Unique Games Conjecture

A conjecture about the hardness of approximating a particular class of constraint problems.