Docsity

Space Complexity: REACH Theorem and Immerman-Szelepcs´enyi Theorem - Prof. Neil Immerman, Study notes of Computer Science

Toggle sidebar
bg1
CMPSCI 601: Recall From Last Time Lecture 17
Theorem: REACH is complete for NL.
Proof:

CompGraph
  
REACH
Space Hierarchy Theorem: Let
 
be a
space constructible function. If

  !
"
$# %
Then, DSPACE
&
!
(' )+*
,
DSPACE
&-
.'
.
Proof: Diagonalize against all machines using space
/0
"
and time
1325476
8
.
We stated but did not prove the similar Time Hierarchy
Theorem.
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download Space Complexity: REACH Theorem and Immerman-Szelepcs´enyi Theorem - Prof. Neil Immerman and more Study notes Computer Science in PDF only on Docsity!

CMPSCI 601: Recall From Last Time Lecture 17 Theorem: REACH is complete for NL. Proof:  (^)     CompGraph ^   REACH

Space Hierarchy Theorem: space constructible function. If Let ^  ^ be a

^  ! " $# % Then, DSPACE &! ('^ )+*,^ DSPACE &-^ .'^. Proof: and time Diagonalize against all machines using space 1325476 8 (^). / 0 "

We stated but did not prove the similar Theorem. Time Hierarchy

CMPSCI 601: NSPACE vs. DSPACE Lecture 17 Proposition 17. NSPACE & ^ ('^  NTIME & 1  6  56 8^8 '  DSPACE & 1  6  56 8^8 ' We can do much better!

This can be thought of as afor REACH, efficient for deterministic space but lousy middle-first search algorithm for time. boolean isPath (vertexvertex s,t, int dist) { ifif (s(dist == t)== return1) return true; (edge(s, t)); elseif for (isPath (vertex (s, u u, dist/2)= 0; u < n; && u++) returnisPath true;(u,^ t, dist^ -^ dist/2)) return false;} The call 3 (^). Each recursive call needs path(s,t,n-1) recurses to a depth of at most (^)   3  bits on the stack. The running time may be as bad asin effect 3 (^) nested loops. ^  since there are

Corollary 17.3 (Savitch’s Theorem) For ^  ^ , DSPACE & ^ ('^  NSPACE & ('^  DSPACE & ^ 5^ ' Proof: Let  NSPACE & .'^ ; #  ^  ^  CompGraph    REACH   #   CompGraph    # 1  6  56 8 8

Testing if CompGraph ^   REACH takes space,   CompGraph   5 #    1  6  56 8^8 5

^ 5^ ^  

From build CompGraph ^  in DSPACE [s(n)].

Theorem 17. REACH  NL Proof: Fix graph .  #^ ^ ^ ^ reachable from using   edges   Claim: The following problems are in NL :

  1. DIST ^   : distance     
  2. NDIST ^     : if  #  then DIST ^   Proof:
  3. Guess the path of length   from to .
  4. Guess  vertices,  #  , with DIST    .

Claim: We can compute  in NL. Proof: By induction on . Base case:  # Inductive step: Suppose we have  . 1.2. (^) for   # % ;

  1. OR #  DISTto^  do  ^    ;    ;
    1. ^    NDIST ^       #    ^  5^ 
    1. (^)     (^) #    REACH  NDIST      

CMPSCI 601: Review of Reductions Lecture 17 Definition 17.6 iff      (^) such that,We say that  is reducible to ,   ,

   N           

  (^) #       %  # 

Claim:  ^. Proof: Define ^ as follows:  476 8 (^) # erase inputwrite    if 1 then write 17else loop

  ^    (^) #   476 8  %  #

Theorem 17.7 ity classes: L, NL, P, NP, co-NP, PSPACE, EXPTIME, Let be one of the following complex- Primitive-Recursive, RECURSIVE, r.e., co-r.e. Suppose   . If  Then   That is, each of these classes is closed under reductions_._

Reductions are Useful for: Lower Bounds: If is hard and  Then is hard. Upper Bounds: If is easy and  Then is easy.

A Nontrivial Fact About Logspace Reductions: If  and   , then  . It looks obvious at first, but draw the picture of the twomachines! The output tape of the first machine becomes the input tape of the second. In the two original machinesneither counts against the space bound, but in the new machine this becomes a worktape! On HW#6 you’ll prove that this fact is actually true.