Inductive counting Created 2026-09-24 Updated 2026-11-05
Inductive counting certifies complete reachable sets while retaining only a count and a few vertex indices. For a directed graph with vertices and start , let contain the vertices reachable in at most steps and write .
Suppose the exact count is known. A nondeterministic computation can enumerate each vertex, guess which belong to , and justify every positive guess by a path of length at most . Requiring exactly justified vertices prevents omissions: false positives have no valid path certificate. To certify , also check and that none of those enumerated vertices has an edge to .
Starting from , certify membership or nonmembership for each vertex and accumulate . After stages every reachable vertex has been counted, since cycles can be removed from a reaching path. Loop counters and the current vertex use only logarithmic space; guessed paths are checked one edge at a time, and the full reachable set is never stored. This is the counting mechanism behind the Immerman–Szelepcsényi theorem.[ref]
Neil Immerman 2026-11-05
Neil Immerman proved closure of nondeterministic space under complementation for space bounds at least logarithmic, independently of the result associated with the other name in the Immerman–Szelepcsényi theorem. In particular, . His paper's proof uses inductive counting of reachable configurations.[ref]
Nondeterministic Space is Closed Under Complementation by Neil Immerman. Theorem1 and Lemmas1–2
The obstacle is that guessing a path certifies reachability, while failure of one guessed path does not certify nonreachability. Counting the complete reachable set and verifying its enumeration supplies the missing certificate within a small space bound. This makes complementation possible without storing every reached configuration at once. The result concerns nondeterministic space, and does not establish the analogous equality for polynomial time.
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 124 2 ii Solution Created 2026-09-24 Updated 2026-09-25
It suffices to recognize non-reachability in NL, since directed reachability is NL-complete. Let be the number of vertices reachable from by a directed path of length at most . Clearly . The inductive counting argument computes and verifies from using logarithmic space.
For each vertex , reachability within steps has an NL certificate: guess such a path. Non-reachability within steps can be certified relative to the trusted value by enumerating vertices , exhibiting paths of length at most to exactly distinct vertices, and checking that none is or has an edge to . Because there are exactly reachable vertices, this list cannot omit a reachable predecessor. Counters, vertex names and one guessed path need only logarithmic space. Repeating this check in a fixed vertex order and counting the positive cases produces the exact .
After rounds, the procedure knows the number of all vertices reachable from . It accepts non-reachability of after certifying, by the same complete enumeration, that is absent. Thus the complement of directed reachability belongs to NL. Since every NL language reduces to reachability and log-space reductions are closed under complementation, this proves the Immerman–Szelepcsényi theorem