A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

PSPACE Complexity Class

Graduate Depth 103 in the knowledge graph ☐ I know this ☆ Set as goal
5topics build on this
526prerequisites beneath it
See this on the map →
Complexity Class P: Polynomial TimeSpace Complexity: PSPACE, L, and NL+2 more→→PSPACE-Complete ProblemsThe Polynomial Hierarchy
complexity-classes space-bounded

Core Idea

PSPACE is the class of decision problems solvable by a deterministic Turing machine in polynomial space. A key result (Savitch's theorem) shows PSPACE = NPSPACE, contrasting sharply with the P vs NP question. PSPACE strictly contains NP and is believed strictly larger than P, though both containments are unproven. PSPACE-complete problems include TQBF (true quantified Boolean formulas) and game-position evaluation, representing problems intractable by polynomial time but feasible with polynomial space.

Explainer

From your study of space complexity classes, you know that computational resources can be measured in space (tape cells used) rather than time (steps taken). PSPACE is the class of all decision problems solvable using a polynomial amount of memory, with no restriction on how long the computation takes. This is a powerful resource model: a machine with polynomial space can run for exponential time (since it can cycle through exponentially many configurations before repeating a state), making PSPACE a very large class.

The most striking fact about PSPACE is Savitch's theorem: any problem solvable by a nondeterministic Turing machine in polynomial space can also be solved by a deterministic machine in polynomial space. In other words, PSPACE = NPSPACE. This stands in sharp contrast to the time-bounded world, where the question of whether nondeterminism helps (P vs NP) remains open. The intuition behind Savitch's theorem is that space can be reused — a deterministic machine can systematically explore all nondeterministic branches one at a time, reusing the same memory for each branch, at the cost of taking much longer.

The known containment chain is P ⊆ NP ⊆ PSPACE ⊆ EXPTIME. Every polynomial-time problem uses at most polynomial space (you cannot write to more cells than you have steps), so P ⊆ PSPACE. Every NP problem can be solved in PSPACE by deterministically trying all possible certificates. We believe all these containments are strict — that PSPACE is genuinely larger than NP and P — but no separation has been proven between P and PSPACE. We do know that P ≠ EXPTIME (by the time hierarchy theorem), which means at least one of these containments is strict.

The canonical PSPACE-complete problem is TQBF (True Quantified Boolean Formulas): given a fully quantified Boolean formula with alternating "for all" and "there exists" quantifiers, determine whether it is true. The alternation of quantifiers is what makes TQBF harder than SAT — it captures the back-and-forth reasoning of two-player games. This is why evaluating game positions (generalized chess, Go on an n×n board) tends to be PSPACE-complete: determining whether a player has a winning strategy requires reasoning about all possible opponent responses to all possible moves, a structure naturally expressed with quantifier alternation.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Boolean Algebra → Boolean Type and Truth Values → Comparison Operators and Boolean Tests → Logical Operators and Boolean Algebra → Boolean Algebra and Fundamental Laws → Logic Gates Fundamentals → Implementing Boolean Functions with Gates → Karnaugh Map Simplification → Combinational Circuit Design → Flip-Flops and Latches → Finite State Machines (FSMs) → Deterministic Finite Automata (DFA) → Nondeterministic Finite Automata (NFA) → Two-Way Finite Automata → NFA to DFA Conversion (Subset Construction) → DFA Properties and Minimization Algorithms → Regular Languages: Definition and Characterization → Context-Free Grammars (CFGs) → Pushdown Automata (PDA) → Equivalence of CFGs and Pushdown Automata → Closure Properties of Context-Free Languages → Limitations of Context-Free Languages → Pumping Lemma for Context-Free Languages → Turing Machines → Variants of Turing Machines and Equivalence → Nondeterministic Time Complexity and NP → The P vs. NP Problem → Complexity Class P: Polynomial Time → Complexity Class NP: Nondeterministic Polynomial Time → NP-Completeness and Cook-Levin Theorem → The Cook-Levin Theorem → Boolean Satisfiability, Cook-Levin, and Reductions → Polynomial Many-One Reductions → BPP: Bounded Error Probabilistic Polynomial Time → RP and coRP Complexity Classes → PSPACE Complexity Class

Longest path: 104 steps · 526 total prerequisite topics

Prerequisites (4)

Leads To (2)