Computational complexity theory
The study of how much time, memory and other resources problems need, organised into classes such as P, NP and PSPACE. Its open questions bound what any algorithm can do.
On this page16 sections
Every claim that a problem is intrinsically hard, from the security assumptions of cryptography to approximation-hardness and fine-grained lower bounds, is stated relative to conjectures about these classes.
The study of how much time and memory problems need, sorted into classes like P and NP.
- 1Count steps as problems grow
- 2P: solved quickly; NP: checked quickly
- 3Thousands of problems are NP-complete
- 4Is P equal to NP? Unknown
- 5Proof methods hit known barriers
What is measured. A decision problem asks a yes/no question about an input (for example: does this map have a route visiting every city within a given distance?). The class P contains problems a deterministic algorithm solves in time polynomial in the input length. The class NP contains problems with short certificates that can be checked in polynomial time. For a logical formula, a satisfying assignment is such a certificate. Clearly , and whether the inclusion is strict is the P versus NP problem.
Other resources give other classes. is logarithmic memory, is polynomial memory, is polynomial time with randomness and a small error, and circuit classes such as restrict the structure of the computing network.
Reductions and completeness. Problem reduces to problem if an efficient translation turns instances of into instances of with the same answer. Cook (1971) and Levin showed that Boolean satisfiability (SAT) is NP-complete: every problem in NP reduces to it. Karp (1972) showed 21 classic problems NP-complete. Today thousands of natural problems are known to be NP-complete, so a fast method for any one gives a fast method for all.
Why it is so hard to resolve. Three barrier results explain why familiar methods fail.
- Relativization (Baker, Gill, Solovay, 1975): there are imaginary worlds (with oracles) where P equals NP and others where it does not. A proof that works in every such world cannot decide the question.
- Natural proofs (Razborov and Rudich, 1994): a broad class of circuit lower-bound arguments would, if they worked, break strong pseudorandom generators.
- Algebrization (Aaronson and Wigderson, 2008): even some algebraic extensions of the oracle idea fail.
What is known. Unconditional results are far weaker than the conjecture. For general Boolean circuits, only linear lower bounds on size are known for explicit functions in NP. Williams (2011) proved that a large class (NEXP) does not have polynomial-size circuits, using a link between algorithms and lower bounds.
Beyond worst case. Complexity theory also studies randomised algorithms, approximation, average-case hardness and the foundations of cryptography, which assumes some problems are hard on typical inputs.
Most experts believe , but belief is not proof.
Go deeper
The full technical text.
What is being measured
A decision problem asks a yes/no question about an encoded input . The class contains problems solvable by a deterministic algorithm in time polynomial in . The class contains problems with short certificates that can be checked in polynomial time: for a satisfiable Boolean formula, a satisfying assignment is such a certificate. Clearly . Whether the inclusion is strict is the P versus NP problem.
Other resources give other classes: (logarithmic space), (polynomial space), (probabilistic polynomial time), and non-uniform classes defined by circuit size, such as and .
Reductions and completeness
A problem reduces to if an efficient transformation maps instances of to instances of with the same answer. Cook (1971) and, independently, Levin (published 1973) showed that Boolean satisfiability is -complete: every problem in reduces to it. Karp (1972) showed 21 classical combinatorial problems -complete, and thousands of natural problems, from graph colouring to scheduling, have followed, so a polynomial-time algorithm for any one of them would give one for all.
Why the big questions are hard
Three barrier results explain why standard techniques fail to separate from . Relativization (Baker, Gill and Solovay, 1975) shows that any argument that survives adding an arbitrary oracle cannot decide the question. Natural proofs (Razborov and Rudich, 1994) show that a broad class of combinatorial circuit-lower-bound arguments would break strong pseudorandom generators. Algebrization (Aaronson and Wigderson, 2008) extends the relativization barrier to arguments using low-degree extensions. The unconditional lower bounds that do exist are weak: for explicit functions in only linear lower bounds on general Boolean circuit size are known. Williams (2011) proved that does not have polynomial-size circuits, a separation for a restricted circuit class that sidesteps the natural-proofs barrier by using algorithms as a tool.
Beyond exact solution
Many practical questions concern approximation. The PCP theorem (Arora and Safra; Arora, Lund, Motwani, Sudan and Szegedy, 1992) shows that for many optimisation problems even approximate answers are -hard to find. The Unique Games Conjecture, a stronger hardness assumption, would pin down the best possible approximation ratio for a whole family of problems. Fine-grained complexity asks for exact exponents inside P: for example, whether edit distance needs essentially quadratic time. Its conditional lower bounds rest on hypotheses such as the Strong Exponential Time Hypothesis (SETH), the 3SUM hypothesis and the APSP hypothesis.
Space versus time
Hopcroft, Paul and Valiant (1975) showed that steps of a multitape Turing machine can be simulated in space . In February 2025 Ryan Williams improved this to space, building on the Cook–Mertz algorithm for Tree Evaluation (ECCC, November 2023; STOC 2024). A consequence is that some problems solvable in linear space need nearly quadratic time on multitape Turing machines: a small step on time versus space, with no direct bearing on P versus NP.
State in October 2026
P versus NP remains open and no credible claim of a resolution exists. Several developments in the autumn of 2026 have not yet been through peer review:
- 4-to-1 games. Fei, Minzer and Wang (ECCC TR26-179, 14 September 2026) proved Khot's 4-to-1 Games Conjecture with perfect completeness, a human-written result in hardness of approximation.
- 3SUM and APSP. Alman and Vassilevska Williams (arXiv, 5 October 2026) gave deterministic algorithms for 3SUM in time and APSP in time for polynomially bounded integers, which would refute two of the three central hypotheses of fine-grained complexity. They state that SETH is unaffected, and credit the core algorithm to Anthropic's Claude.
- AI-generated manuscripts. On 6 October 2026 OpenAI released a repository of 719 AI-generated manuscripts in 372 result families, including claimed proofs of the Unique Games Conjecture and of for matrix multiplication, some with Lean formalisations. OpenAI states that the results are at different stages of verification; on 7 October it withdrew three manuscripts in another area after a sign error was found. Expert assessment is ongoing (see the individual problem entries).
Words on this page (12)
- decision problem
- A question with a yes or no answer about a given input.
- P
- The class of problems a computer can solve in time that grows polynomially (like n or n²) with the input size.
- NP
- The class of problems whose yes answers can be verified quickly given a suitable hint.
- NP-complete
- The hardest problems in NP: a fast method for any one of them would give a fast method for every problem in NP.
- Boolean satisfiability (SAT)
- Deciding whether the true/false variables of a logical formula can be set to make the whole formula true.
- reduction
- An efficient way of translating one problem into another so that solving the second solves the first.
- complexity class
- A set of problems that can be solved within some resource budget.
- oracle
- A hypothetical black box that answers certain questions instantly, used to test proof techniques.
- Boolean circuit
- A network of AND, OR and NOT gates that computes a yes/no function of its inputs.
- pseudorandom generator
- A method that stretches a short random seed into a long sequence that looks random to any efficient test.
- certificate
- A short piece of evidence, such as a satisfying assignment, that lets a checker confirm a yes answer quickly.
- polynomial time
- Running time that grows like a fixed power of the input size, such as n² or n³.
New to this? Read first (3)
- Complexity Theory's 50-Year Journey to the Limits of Knowledge (Quanta)A friendly history of P versus NP and why it resists attack.
- P versus NP problem (Wikipedia)Clear statement of the problem, with examples and consequences.
- NP-completeness (Wikipedia)Explains why one hard problem can stand in for thousands.
Understanding map
map of the whole wiki →What to read before Computational complexity theory (left), and what builds on it: entries that depend on it and its open problems (right). Every box links to its page.
- Start with
- Step 2
- Computational complexity theoryYou are here
- Then
- The PCP theorem and hardness of approximationTheory
- Fine-grained complexity: SETH, Orthogonal Vectors, APSP and 3SUMTheory
- Communication complexity and cell-probe lower boundsTheory
- Fast matrix multiplicationAlgorithm
- Linear programmingAlgorithm
- Lattice-based cryptography (LWE)Algorithm
- Quantum algorithmsAlgorithm
- SAT solving (CDCL)Algorithm
- P versus NP: does Boolean satisfiability have a polynomial-time algorithm?Open problem · D100
- Explicit Valiant-rigid matrices: construct N×N matrices with rigidity N1+δ at rank εNOpen problem · D79.5
- L = BPL: can bounded-error randomized logspace be derandomized in logspace?Open problem · D78
- Deterministic construction of an n-bit prime in time polynomial in n (current best 2n/2+o(n))Open problem · D76
- Perfect matching in NC: derandomising the isolation lemma for bipartite and general graphsOpen problem · D74
- Integer multiplication and the exact DFT below n log n: how large can the saving κ be?Open problem · D74
Open problems & questions
Progress timeline
- Oct 24, 2026Conditional κ ≈ 0.003027288Related to: Integer multiplication and the exact DFT below n log n: how large can the saving κ be?source
CrocSwap/integer-mult-bounds selects PR #5413: κ = 605457647/200000000000 > 2^-9, with the same five conditional framework assumptions; not a Lean proof.
- Oct 22, 2026Conditional κ = 0.00302015Related to: Integer multiplication and the exact DFT below n log n: how large can the saving κ be?source
CrocSwap/integer-mult-bounds selects PR #4470, conditional on named hypotheses.
- Oct 17, 2026Lean exact DFT with δ = 63/50000Related to: Integer multiplication and the exact DFT below n log n: how large can the saving κ be?source
canghaimeng/exact-dft-lean proves an all-length exact DFT bound against OpenAI's definitions, CI passing.
- Oct 15, 2026Complete Lean proof of multiplication below n log nRelated to: Integer multiplication and the exact DFT below n log n: how large can the saving κ be?source
platypii/integer-mult-bounds-lean merges a full Mathlib proof (PR #3); the proved κ has since risen to 4222422970/2^46.
- Oct 6, 2026Claims below n log nRelated to: Integer multiplication and the exact DFT below n log n: how large can the saving κ be?source
openai/math families 109 (κ = 2^-182) and 130 (δ = 10^-13), AI-generated and unrefereed.
- Oct 6, 2026OpenAI releases AI-generated manuscripts, incl. a claimed UGC proofsource
OpenAI released 719 manuscripts in 372 result families from an internal model, including a claimed proof of the Unique Games Conjecture. P vs NP is not among the claims. Independent expert verification has not been reported as of 2026-10-15.
- Oct 5, 2026Preprint refutes the 3SUM and APSP hypothesessource
Alman and Vassilevska Williams posted truly subquadratic 3SUM and truly subcubic APSP algorithms for polynomially bounded integers; SETH is unaffected. Not yet peer reviewed.
- Sep 14, 2026Claimed proof of the deterministic conjectureRelated to: Deterministic k-server conjecture: a k-competitive online algorithm on every metric spacesource
Coester, Koutsoupias and Zbysiński posted a proof that the work function algorithm is k-competitive on every metric space, with AI assistance acknowledged for the general-k algebraic argument. Unrefereed.
- Aug 6, 2026Superlogarithmic-rank rigidity (preprint)Related to: Explicit Valiant-rigid matrices: construct N×N matrices with rigidity N1+δ at rank εNsource
Alman: Walsh–Hadamard over F₃ keeps rank above log² N/80 after changing 1% of entries.
- Jun 12, 2025Low-degree surveyRelated to: Planted clique at k = n1/2−ε: hardness beyond low-degree polynomials and sum-of-squaressource
Wein surveys low-degree lower bounds, including the k ≈ √n detection threshold for planted clique, and lists open questions.
- Feb 26, 2025Tight low-rank rigidity of Walsh–HadamardRelated to: Explicit Valiant-rigid matrices: construct N×N matrices with rigidity N1+δ at rank εNsource
Alman and Liang prove rank-(c log N) rigidity N²(1/2 − N^{−c'}) and a hardness-amplification statement.
- Feb 25, 2025Time t in space √(t log t)source
Ryan Williams showed that multitape Turing machine time t can be simulated in O(√(t log t)) space, improving the 1975 Hopcroft–Paul–Valiant bound (STOC 2025).
- Nov 15, 2023Tree Evaluation in space O(log n · log log n)source
Cook and Mertz posted ECCC TR23-174 (STOC 2024). The result undercuts Tree Evaluation as a candidate for separating L from P, and its technique enabled the 2025 time–space simulation.
- May 24, 2023Pseudodeterministic polynomial-time primesRelated to: Deterministic construction of an n-bit prime in time polynomial in n (current best 2n/2+o(n))source
Chen, Lu, Oliveira, Ren and Santhanam constructed canonical n-bit primes in randomised polynomial time for infinitely many n (FOCS 2023; J. ACM 2026).
- Dec 19, 2022Derandomisation-centric view and improved NEXP boundRelated to: Super-polynomial ACC⁰ lower bounds for a language in NP: extending Murray–Williams beyond NQPsource
Chen gave a derandomisation-centred proof of NQP ⊄ ACC⁰ and a sub-half-exponential ACC⁰ lower bound for NEXP (ECCC TR22-183, December 2022; day approximate).
- Nov 10, 2022Randomised conjecture refutedRelated to: Deterministic k-server conjecture: a k-competitive online algorithm on every metric spacesource
Bubeck, Coester and Rabani proved an Ω(log² k) lower bound for randomised algorithms in some metrics.
- Jul 6, 2021Super-polynomial lower bounds for constant-depth algebraic circuitsRelated to: Polynomial-size explicit hitting sets for depth-3 (ΣΠΣ) arithmetic circuits over ℚsource
Limaye, Srinivasan and Tavenas proved the first such lower bounds (ECCC TR21-081, July 2021; FOCS 2021).
- May 6, 2020Rigid matrices from rectangular PCPsRelated to: Explicit Valiant-rigid matrices: construct N×N matrices with rigidity N1+δ at rank εNsource
Bhangale, Harsha, Paradise and Tal reach rank N^{o(1)} in FNP, improving the Alman–Chen P^NP construction; still far from rank εN.
- Mar 18, 2019O(n log n) reachedRelated to: Integer multiplication and the exact DFT below n log n: how large can the saving κ be?source
Harvey and van der Hoeven's preprint; published in Annals of Mathematics in 2021.
- Feb 19, 2019Fourier and circulant matrices are not rigidRelated to: Explicit Valiant-rigid matrices: construct N×N matrices with rigidity N1+δ at rank εNsource
Dvir and Liu rule out all matrices M_xy = f(x−y) over abelian groups as Valiant-rigid candidates.
- Jun 19, 2018Reductions from planted cliqueRelated to: Planted clique at k = n1/2−ε: hardness beyond low-degree polynomials and sum-of-squaressource
Brennan, Bresler and Huleihel derived computational lower bounds for many planted-structure problems from planted clique.
- Jun 1, 2018NQP ⊄ ACC⁰Related to: Super-polynomial ACC⁰ lower bounds for a language in NP: extending Murray–Williams beyond NQPsource
Murray and Williams extended the lower bound to quasi-polynomial nondeterministic time (STOC 2018).
- Sep 21, 2017Planar perfect matching in NCRelated to: Perfect matching in NC: derandomising the isolation lemma for bipartite and general graphssource
Anari and Vazirani proved NC for planar graphs.
- Apr 6, 2017General-graph matching in quasi-NCRelated to: Perfect matching in NC: derandomising the isolation lemma for bipartite and general graphssource
Svensson and Tarnawski extended the result to general graphs (FOCS 2017).
- Nov 17, 2016Walsh–Hadamard is not Valiant-rigidRelated to: Explicit Valiant-rigid matrices: construct N×N matrices with rigidity N1+δ at rank εNsource
Alman and Williams use probabilistic rank to rule out the leading candidate.
- Apr 11, 2016Nearly tight SoS lower boundRelated to: Planted clique at k = n1/2−ε: hardness beyond low-degree polynomials and sum-of-squaressource
Barak et al. proved that degree-d sum-of-squares fails to refute the absence of a clique of size n^(1/2 − c√(d/log n)), which is n^(1/2−o(1)) for d = o(log n).
- Jan 23, 2016Bipartite matching in quasi-NCRelated to: Perfect matching in NC: derandomising the isolation lemma for bipartite and general graphssource
Fenner, Gurjar and Thierauf gave a deterministic quasi-NC algorithm (STOC 2016).
- Jun 8, 2011NEXP ⊄ ACC⁰Related to: P versus NP: does Boolean satisfiability have a polynomial-time algorithm?source
Ryan Williams proved that NEXP lacks polynomial-size ACC⁰ circuits by turning faster satisfiability algorithms into lower bounds (CCC 2011; JACM 2014; day approximate).
- Jun 8, 2011NEXP ⊄ ACC⁰Related to: Super-polynomial ACC⁰ lower bounds for a language in NP: extending Murray–Williams beyond NQPsource
Williams proved the first super-polynomial lower bound for ACC⁰ via the algorithmic method.
- Sep 1, 2010Polymath4 paperRelated to: Deterministic construction of an n-bit prime in time polynomial in n (current best 2n/2+o(n))source
The project reported partial results; the square-root barrier remained.
- Aug 9, 2009Polymath4 beginsRelated to: Deterministic construction of an n-bit prime in time polynomial in n (current best 2n/2+o(n))source
A collaborative project started on finding primes deterministically in time below N^(1/2).
- Sep 1, 2004Deterministic primality testRelated to: Deterministic construction of an n-bit prime in time polynomial in n (current best 2n/2+o(n))source
Agrawal, Kayal and Saxena gave a deterministic polynomial-time primality test.
- Jun 9, 2003PIT derandomisation equals lower boundsRelated to: Polynomial-size explicit hitting sets for depth-3 (ΣΠΣ) arithmetic circuits over ℚsource
Kabanets and Impagliazzo proved derandomising PIT implies circuit lower bounds (STOC 2003).
- Sep 1, 1995Work function algorithm is (2k−1)-competitiveRelated to: Deterministic k-server conjecture: a k-competitive online algorithm on every metric spacesource
Koutsoupias and Papadimitriou proved the upper bound.
- May 23, 1994Natural proofs barrierRelated to: P versus NP: does Boolean satisfiability have a polynomial-time algorithm?source
Razborov and Rudich showed that 'natural' circuit-lower-bound arguments would break strong pseudorandom generators (STOC 1994; JCSS 1997; day of the STOC presentation approximate).
- Jun 1, 1990k-server conjecture and lower boundRelated to: Deterministic k-server conjecture: a k-competitive online algorithm on every metric spacesource
Manasse, McGeoch and Sleator posed the conjecture and proved the k lower bound (J. Algorithms 1990).
- Dec 1, 1987Matching is in RNC via the isolation lemmaRelated to: Perfect matching in NC: derandomising the isolation lemma for bipartite and general graphssource
Mulmuley, Vazirani and Vazirani showed matching reduces to matrix inversion with randomised isolation.
- Dec 1, 1975Relativization barriersource
Baker, Gill and Solovay constructed oracles relative to which P = NP and others relative to which P ≠ NP, ruling out proof techniques that relativize.
- Dec 1, 1975Relativization barrierRelated to: P versus NP: does Boolean satisfiability have a polynomial-time algorithm?source
Baker, Gill and Solovay gave oracles under which P = NP and others under which P ≠ NP, so relativizing proofs cannot settle the question.
- May 3, 1971Cook's theorem: SAT is NP-completesource
Stephen Cook's STOC 1971 paper introduced NP-completeness and proved it for satisfiability; Leonid Levin obtained equivalent results independently (published 1973).
- May 3, 1971The problem is formulatedRelated to: P versus NP: does Boolean satisfiability have a polynomial-time algorithm?source
Cook's STOC 1971 paper introduced NP-completeness and posed the question; Levin obtained equivalent results independently (published 1973).