








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









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 &