Relationships between Space Complexity Classes




CS254

Chris Pollett

Apr 5, 2017

Outline

Introduction

Results with Familiar Proofs

Theorem. (Space Hierarchy Theorem) If `f`, `g` are space-constructible satisfying `f(n) = o(g(n))` then
`SPACE(f(n)) ne SPACE(g(n))`

The proof is similar to the time hierarchy proof.

Next consider the language:
`\S\P\A\C\E \T\M\S\A\T = { langle M, w, 1^t rangle | mbox(DTM M accepts w in space t)}`

It's not hard to verify that this problem is a canonical PSPACE complete problem.

Definition. A quantified boolean formula (QBF) is a formula of the form `Q_1x_1Q_2x_2 ... phi(x_1, ... x_n)` where `Q_i` is one of `forall` or `exists` and `x_i`'s range over `{0, 1}`, and where `phi` is a plain Boolean formula.

Theorem. TQBF, the set of true QBF formulas is PSPACE-complete

Proof. The book has the full proof. It is easy to cycle over values `x_i` re-using space to see that the problem is in PSPACE. To see it is PSPACE complete is a similar argument to Cook-Levin, given a PSPACE machine `M` and an input `x`, we express as a QBF formula that `C_(a\c\c\ept)` is reachable from `C_(s\t\a\r\t)` in the corresponding configuration graph.

Savitch's Theorem

Theorem. (Savitch) PATH is in `\S\P\A\C\E(log^2 n)`.

Proof of Savitch's Theorem

Proof of Savitch's Theorem cont'd

In Class Exercise

Label the vertices of a hexagon 1, ..., 6 in clockwise order. Explain how the algorithm of the last slide would determine if there was a path from 1 to 4 in the hexagon.

Post your answers to the Apr 5 In-class Exercise.

Corollaries

Corollary. `\N\S\P\A\C\E(f(n)) subseteq \S\P\A\C\E([f(n)]^2 )` for any space-constructible function `f(n) ge log n`.

Proof. Recall from last day that the configuration graph on inputs of length `n` for a machine `M` whose language is in `\N\S\P\A\C\E(f(n))` has size at most `log n + k cdot f(n)` for some `k` (the `\log n` is used to record the position on the read-only input tape). Whether an accepting configuration is reachable from the start configuration is an instance of PATH so can be solved in `\S\P\A\C\E((|~log (2^(O( log n + k cdot f(n)) ))~|)^2 ) = \S\P\A\C\E( [f(n)]^2 )`.

Corollary. `NPSPACE=PSPACE`.

Is L=NL?

Theorem. Given a graph `G` and a node `x`, the number of nodes reachable from `x in G` can be computed by a nondeterminstic TM within `log n` space.

Proof of Immerman-Szelepscenyi

The algorithm has four nested loops:

Another Corollary

Corollary. If `f ge log n` is a space constructible function, then `NSPACE(f(n)) = coNSPACE(f(n))`.

Proof. Suppose `L` is in `NSPACE(f(n))`, decided by some `M`. We will show that `bar L` is decided by some nondeterministic machine `bar M`. On input `x`, `bar M` runs the algorithm of the last theorem on the configuration graph of `M` on `x`. If while running this algorithm `bar M` discovers an accepting computation of `u` is in `S(k)`, then it halts and rejects (it is deciding the complement). Otherwise, if `|S(n-1)|` is computed and no accepting computation has been encountered, `bar M` accepts.

Remark. We have PATH is in NL by the previous result. One can actually show PATH is NL-complete with respect to logspace reductions. (We'll talk about such reduction later). If you recall our deterministic algorithm for 2-SAT relied heavily of being able to check for paths in graphs. One can verify that this algorithm was in fact in NL. It turns out 2-SAT is also NL-complete under logspace reductions.