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

NL-Completeness and Space-Bounded Reductions

Graduate Depth 104 in the knowledge graph I know this Set as goal
753prerequisites beneath it
See this on the map →
Logarithmic Space Classes (L and NL)Computability Reductions+1 more
space-complexity completeness reductions

Core Idea

A problem is NL-complete if it lies in NL and every language in NL reduces to it via a log-space reduction. The most canonical NL-complete problem is REACHABILITY: given a directed graph and two vertices, does a path exist between them? NL-completeness demonstrates that even space-constrained computation has meaningful completeness notions and hardness hierarchy.

Explainer

From your study of logarithmic-space classes, you know that NL (nondeterministic logarithmic space) captures computation that uses only O(log n) workspace but can branch nondeterministically — accepting if any branch accepts. The space bound is severe: you cannot even write down a full path through a graph in log space. What you *can* do is maintain a current vertex pointer and a step counter, then nondeterministically guess the next step. This is precisely why graph reachability — "is there a path from s to t?" — sits at the heart of NL.

NL-completeness follows the same template as NP-completeness: a problem is NL-complete if (1) it is in NL, and (2) every language in NL log-space reduces to it. Log-space reductions are the right notion here because we are studying log-space computation — using polynomial-time reductions would trivially allow solving the problem yourself. A log-space reduction from L to REACHABILITY maps instances of L to directed graphs such that x ∈ L iff a designated target vertex is reachable from a source. REACHABILITY is NL-complete because any NL computation can be viewed as a graph of configurations, with edges between configurations reachable in one step, and the question "does the machine accept?" becomes "is the accept configuration reachable from the start configuration?"

The striking result in this area is the Immerman-Szelepcsényi theorem: NL = co-NL. Unlike the NP vs. co-NP question (which remains open), the space-bounded analogue was resolved in 1988. The proof uses inductive counting: to certify that no path exists from s to t, you can count the number of vertices reachable from s using only log space, then certify that t is not among them. This certificate-counting technique works in log space, showing that non-reachability is itself in NL. The theorem implies that NL is closed under complement, a nontrivial structural property that time-bounded classes like NP are not known to share.

NL-completeness illustrates a broader principle in complexity theory: each resource-bounded class has its own completeness notion under appropriately weak reductions. The reductions must be strictly weaker than the class itself, or the notion collapses. For NL, log-space reductions are the natural choice. For P, log-space reductions are again used (since AC¹ reductions would let you solve P problems directly). Understanding NL-completeness prepares you for the general pattern: pick a class, pick reductions weaker than the class, identify a natural combinatorial problem that is complete, and use it as the canonical hard instance for the class.

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 ReductionsExponential Time HypothesisTime and Space Hierarchy TheoremsSpace Hierarchy TheoremLogarithmic Space Classes (L and NL)NL-Completeness and Space-Bounded Reductions

Longest path: 105 steps · 753 total prerequisite topics

Prerequisites (3)

Leads To (0)

No topics depend on this one yet.