Generated by GPT-5-mini| P (complexity class) | |
|---|---|
| Type | Complexity class |
| Contained in | PSPACE |
| Related | NP, co-NP |
P (complexity class) P (polynomial time) is the class of decision problems solvable by a deterministic Turing machine in polynomial time, central to theoretical computer science, computability, and algorithm design. P connects to algorithmic practice, mathematical logic, and industrial computing through its role in classifying tractable problems and informing research in optimization, cryptography, and automated reasoning.
P is defined as the set of languages decidable by a deterministic Turing machine within time O(n^k) for some integer k, a notion formalized by Alan Turing, Alonzo Church, and Stephen Cook in the mid-20th century and deployed in modern complexity theory at institutions like the Clay Mathematics Institute, Bell Labs, and IBM Research. The formal definition relates to models introduced by John von Neumann, Kurt Gödel, and Emil Post and is framed using asymptotic notation from work by Paul Erdős, Richard Hamming, and Donald Knuth. In practice, definitions of P are equivalent across deterministic random-access machines used by Intel, ARM, and AMD engineers and theoretical models studied at MIT, Stanford, and Princeton.
Canonical problems in P include graph reachability, shortest paths, maximum flow, and linear programming; these examples appear in textbooks by Michael Sipser, Christos Papadimitriou, Richard Karp, and Leslie Valiant and are implemented in software from Microsoft, Oracle, and Google. Specific polynomial-time problems include sorting, searching, matrix multiplication, and satisfiability for Horn formulas, studied by Éva Tardos, Jack Edmonds, and Martin Grötschel and used in systems by Amazon, Facebook, and Netflix. Complete problems for subclasses related to P, such as P-complete problems under log-space reductions, include circuit value and monotone circuit value, highlighted in research from Carnegie Mellon, UC Berkeley, and ETH Zurich.
P is a subset of NP, co-NP, and PSPACE and properly related to L and NL under standard conjectures; these relationships have been explored by researchers at Yale, Caltech, and the University of Cambridge and discussed in conferences such as STOC, FOCS, and ICALP. Open problems connecting P to NP, co-NP, BPP, and PH have driven work by Stephen Cook, Leonid Levin, Richard Lipton, and Avi Wigderson and are central to questions posed by the Clay Mathematics Institute Millennium Prize. Separations and collapses among classes touching P are investigated in seminars at the Institute for Advanced Study, CERN workshops, and ERC-funded projects.
Algorithmic paradigms yielding polynomial-time solutions for problems in P include divide-and-conquer, dynamic programming, greedy algorithms, linear programming, and network flow, methods developed and popularized by Jon Kleinberg, Éva Tardos, Gérard Debreu, and John Hopcroft and applied in products from Siemens, Intel, and Samsung. Complexity-theoretic techniques such as reductions, diagonalization, amortized analysis, and probabilistic method are used to prove membership in P, with foundational contributions from Kurt Gödel, Alonzo Church, Ronald Rivest, and Adi Shamir and practical implementations by NVIDIA, ARM, and Qualcomm.
P is closed under union, intersection, complement, concatenation, and Kleene star, properties formalized in work by Michael Rabin, Dana Scott, and Noam Chomsky and taught in courses at Oxford, Harvard, and ETH Zurich. Structural results about P involve uniformity conditions, circuit complexity, and space-time tradeoffs studied by Leslie Valiant, Andrew Yao, and Neil Immerman and explored in research programs at IBM T.J. Watson, Microsoft Research, and Google DeepMind. Characterizations of P via logic—such as descriptive complexity linking P to first-order logic with least fixed points—stem from work by Neil Immerman and Moshe Vardi and are influential in database theory at Oracle, SAP, and IBM.
The formulation and study of P emerged from mid-20th-century developments in automata theory, mathematical logic, and operations research involving Alan Turing, John von Neumann, Alonzo Church, and Alan Cobham; subsequent consolidation and expansion occurred through the efforts of Richard Karp, Jack Edmonds, and Stephen Cook. P’s significance permeates cryptography, optimization, and algorithm engineering pursued at Bell Labs, DARPA, and the European Commission and underpins awards such as the Turing Award, Abel Prize discussions, and Gödel Prize recognitions. The ongoing P versus NP question continues to shape research agendas across Princeton, Stanford, and the University of Toronto and motivates interdisciplinary work bridging mathematics, computer science, and engineering.