|
|
(One intermediate revision by one other user not shown) |
Line 1: |
Line 1: |
| In [[computational complexity theory]], non-deterministic space or '''NSPACE''' is the [[computational resource]] describing the [[memory space]] for a [[non-deterministic Turing machine]]. It is the non-deterministic counterpart of '''[[DSPACE]]'''.
| |
|
| |
|
| ==Complexity classes==
| |
|
| |
|
| The measure '''NSPACE''' is used to define the [[complexity class]] whose solutions can be determined by a [[non-deterministic Turing machine]]. The [[complexity class]] '''NSPACE(''f''(''n''))''' is the set of [[decision problem]]s that can be solved by a [[non-deterministic Turing machine]], ''M'', using space ''O''(''f''(''n'')), where ''f''(''n'') is the maximum number of tape cells that ''M'' scans on any input of length ''n''.<ref>{{cite book|last=Sipser|first=Michael|title=Introduction to the Theory of Computation (2nd ed.)|year=2006|publisher=Course Technology|isbn=978-0-534-95097-2|pages=303–304}}</ref>
| | Roberto is [https://www.Google.com/search?hl=en&gl=us&tbm=nws&q=what%27s+written what's written] to his birth certificate but nonetheless , he never really appreciated that name. South Carolina is michael's birth place. The beloved hobby for him as well as the his kids is to assist you fish and he's been doing it for a long time. Auditing is how he supports his own family. Go with regard to his website to find out more: http://prometeu.net<br><br>Feel free to visit my web page; [http://prometeu.net clash of clans cheats] |
| | |
| Several important complexity classes can be defined in terms of '''NSPACE'''. These include:
| |
| | |
| * '''[[regular language|REG]]''' = '''DSPACE'''(''O''(1)) = '''NSPACE'''(''O''(1)), where '''REG''' is the class of [[regular language]]s (nondeterminism does not add power in constant space).
| |
| * '''[[NL (complexity)|NL]]''' = '''NSPACE'''(''O''(log ''n''))
| |
| * '''[[context-sensitive language|CSL]]''' = '''NSPACE'''(''O''(''n'')), where '''CSL''' is the class of [[context-sensitive language]]s.
| |
| * '''[[PSPACE]]''' = '''NPSPACE''' = <math>\bigcup_{k\in\mathbb{N}} \mbox{NSPACE}(n^k)</math>
| |
| * '''[[EXPSPACE]]''' = '''NEXPSPACE''' = <math>\bigcup_{k\in\mathbb{N}} \mbox{NSPACE}(2^{n^k})</math>
| |
| | |
| The [[Immerman–Szelepcsényi theorem]] states that '''NSPACE'''(''s''(''n'')) is closed under complement for every function {{nowrap|''s''(''n'') ≥ log ''n''.}} | |
| | |
| A further generalization is '''ASPACE''', defined with [[alternation (complexity)|alternating Turing machines]].
| |
| | |
| ==Relation with other complexity classes==
| |
| | |
| ===DSPACE===
| |
| | |
| '''NSPACE''' is the non-deterministic counterpart of '''[[DSPACE]]''', the class of [[memory space]] on a [[deterministic Turing machine]]. By [[Savitch's theorem]], we have that:
| |
| <blockquote>
| |
| <math>\mbox{DSPACE}[s(n)] \subseteq \mbox{NSPACE}[s(n)] \subseteq \mbox{DSPACE}[(s(n))^2].</math>
| |
| </blockquote> | |
| | |
| ===Time===
| |
| | |
| '''NSPACE''' can also be used to determine the time complexity of a [[deterministic Turing machine]] by the following theorem:
| |
| <blockquote>
| |
| If a language ''L'' is decided in space ''S(n)'' (where ''S(n)'' ≥ log ''n'') by a non-deterministic TM, then there exists a constant ''C'' such that ''L'' is decided in time ''O''(''C''<sup>''S''(''n'')</sup>) by a deterministic one.<ref>{{cite book|last=Goddard|first=Wayne|title=Introducing the Theory of Computation|year=2008|publisher=Jones and Bartlett Publishers, Inc.|isbn=978-0-7637-4125-9|pages=183}}</ref>
| |
| </blockquote>
| |
| | |
| ==Limitations==
| |
| | |
| The measure of [[space complexity]] in terms of '''[[DSPACE]]''' is useful because it represents the total amount of memory that an actual computer would need to solve a given [[computational problem]] with a given [[algorithm]]. The reason is that '''DSPACE''' describes the space complexity used by [[deterministic Turing machine]]s, which can represent actual computers. On the other hand, '''NSPACE''' describes the space complexity of [[non-deterministic Turing machine]]s, which are not useful when trying to represent actual computers. For this reason, '''NSPACE''' is limited in its usefulness to real-world applications.
| |
| | |
| ==References==
| |
| {{Reflist}}
| |
| | |
| ==External links==
| |
| {{ComplexityZoo|NSPACE(''f''(''n''))|N#nspace}}.
| |
| | |
| {{ComplexityClasses}}
| |
| | |
| {{DEFAULTSORT:Nspace}}
| |
| [[Category:Complexity classes]]
| |
| [[Category:Computational resources]]
| |
| | |
| {{Comp-sci-theory-stub}}
| |
Roberto is what's written to his birth certificate but nonetheless , he never really appreciated that name. South Carolina is michael's birth place. The beloved hobby for him as well as the his kids is to assist you fish and he's been doing it for a long time. Auditing is how he supports his own family. Go with regard to his website to find out more: http://prometeu.net
Feel free to visit my web page; clash of clans cheats