Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
DSPACE
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{For|digital repositories|DSpace}} {{Refimprove|date=October 2009}} In [[computational complexity theory]], '''DSPACE''' or '''SPACE''' is the [[computational resource]] describing the resource of [[Memory space (computational resource)|memory space]] for a [[deterministic Turing machine]]. It represents the total amount of memory space that a "normal" physical computer would need to solve a given [[computational problem]] with a given [[algorithm]]. ==Complexity classes== The measure '''DSPACE''' is used to define [[complexity class]]es, sets of all of the [[decision problem]]s that can be solved using a certain amount of memory space. For each function ''f''(''n''), there is a [[complexity class]] SPACE(''f''(''n'')), the set of [[decision problem]]s that can be solved by a [[deterministic Turing machine]] using space ''O''(''f''(''n'')). There is no restriction on the amount of [[computation time]] that can be used, though there may be restrictions on some other complexity measures (like [[Alternation (complexity)|alternation]]). Several important complexity classes are defined in terms of '''DSPACE'''. These include: * [[regular language|REG]] = DSPACE(''O''(1)), where '''REG''' is the class of [[regular language]]s. In fact, REG = DSPACE(''o''(log log ''n'')) (that is, {{math|Ξ©(log log ''n'')}} space is required to recognize any non-regular language).<ref name=AS28>Szepietowski (1994) p. 28</ref><ref>{{citation |last1=Alberts|first1=Maris|title=Space complexity of alternating Turing machines|year=1985}}</ref> ''Proof:'' Suppose that there exists a non-regular language ''L'' β DSPACE(''s''(''n'')), for ''s''(''n'') = ''o''(log log ''n''). Let ''M'' be a [[Turing machine]] deciding ''L'' in space ''s''(''n''). By our assumption ''L'' β DSPACE(''O''(1)); thus, for any arbitrary <math>k \in \mathbb{N}</math>, there exists an input of ''M'' requiring more space than ''k''. Let ''x'' be an input of smallest size, denoted by n, that requires more space than ''k'', and <math>\mathcal{C}</math> be the set of all [[Turing machine|configurations]] of ''M'' on input ''x''. Because ''M'' β DSPACE(''s''(''n'')), then <math>|\mathcal{C}| \le 2^{c.s(n)} = o(\log n)</math>, where ''c'' is a constant depending on ''M''. Let ''S'' denote the set of all possible [[Crossing sequence (Turing machines)|crossing sequences]] of ''M'' on ''x''. Note that the length of a crossing sequence of ''M'' on ''x'' is at most <math>|\mathcal{C}|</math>: if it is longer than that, then some configuration will repeat, and ''M'' will go into an infinite loop. There are also at most <math>|\mathcal{C}|</math> possibilities for every element of a crossing sequence, so the number of different crossing sequences of ''M'' on ''x'' is :<math>|S|\le|\mathcal{C}|^{|\mathcal{C}|} \le (2^{c.s(n)})^{2^{c.s(n)}}= 2^{c.s(n).2^{c.s(n)}}< 2^{2^{2c.s(n)}}=2^{2^{o(\log \log n)}} = o(n) </math> According to [[pigeonhole principle]], there exist indexes ''i'' < ''j'' such that <math>\mathcal{C}_i(x)=\mathcal{C}_j(x)</math>, where <math>\mathcal{C}_i(x)</math> and <math>\mathcal{C}_j(x)</math> are the crossing sequences at boundary ''i'' and ''j'', respectively. Let {{mvar|x'}} be the string obtained from {{mvar|x}} by removing all cells from ''i'' + 1 to ''j''. The machine {{mvar|M}} still behaves exactly the same way on input {{mvar|x'}} as on input {{mvar|x}}, so it needs the same space to compute {{mvar|x'}} as to compute {{mvar|x}}. However, {{math|{{!}}''x' ''{{!}} < {{!}}''x''{{!}}}}, contradicting the definition of {{mvar|x}}. Hence, there does not exist such a language {{mvar|L}} as assumed. β‘ The above theorem implies the necessity of the [[space-constructible function]] assumption in the [[space hierarchy theorem]]. * [[L (complexity)|L]] = DSPACE(''O''(log ''n'')) * [[PSPACE]] = <math>\bigcup_{k\in\mathbb{N}} \mathsf{DSPACE}(n^k)</math> * [[EXPSPACE]] = <math>\bigcup_{k\in\mathbb{N}} \mathsf{DSPACE}(2^{n^k})</math> ==Machine models== '''DSPACE''' is traditionally measured on a [[deterministic Turing machine]]. Several important space complexity classes are [[sublinear]], that is, smaller than the size of the input. Thus, "charging" the algorithm for the size of the input, or for the size of the output, would not truly capture the memory space used. This is solved by defining the [[multi-tape Turing machine with input and output]], which is a standard multi-tape Turing machine, except that the input tape may never be written-to, and the output tape may never be read from. This allows smaller space classes, such as [[L (complexity)|L]] (logarithmic space), to be defined in terms of the amount of space used by all of the work tapes (excluding the special input and output tapes). Since many symbols might be packed into one by taking a suitable power of the alphabet, for all ''c'' β₯ 1 and ''f'' such that ''f''(''n'') β₯ ''1'', the class of languages recognizable in ''c f''(''n'') space is the same as the class of languages recognizable in ''f''(''n'') space. This justifies usage of [[big O notation]] in the definition. ==Hierarchy theorem== The [[space hierarchy theorem]] shows that, for every [[space-constructible function]] <math>f: \mathbb{N} \to \mathbb{N}</math>, there exists some language L which is decidable in space <math>O(f(n))</math> but not in space <math>o(f(n))</math>. {{See|space hierarchy theorem}} ==Relation with other complexity classes== '''DSPACE''' is the deterministic counterpart of '''[[NSPACE]]''', the class of [[Memory space (computational resource)|memory space]] on a [[non-deterministic Turing machine]]. By [[Savitch's theorem]],<ref name=AB86>Arora & Barak (2009) p. 86</ref> we have that :<math>\mathsf{DSPACE}[s(n)] \subseteq \mathsf{NSPACE}[s(n)] \subseteq \mathsf{DSPACE}[(s(n))^2].</math> '''[[NTIME]]''' is related to DSPACE in the following way. For any [[time constructible]] function ''t''(''n''), we have :<math>\mathsf{NTIME}(t(n)) \subseteq \mathsf{DSPACE}(t(n))</math>. ==References== {{reflist}} * {{cite book | last1=Szepietowski | first1=Andrzej | title=Turing Machines with Sublogarithmic Space | publisher=[[Springer Science+Business Media]] | year=1994 | isbn=978-3-540-58355-4 }} * {{cite book | zbl=1193.68112 | last1=Arora | first1=Sanjeev | authorlink1=Sanjeev Arora | last2=Barak | first2=Boaz | title=Computational complexity. A modern approach | publisher=[[Cambridge University Press]] | year=2009 | isbn=978-0-521-42426-4 }} ==External links== *{{ComplexityZoo|DSPACE(''f''(''n''))|D#dspace}}. {{ComplexityClasses}} {{DEFAULTSORT:Dspace}} [[Category:Computational resources]] [[Category:Complexity classes]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Citation
(
edit
)
Template:Cite book
(
edit
)
Template:ComplexityClasses
(
edit
)
Template:ComplexityZoo
(
edit
)
Template:For
(
edit
)
Template:Math
(
edit
)
Template:Mvar
(
edit
)
Template:Refimprove
(
edit
)
Template:Reflist
(
edit
)
Template:See
(
edit
)