P versus NP
Can every problem whose answer is quick to check also be solved quickly?
Edited by Alex C, EduAlx · Sources cited below
Explanation
P is the class of problems solvable in polynomial time; NP is the class whose solutions can be verified in polynomial time. Cook (1971) and Levin showed SAT is NP-complete; Karp (1972) listed 21 NP-complete problems. It is one of the Clay Millennium Prize Problems ($1 million).
Example
How it works, step by step
- Show the problem is in NP (verifiable)
- Pick a known NP-complete problem
- Reduce it to your problem in polynomial time
- Conclude your problem is NP-complete
Open the interactive page with diagrams →
People behind it
- Stephen Cook (b. 1939), Theoretical computer science, USA / Canada: Defined NP-completeness (Cook–Levin theorem, 1971). Turing Award 1982.
- Leonid Levin
- Richard Karp (b. 1935), Theoretical computer science, USA: Showed 21 problems are NP-complete (1972). Turing Award 1985.
References
- S. A. Cook, Proc. 3rd ACM STOC 1971, 151–158.
- R. M. Karp, in Complexity of Computer Computations, Plenum, 1972, 85–103.
Textbooks
- Introduction to the Theory of Computation, Michael Sipser (Cengage, 3rd ed. 2012). Automata, computability and complexity.
- Introduction to Algorithms, Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, Clifford Stein (MIT Press, 4th ed. 2022). 'CLRS', the standard algorithms text.
Related topics
Boolean logic and digital circuitsTuring machines and computabilityVon Neumann architectureDynamic programmingOperating systems: processes, scheduling and memoryGraph algorithms: BFS, DFS and Dijkstra's shortest pathConcurrency: deadlock and synchronisationTrees and binary search treesRelational databases and SQLHash tables