Skip to content
DAH

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
Why other work relies on it

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.

  1. 1Count steps as problems grow
  2. 2P: solved quickly; NP: checked quickly
  3. 3Thousands of problems are NP-complete
  4. 4Is P equal to NP? Unknown
  5. 5Proof methods hit known barriers

What is measured. A decision problem asks a yes/no question about an input xx (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 P⊆NP\mathsf{P}\subseteq\mathsf{NP}, and whether the inclusion is strict is the P versus NP problem.

Other resources give other classes. L\mathsf{L} is logarithmic memory, PSPACE\mathsf{PSPACE} is polynomial memory, BPP\mathsf{BPP} is polynomial time with randomness and a small error, and circuit classes such as ACC0\mathsf{ACC}^0 restrict the structure of the computing network.

Reductions and completeness. Problem AA reduces to problem BB if an efficient translation turns instances of AA into instances of BB 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 ACC0\mathsf{ACC}^0 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 P≠NP\mathsf{P}\ne\mathsf{NP}, 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 xx. The class P\mathsf{P} contains problems solvable by a deterministic algorithm in time polynomial in ∣x∣|x|. The class NP\mathsf{NP} 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 P⊆NP\mathsf{P}\subseteq\mathsf{NP}. Whether the inclusion is strict is the P versus NP problem.

Other resources give other classes: L\mathsf{L} (logarithmic space), PSPACE\mathsf{PSPACE} (polynomial space), BPP\mathsf{BPP} (probabilistic polynomial time), and non-uniform classes defined by circuit size, such as P/poly\mathsf{P/poly} and ACC0\mathsf{ACC}^0.

Reductions and completeness

A problem AA reduces to BB if an efficient transformation maps instances of AA to instances of BB with the same answer. Cook (1971) and, independently, Levin (published 1973) showed that Boolean satisfiability is NP\mathsf{NP}-complete: every problem in NP\mathsf{NP} reduces to it. Karp (1972) showed 21 classical combinatorial problems NP\mathsf{NP}-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 P\mathsf{P} from NP\mathsf{NP}. 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 NP\mathsf{NP} only linear lower bounds on general Boolean circuit size are known. Williams (2011) proved that NEXP\mathsf{NEXP} does not have polynomial-size ACC0\mathsf{ACC}^0 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 NP\mathsf{NP}-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 tt steps of a multitape Turing machine can be simulated in space O(t/log⁡t)O(t/\log t). In February 2025 Ryan Williams improved this to O(tlog⁡t)O(\sqrt{t\log t}) 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 O(n1.9992)O(n^{1.9992}) time and APSP in O(n2.9995)O(n^{2.9995}) 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 ω≤9/4\omega\le 9/4 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)
Words on this page
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)
New to this? Read first

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.

  1. Start with
  2. Step 2
  3. Then

Open problems & questions

Progress timeline

  1. Oct 24, 2026
    Conditional κ ≈ 0.003027288
    Related to: Integer multiplication and the exact DFT below n log n: how large can the saving κ be?

    CrocSwap/integer-mult-bounds selects PR #5413: κ = 605457647/200000000000 > 2^-9, with the same five conditional framework assumptions; not a Lean proof.

    source
  2. Oct 22, 2026
    Conditional κ = 0.00302015
    Related to: Integer multiplication and the exact DFT below n log n: how large can the saving κ be?

    CrocSwap/integer-mult-bounds selects PR #4470, conditional on named hypotheses.

    source
  3. Oct 17, 2026
    Lean exact DFT with δ = 63/50000
    Related to: Integer multiplication and the exact DFT below n log n: how large can the saving κ be?

    canghaimeng/exact-dft-lean proves an all-length exact DFT bound against OpenAI's definitions, CI passing.

    source
  4. Oct 15, 2026
    Complete Lean proof of multiplication below n log n
    Related to: Integer multiplication and the exact DFT below n log n: how large can the saving κ be?

    platypii/integer-mult-bounds-lean merges a full Mathlib proof (PR #3); the proved κ has since risen to 4222422970/2^46.

    source
  5. Oct 6, 2026
    Claims below n log n
    Related to: Integer multiplication and the exact DFT below n log n: how large can the saving κ be?

    openai/math families 109 (κ = 2^-182) and 130 (δ = 10^-13), AI-generated and unrefereed.

    source
  6. Oct 6, 2026
    OpenAI releases AI-generated manuscripts, incl. a claimed UGC proof

    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.

    source
  7. Oct 5, 2026
    Preprint refutes the 3SUM and APSP hypotheses

    Alman and Vassilevska Williams posted truly subquadratic 3SUM and truly subcubic APSP algorithms for polynomially bounded integers; SETH is unaffected. Not yet peer reviewed.

    source
  8. Sep 14, 2026
    Claimed proof of the deterministic conjecture
    Related to: Deterministic k-server conjecture: a k-competitive online algorithm on every metric space

    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.

    source
  9. Aug 6, 2026
    Superlogarithmic-rank rigidity (preprint)
    Related to: Explicit Valiant-rigid matrices: construct N×N matrices with rigidity N1+δ at rank εN

    Alman: Walsh–Hadamard over F₃ keeps rank above log² N/80 after changing 1% of entries.

    source
  10. Jun 12, 2025
    Low-degree survey
    Related to: Planted clique at k = n1/2−ε: hardness beyond low-degree polynomials and sum-of-squares

    Wein surveys low-degree lower bounds, including the k ≈ √n detection threshold for planted clique, and lists open questions.

    source
  11. Feb 26, 2025
    Tight low-rank rigidity of Walsh–Hadamard
    Related to: Explicit Valiant-rigid matrices: construct N×N matrices with rigidity N1+δ at rank εN

    Alman and Liang prove rank-(c log N) rigidity N²(1/2 − N^{−c'}) and a hardness-amplification statement.

    source
  12. Feb 25, 2025
    Time t in space √(t log t)

    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).

    source
  13. Nov 15, 2023
    Tree Evaluation in space O(log n · log log n)

    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.

    source
  14. May 24, 2023
    Pseudodeterministic polynomial-time primes
    Related to: Deterministic construction of an n-bit prime in time polynomial in n (current best 2n/2+o(n))

    Chen, Lu, Oliveira, Ren and Santhanam constructed canonical n-bit primes in randomised polynomial time for infinitely many n (FOCS 2023; J. ACM 2026).

    source
  15. Dec 19, 2022
    Derandomisation-centric view and improved NEXP bound
    Related to: Super-polynomial ACC⁰ lower bounds for a language in NP: extending Murray–Williams beyond NQP

    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).

    source
  16. Nov 10, 2022
    Randomised conjecture refuted
    Related to: Deterministic k-server conjecture: a k-competitive online algorithm on every metric space

    Bubeck, Coester and Rabani proved an Ω(log² k) lower bound for randomised algorithms in some metrics.

    source
  17. Jul 6, 2021
    Super-polynomial lower bounds for constant-depth algebraic circuits
    Related to: Polynomial-size explicit hitting sets for depth-3 (ΣΠΣ) arithmetic circuits over ℚ

    Limaye, Srinivasan and Tavenas proved the first such lower bounds (ECCC TR21-081, July 2021; FOCS 2021).

    source
  18. May 6, 2020
    Rigid matrices from rectangular PCPs
    Related to: Explicit Valiant-rigid matrices: construct N×N matrices with rigidity N1+δ at rank εN

    Bhangale, Harsha, Paradise and Tal reach rank N^{o(1)} in FNP, improving the Alman–Chen P^NP construction; still far from rank εN.

    source
  19. Mar 18, 2019
    O(n log n) reached
    Related to: Integer multiplication and the exact DFT below n log n: how large can the saving κ be?

    Harvey and van der Hoeven's preprint; published in Annals of Mathematics in 2021.

    source
  20. Feb 19, 2019
    Fourier and circulant matrices are not rigid
    Related to: Explicit Valiant-rigid matrices: construct N×N matrices with rigidity N1+δ at rank εN

    Dvir and Liu rule out all matrices M_xy = f(x−y) over abelian groups as Valiant-rigid candidates.

    source
  21. Jun 19, 2018
    Reductions from planted clique
    Related to: Planted clique at k = n1/2−ε: hardness beyond low-degree polynomials and sum-of-squares

    Brennan, Bresler and Huleihel derived computational lower bounds for many planted-structure problems from planted clique.

    source
  22. Jun 1, 2018
    NQP ⊄ ACC⁰
    Related to: Super-polynomial ACC⁰ lower bounds for a language in NP: extending Murray–Williams beyond NQP

    Murray and Williams extended the lower bound to quasi-polynomial nondeterministic time (STOC 2018).

    source
  23. Sep 21, 2017
    Planar perfect matching in NC
    Related to: Perfect matching in NC: derandomising the isolation lemma for bipartite and general graphs

    Anari and Vazirani proved NC for planar graphs.

    source
  24. Apr 6, 2017
    General-graph matching in quasi-NC
    Related to: Perfect matching in NC: derandomising the isolation lemma for bipartite and general graphs

    Svensson and Tarnawski extended the result to general graphs (FOCS 2017).

    source
  25. Nov 17, 2016
    Walsh–Hadamard is not Valiant-rigid
    Related to: Explicit Valiant-rigid matrices: construct N×N matrices with rigidity N1+δ at rank εN

    Alman and Williams use probabilistic rank to rule out the leading candidate.

    source
  26. Apr 11, 2016
    Nearly tight SoS lower bound
    Related to: Planted clique at k = n1/2−ε: hardness beyond low-degree polynomials and sum-of-squares

    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).

    source
  27. Jan 23, 2016
    Bipartite matching in quasi-NC
    Related to: Perfect matching in NC: derandomising the isolation lemma for bipartite and general graphs

    Fenner, Gurjar and Thierauf gave a deterministic quasi-NC algorithm (STOC 2016).

    source
  28. Jun 8, 2011
    NEXP ⊄ ACC⁰
    Related to: P versus NP: does Boolean satisfiability have a polynomial-time algorithm?

    Ryan Williams proved that NEXP lacks polynomial-size ACC⁰ circuits by turning faster satisfiability algorithms into lower bounds (CCC 2011; JACM 2014; day approximate).

    source
  29. Jun 8, 2011
    NEXP ⊄ ACC⁰
    Related to: Super-polynomial ACC⁰ lower bounds for a language in NP: extending Murray–Williams beyond NQP

    Williams proved the first super-polynomial lower bound for ACC⁰ via the algorithmic method.

    source
  30. Sep 1, 2010
    Polymath4 paper
    Related to: Deterministic construction of an n-bit prime in time polynomial in n (current best 2n/2+o(n))

    The project reported partial results; the square-root barrier remained.

    source
  31. Aug 9, 2009
    Polymath4 begins
    Related to: Deterministic construction of an n-bit prime in time polynomial in n (current best 2n/2+o(n))

    A collaborative project started on finding primes deterministically in time below N^(1/2).

    source
  32. Sep 1, 2004
    Deterministic primality test
    Related to: Deterministic construction of an n-bit prime in time polynomial in n (current best 2n/2+o(n))

    Agrawal, Kayal and Saxena gave a deterministic polynomial-time primality test.

    source
  33. Jun 9, 2003
    PIT derandomisation equals lower bounds
    Related to: Polynomial-size explicit hitting sets for depth-3 (ΣΠΣ) arithmetic circuits over ℚ

    Kabanets and Impagliazzo proved derandomising PIT implies circuit lower bounds (STOC 2003).

    source
  34. Sep 1, 1995
    Work function algorithm is (2k−1)-competitive
    Related to: Deterministic k-server conjecture: a k-competitive online algorithm on every metric space

    Koutsoupias and Papadimitriou proved the upper bound.

    source
  35. May 23, 1994
    Natural proofs barrier
    Related to: P versus NP: does Boolean satisfiability have a polynomial-time algorithm?

    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).

    source
  36. Jun 1, 1990
    k-server conjecture and lower bound
    Related to: Deterministic k-server conjecture: a k-competitive online algorithm on every metric space

    Manasse, McGeoch and Sleator posed the conjecture and proved the k lower bound (J. Algorithms 1990).

    source
  37. Dec 1, 1987
    Matching is in RNC via the isolation lemma
    Related to: Perfect matching in NC: derandomising the isolation lemma for bipartite and general graphs

    Mulmuley, Vazirani and Vazirani showed matching reduces to matrix inversion with randomised isolation.

    source
  38. Dec 1, 1975
    Relativization barrier

    Baker, Gill and Solovay constructed oracles relative to which P = NP and others relative to which P ≠ NP, ruling out proof techniques that relativize.

    source
  39. Dec 1, 1975
    Relativization barrier
    Related to: P versus NP: does Boolean satisfiability have a polynomial-time algorithm?

    Baker, Gill and Solovay gave oracles under which P = NP and others under which P ≠ NP, so relativizing proofs cannot settle the question.

    source
  40. May 3, 1971
    Cook's theorem: SAT is NP-complete

    Stephen Cook's STOC 1971 paper introduced NP-completeness and proved it for satisfiability; Leonid Levin obtained equivalent results independently (published 1973).

    source
  41. May 3, 1971
    The problem is formulated
    Related to: P versus NP: does Boolean satisfiability have a polynomial-time algorithm?

    Cook's STOC 1971 paper introduced NP-completeness and posed the question; Levin obtained equivalent results independently (published 1973).

    source