Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

DSPACE

From Wikipedia, the free encyclopedia
Memory space for a deterministic Turing machine
For digital repositories, seeDSpace.
icon
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "DSPACE" – news ·newspapers ·books ·scholar ·JSTOR
(October 2009) (Learn how and when to remove this message)

Incomputational complexity theory,DSPACE orSPACE is thecomputational resource describing the resource ofmemory space for adeterministic Turing machine. It represents the total amount of memory space that a "normal" physical computer would need to solve a givencomputational problem with a givenalgorithm.

Complexity classes

[edit]

The measureDSPACE is used to definecomplexity classes, sets of all of thedecision problems that can be solved using a certain amount of memory space. For each functionf(n), there is acomplexity class SPACE(f(n)), the set ofdecision problems that can be solved by adeterministic Turing machine using spaceO(f(n)). There is no restriction on the amount ofcomputation time that can be used, though there may be restrictions on some other complexity measures (likealternation).

Several important complexity classes are defined in terms ofDSPACE. These include:

  • REG = DSPACE(O(1)), whereREG is the class ofregular languages. In fact, REG = DSPACE(o(log log n)) (that is,Ω(log log n) space is required to recognize any non-regular language).[1][2]

Proof:Suppose that there exists a non-regular languageL ∈ DSPACE(s(n)), fors(n) =o(log logn). LetM be aTuring machine decidingL in spaces(n). By our assumptionL ∉ DSPACE(O(1)); thus, for any arbitrarykN{\displaystyle k\in \mathbb {N} }, there exists an input ofM requiring more space thank.

Letx be an input of smallest size, denoted by n, that requires more space thank, andC{\displaystyle {\mathcal {C}}} be the set of allconfigurations ofM on inputx. BecauseM ∈ DSPACE(s(n)), then|C|2cs(n)=o(logn){\displaystyle |{\mathcal {C}}|\leq 2^{c\cdot s(n)}=o(\log n)}, wherec is a constant depending onM.

LetS denote the set of all possiblecrossing sequences ofM onx. Note that the length of a crossing sequence ofM onx is at most|C|{\displaystyle |{\mathcal {C}}|}: if it is longer than that, then some configuration will repeat, andM will go into an infinite loop. There are also at most|C|{\displaystyle |{\mathcal {C}}|} possibilities for every element of a crossing sequence, so the number of different crossing sequences ofM onx is

|S||C||C|(2cs(n))2cs(n)=2cs(n)2cs(n)<222cs(n)=22o(loglogn)=o(n){\displaystyle |S|\leq |{\mathcal {C}}|^{|{\mathcal {C}}|}\leq (2^{c\cdot s(n)})^{2^{c\cdot s(n)}}=2^{c\cdot s(n)\cdot 2^{c\cdot s(n)}}<2^{2^{2c\cdot s(n)}}=2^{2^{o(\log \log n)}}=o(n)}

According topigeonhole principle, there exist indexesi <j such thatCi(x)=Cj(x){\displaystyle {\mathcal {C}}_{i}(x)={\mathcal {C}}_{j}(x)}, whereCi(x){\displaystyle {\mathcal {C}}_{i}(x)} andCj(x){\displaystyle {\mathcal {C}}_{j}(x)} are the crossing sequences at boundaryi andj, respectively.

Letx' be the string obtained fromx by removing all cells fromi + 1 toj. The machineM still behaves exactly the same way on inputx' as on inputx, so it needs the same space to computex' as to computex. However,|x'| < |x|, contradicting the definition ofx. Hence, there does not exist such a languageL as assumed. □

The above theorem implies the necessity of thespace-constructible function assumption in thespace hierarchy theorem.

Machine models

[edit]

DSPACE is traditionally measured on adeterministic Turing machine. Several important space complexity classes aresublinear, 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 themulti-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 asL (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 allc ≥ 1 andf such thatf(n) ≥1, the class of languages recognizable incf(n) space is the same as the class of languages recognizable inf(n) space. This justifies usage ofbig O notation in the definition.

Hierarchy theorem

[edit]

Thespace hierarchy theorem shows that, for everyspace-constructible functionf:NN{\displaystyle f:\mathbb {N} \to \mathbb {N} }, there exists some languageL that is decidable in spaceO(f(n)){\displaystyle O(f(n))} but not in spaceo(f(n)){\displaystyle o(f(n))}.

Further information:space hierarchy theorem

Relation with other complexity classes

[edit]

DSPACE is the deterministic counterpart ofNSPACE, the class ofmemory space on anon-deterministic Turing machine. BySavitch's theorem,[3] we have that

DSPACE(s(n))NSPACE(s(n))DSPACE((s(n))2).{\displaystyle {\mathsf {DSPACE}}(s(n))\subseteq {\mathsf {NSPACE}}(s(n))\subseteq {\mathsf {DSPACE}}{\bigl (}(s(n))^{2}{\bigr )}.}

NTIME is related to DSPACE in the following way. For anytime constructible functiont(n), we have

NTIME(t(n))DSPACE(t(n)){\displaystyle {\mathsf {NTIME}}(t(n))\subseteq {\mathsf {DSPACE}}(t(n))}.

A much better simulation is known fordeterministic time: ift(n)n{\displaystyle t(n)\geq n},

DTIME(t(n))DSPACE(t(n)logt(n)){\displaystyle {\mathsf {DTIME}}(t(n))\subseteq {\mathsf {DSPACE}}\left({\sqrt {t(n)\log t(n)}}\right)}

by a result ofWilliams,[4] improving an older bound ofO(t/logt){\displaystyle O(t/\log t)} byHopcroft, Paul, andValiant.[5]

On the other hand, for any functions(n)logn{\displaystyle s(n)\geq \log n},

DSPACE(s(n))DTIME(2O(s(n))){\displaystyle {\mathsf {DSPACE}}(s(n))\subseteq {\mathsf {DTIME}}{\bigl (}2^{O(s(n))}{\bigr )}}.

References

[edit]
  1. ^Szepietowski (1994) p. 28
  2. ^Alberts, Maris (1985),Space complexity of alternating Turing machines
  3. ^Arora & Barak (2009) p. 86
  4. ^Ryan Williams, R. (2025-06-15)."Simulating Time with Square-Root Space".Proceedings of the 57th AnnualACM Symposium on Theory of Computing. ACM. pp. 13–23.doi:10.1145/3717823.3718225.ISBN 979-8-4007-1510-5.
  5. ^Hopcroft, John; Paul, Wolfgang; Valiant, Leslie (April 1977)."On Time Versus Space".Journal of the ACM.24 (2):332–337.doi:10.1145/322003.322015.ISSN 0004-5411.

External links

[edit]
Considered feasible
Suspected infeasible
Considered infeasible
Other complexity classes
Class hierarchies
Families of classes
Retrieved from "https://en.wikipedia.org/w/index.php?title=DSPACE&oldid=1327109720"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp