- Space hierarchy theorem
In
computational complexity theory , the space hierarchy theorems are separation results that show that both deterministic and nondeterministic machines can solve more problems in (asymptotically) more space, subject to certain conditions. For example, adeterministic Turing machine can solve moredecision problem s in space "n" log "n" than in space "n". The somewhat weaker analogous theorems for time are thetime hierarchy theorem s.The foundation for the hierarchy theorems lies in the intuition thatwith either more time or more space comes the ability to compute morefunctions (or decide more languages). The hierarchy theorems are usedto demonstrate that the time and space complexity classes form ahierarchy where classes with tighter bounds contain fewer languagesthan those with more relaxed bounds. Here we define and prove thespace hierarchy theorem.
The space hierarchy theorems rely on the concept of
space-constructible function s. Formally, A function is spaceconstructible if and there exists a Turing machinewhich computes the function in space when startingwith an input , where represents a string of s.. Most common functions we work with are space-constructible, including polynomials, exponents, and logarithms.Statement
For every space constructible function , there exists a language that is decidable in space but not in space .
Proof
The goal here is to define a language that can be decided in space but not space . Here we define the language :
Now, for any machine that decides a language in space , will differ in at least one spot from the language of , namely at the value of . The algorithm for deciding the language is as follows:
# On an input , compute using space constructibility, and mark off cells of tape. Whenever an attempt is made to use more than cells, "reject".
# If is not of the form for some TM , "reject".
# Simulate on input for at most steps (using space). If the simulation tries to use more than space or more than operations, then "reject".
# If accepted during this simulation, then "reject"; otherwise, "accept".Note on step 3: Execution is limited to steps in order to avoid thecase where does not halt on the input . That is, the case where consumes space of only as required, but runs forinfinite time.
Comparison and improvements
The space hierarchy theorem is stronger than the analogous time hierarchy theorems in several ways:
* It only requires s(n) to be at least log "n" instead of at least "n".
* It can separate classes with any asymptotic difference, whereas the time hierarchy theorem requires them to be separated by a logarithmic factor.
* It only requires the function to be space-constructible, not time-constructible.It seems to be easier to separate classes in space than in time. Indeed, whereas the time hierarchy theorem has seen little remarkable improvement since its inception, the nondeterministic space hierarchy theorem has seen at least one important improvement by Viliam Geffert in his 2003 paper "Space hierarchy theorem revised". This paper made several striking generalizations of the theorem:
* It relaxes the space-constructibility requirement. Instead of merely separating the union classes DSPACE(O(s(n)) and DSPACE(o(s(n)), it separates DSPACE(f(n)) from DSPACE(g(n)) where f(n) is an arbitrary O(s(n)) function and g(n) is a computable o(s(n)) function. These functions need not be space-constructible or even monotone increasing.
* It identifies aunary language , or tally language, which is in one class but not the other. In the original theorem, the separating language was arbitrary.
* It does not require s(n) to be at least log "n"; it can be any nondeterministically fully space-constructible function.Corollaries
Corollary 1
"For any two functions , , where (n) is o((n)) and is spaceconstructible, SPACE((n)) SPACE((n))."
This corollary lets us separate various space complexity classes.For any function is space constructible for any naturalnumber k. Therefore for any two natural numbers we canprove SPACE() SPACE(). We can extendthis idea for real numbers in the following corollary. Thisdemonstrates the detailed hierarchy within the PSPACE class.
Corollary 2
"For any two real numbers 0 SPACE() SPACE()."
Corollary 3
"NL
PSPACE ."Proof
Savitch's theorem shows that NL SPACE(), while the space hierarchy theorem shows that SPACE( SPACE(). Thus we get this corollary along with the fact that that TQBF NLsince TQBF is PSPACE-complete.
This could also be proven using the non-deterministic space hierarchy theorem to show that NL NPSPACE, and using Savitch's theorem to show that PSPACE = NPSPACE.
Corollary 4
PSPACE EXPSPACE .This last corollary shows the existence of decidableproblems that are intractable. In other words their decision procedures must use more than polynomial space.
Corollary 5
There are problems in PSPACE requiring an arbitrarily large exponent to solve; therefore PSPACE does not collapse to DSPACE("n""k") for some constant "k".
Corollary 6
L ≠ DSPACE(log2 "n"). Since Savitch's theorem implies that NL lies in the latter, we must have either L ≠ NL or NL ≠ DSPACE(log2 "n") (although it's commonly believed that both inequalities hold).
References
* Luca Trevisan. [http://www.cs.berkeley.edu/~luca/cs172-04/noteh.pdf Notes on Hierarchy Theorems] . Handout 7. CS172: Automata, Computability and Complexity. U.C. Berkeley. April 26, 2004.
* Viliam Geffert. [http://portal.acm.org/citation.cfm?id=763728 Space hierarchy theorem revised] . "Theoretical Computer Science", volume 295, number 1-3, p.171-187. February 24, 2003.
* Pages 306–310 of section 9.1: Hierarchy theorems.
* Section 7.2: The Hierarchy Theorem, pp.143–146.
Wikimedia Foundation. 2010.