Docsity

Log-Space Reductions in Advanced Computational Complexity, Slides of Advanced Computational Complexity

Partial preview of the text

Download Log-Space Reductions in Advanced Computational Complexity and more Slides Advanced Computational Complexity in PDF only on Docsity!

Lecture 11: Log-Space Reductions

Matthew Johnson

[email protected]

Reducing Problems

We have seen that polynomial time reducibility is a very useful concept for classifying problems in NP. In particular, it allowed us to identify the class of the hardest problems in NP , namely, NP -complete problems. This concept is still suitable when studying the class PSPACE , but we will see that it is not suitable for classifying problems in NL. So we need a weaker version of reducibility...

Log-Space Reduction

Definition Language L 1 is log space reducible to L 2 , denoted L 1 ≤L L 2 , if a log-space computable function f exists such that

x ∈ L 1 ⇔ f (x) ∈ L 2 Recall that a Turing machine that uses f (n) space runs in nO( 2 f^ (n)) time, so a function computable in log-space is computable in polynomial-time, so L 1 ≤L L 2 =⇒ L 1 ≤ L 2

Log-Space Reductions and NP -completeness

It makes sense to consider problems in NP that are complete with respect to log-space reductions (this is how NP -completeness is defined in Papadimitriou). By the property from the previous slide, every such problem would be NP -complete w.r.t. polynomial time reductions. Interestingly, there is no known example of a problem in NP which is complete w.r.t. polynomial time reductions, but not w.r.t. log-space reductions.

Proof

Let L be a language in NL Let NT be a non-deterministic TM that decides L within space O(log n) Choose an encoding for the computation NT (x) that uses c log |x| symbols for each configuration (c is a constant) Let C 0 be the start configuration, and Ca be the accepting configuration Our transducer T will produce a description of the graph G as lists of vertices and edges

Proof

Let L be a language in NL Let NT be a non-deterministic TM that decides L within space O(log n) Choose an encoding for the computation NT (x) that uses c log |x| symbols for each configuration (c is a constant) Let C 0 be the start configuration, and Ca be the accepting configuration Our transducer T will produce a description of the graph G as lists of vertices and edges

Proof

Let L be a language in NL Let NT be a non-deterministic TM that decides L within space O(log n) Choose an encoding for the computation NT (x) that uses c log |x| symbols for each configuration (c is a constant) Let C 0 be the start configuration, and Ca be the accepting configuration Our transducer T will produce a description of the graph G as lists of vertices and edges

Proof

Let L be a language in NL Let NT be a non-deterministic TM that decides L within space O(log n) Choose an encoding for the computation NT (x) that uses c log |x| symbols for each configuration (c is a constant) Let C 0 be the start configuration, and Ca be the accepting configuration Our transducer T will produce a description of the graph G as lists of vertices and edges

T does the following:

  1. T goes through all possible possible strings of length c log |x| and, if a string encodes a proper configuration of NT (x), this string is written on the output tape. This produce a list of vertices of G.
  2. T goes through all possible pairs of strings of length c log |x|. For each pair (C 1 , C 2 ), T checks whether both strings are encodings of configurations of NT (x), and whether NT can transform C 1 to C 2 in one step. If so, the pair (C 1 , C 2 ) is written on the output tape. This produces a list of edges of the graph G. Clearly, these operations can performed using log space, since at each step we only need to store at most two strings (of length c log |x|). Moreover, NT accepts x iff there is a path from C 0 to Ca in G.

T does the following:

  1. T goes through all possible possible strings of length c log |x| and, if a string encodes a proper configuration of NT (x), this string is written on the output tape. This produce a list of vertices of G.
  2. T goes through all possible pairs of strings of length c log |x|. For each pair (C 1 , C 2 ), T checks whether both strings are encodings of configurations of NT (x), and whether NT can transform C 1 to C 2 in one step. If so, the pair (C 1 , C 2 ) is written on the output tape. This produces a list of edges of the graph G. Clearly, these operations can performed using log space, since at each step we only need to store at most two strings (of length c log |x|). Moreover, NT accepts x iff there is a path from C 0 to Ca in G.

Proof idea

Exactly as for NP and coNP , we have: if L is NL -complete then L is coNL -complete, if a coNL -complete problem belongs to NL then NL = coNL. REACHABILITY is NL -complete. So, it suffices to show that UNREACHABILITY is in NL. We now have to find a non-deterministic algorithm which uses log space, and which has an accepting computation whenever the input graph G does not contain a path from s to t.

Proof idea

Exactly as for NP and coNP , we have: if L is NL -complete then L is coNL -complete, if a coNL -complete problem belongs to NL then NL = coNL. REACHABILITY is NL -complete. So, it suffices to show that UNREACHABILITY is in NL. We now have to find a non-deterministic algorithm which uses log space, and which has an accepting computation whenever the input graph G does not contain a path from s to t.

Proof sketch (for details see Sipser Theorem 8.22)

Assume first that we know the exact number c of vertices reachable from s in G. Then the algorithm

  1. non-deterministically choose exactly c vertices, not including t,
  2. verifies that each chosen vertex is reachable from s (reachability can be checked in non-deterministic log space); if not then reject ,
  3. if all c chosen vertices are reachable from s, then t is not reachable from s, accept. So, if t is not reachable from s, there is an accepting computation. Clearly this algorithm uses at most logarithmic space.

Proof sketch (for details see Sipser Theorem 8.22)

Assume first that we know the exact number c of vertices reachable from s in G. Then the algorithm

  1. non-deterministically choose exactly c vertices, not including t,
  2. verifies that each chosen vertex is reachable from s (reachability can be checked in non-deterministic log space); if not then reject ,
  3. if all c chosen vertices are reachable from s, then t is not reachable from s, accept. So, if t is not reachable from s, there is an accepting computation. Clearly this algorithm uses at most logarithmic space.