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

PSPACE and PSPACE-Completeness

Research Depth 105 in the knowledge graph I know this Set as goal
2topics build on this
738prerequisites beneath it
See this on the map →
The Complexity Class HierarchyThe Polynomial HierarchyAlternating Turing Machines and the Polynomial Hierarchy
pspace space-complexity qbf pspace-complete

Core Idea

PSPACE is the class of problems solvable in polynomial space (regardless of time). PSPACE contains the polynomial hierarchy and includes problems like quantified Boolean formulas (QBF) that are PSPACE-complete. The relationship between time and space complexity is subtle: PSPACE-completeness reveals problems harder than NP (under standard assumptions) yet solvable with modest space.

How It's Best Learned

Understand the connection between polynomial space and polynomial alternation via Savitch's theorem. Study TQBF as the canonical PSPACE-complete problem.

Explainer

From your study of the polynomial hierarchy, you know that NP and co-NP sit just above P, and that the hierarchy stratifies problems by how many layers of quantifier alternations they require. PSPACE sits above this entire tower. It contains every problem solvable by a Turing machine using only a polynomial amount of memory, with no restriction on time. Time is cheap; space is the binding resource.

The canonical PSPACE-complete problem is TQBF — the True Quantified Boolean Formula problem. Given a Boolean formula with all variables bound by ∃ and ∀ quantifiers, decide whether it is true. For example: ∀x ∃y (x ∨ y). Unlike SAT (which asks whether *some* assignment works), TQBF asks whether a formula is true no matter how the ∀-variables are set, assuming optimal ∃-choices. This is exactly the difference between a one-move puzzle (NP) and a two-player adversarial game (PSPACE): the existential player chooses some moves, the universal player chooses others, and you must determine who wins with perfect play.

This game interpretation is why so many combinatorial games — chess endgames, generalized Go, hex, and others — are PSPACE-complete. To decide who wins from any position, you must evaluate an exponentially large game tree where both players move optimally. PSPACE is the complexity class that captures "who wins a perfect-information polynomial-length game?"

Savitch's theorem provides a surprising technical result: NPSPACE = PSPACE. Nondeterminism barely helps when the resource is space. This contrasts sharply with time, where we strongly believe P ≠ NP. Intuitively, a nondeterministic space computation guessing a polynomial-length path through a configuration graph can be simulated deterministically by a recursive reachability algorithm — the deterministic machine uses space to remember its position in the search, not time. The recursion depth is polynomial, so the space blowup is only quadratic.

PSPACE-completeness therefore places problems that are strictly harder (under standard assumptions) than any level of the polynomial hierarchy, yet still tractable in terms of memory. Problems in PSPACE can often be solved by exhaustive game-tree search that reuses space. This makes PSPACE a natural home for planning, verification of reactive systems (model checking), and reasoning with alternating quantifiers — any domain where the "universe" of possibilities must be explored by an adversarial process rather than a simple search.

Practice Questions 5 questions

Prerequisite Chain

Understanding ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersIntroduction to ExponentsOrder of OperationsInteger Order of OperationsVariable ExpressionsThe Distributive PropertyVariables and Expressions ReviewIntroduction to PolynomialsAdding and Subtracting PolynomialsMultiplying PolynomialsFactorialPermutationsCombinationsCounting Principles: Addition and Multiplication RulesIntroduction to Graph TheoryPropositional Logic FoundationsLogical EquivalencesBoolean AlgebraBoolean Type and Truth ValuesComparison Operators and Boolean TestsLogical Operators and Boolean AlgebraBoolean Algebra and Fundamental LawsLogic Gates FundamentalsImplementing Boolean Functions with GatesKarnaugh Map SimplificationCombinational Circuit DesignFlip-Flops and LatchesFinite State Machines (FSMs)Deterministic Finite Automata (DFA)Nondeterministic Finite Automata (NFA)Two-Way Finite AutomataNFA to DFA Conversion (Subset Construction)DFA Properties and Minimization AlgorithmsRegular Languages: Definition and CharacterizationContext-Free Grammars (CFGs)Pushdown Automata (PDA)Equivalence of CFGs and Pushdown AutomataClosure Properties of Context-Free LanguagesLimitations of Context-Free LanguagesPumping Lemma for Context-Free LanguagesTuring MachinesVariants of Turing Machines and EquivalenceNondeterministic Time Complexity and NPThe P vs. NP ProblemComplexity Class P: Polynomial TimeComplexity Class NP: Nondeterministic Polynomial TimeNP-Completeness and Cook-Levin TheoremThe Cook-Levin TheoremBoolean Satisfiability, Cook-Levin, and ReductionsPolynomial Many-One ReductionsBPP: Bounded Error Probabilistic Polynomial TimeRP and coRP Complexity ClassesPSPACE Complexity ClassThe Polynomial HierarchyPSPACE and PSPACE-Completeness

Longest path: 106 steps · 738 total prerequisite topics

Prerequisites (2)

Leads To (1)