1 / 28

Part II Theory of Nondeterministic Computation

Part II Theory of Nondeterministic Computation. Lecture 5 Time and Space of NTM. Nondeterministic TM (NTM). There are multiple choices for each transition. For each input x, the NTM may have more than one computation paths.

donar
Download Presentation

Part II Theory of Nondeterministic Computation

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Part II Theory of Nondeterministic Computation

  2. Lecture 5 Time and Space of NTM

  3. Nondeterministic TM (NTM) • There are multiple choices for each transition. • For each input x, the NTM may have more than one computation paths. • An input x is accepted if at least one computation path leads to the final state. • L(M) is the set of all accepted inputs.

  4. A function f(x) is computed by an NTM M if for every x ε L(M), M gives output f(x) whenever it reaches the final state. Theorem. A function can be computed by an NTM iff it is Turing-computable. Proof.Idea: Enumerate all possible computation paths of certain length from small to large. Implement: set a tape to do the enumeration.

  5. Suppose for each transition, there are at most c choices. Then on the enumeration tape, the DTM enumerate all strings on alphabet {a1, a2, …, ac}: ε, a1, a2, …, ac, a1a2, a1a3, …. • When a string ai1ai2∙∙∙aim is written on the enumeration tape, the DTM simulates the NTM by making the ij –th choice at the j-th move. • DTM halts iff it found a computation path of NTM which halts.

  6. Question: How many moves does a DMT needs to simulate t moves of a NTM? • O(c ) t

  7. Time • For a NDM M and an input x, TimeM(x) = the minimum # of moves leading to accepting x if x ε L(M) = infinity if x not in L(M)

  8. Time Bound A NTM M is said to have a time bound t(n) if for sufficiently large n and every x ε L(M) With |x|=n, TimeM(x) < max {n+1, t(n)} .

  9. Complexity Classes NTIME(t(n)) = {L(M) | M is a NTM with time bound t(n)} NP = U c > 0 NTIME(n ) c

  10. Relationship • P NP • NP ≠ EXP • NP EXPOLY

  11. NP≠EXP

  12. Theorem • Speed Up Theorem still holds. • Hierarchy Theorem may not.

  13. Space For a NTM M and an input x, SpaceM(x) = the minimum space, over all computation paths, on input x if x ε L(M) = infinity otherwise

  14. Space bound • A NTM M is said to have a space bound s(n) if sufficiently large n and every input x with |x|=n, SpaceM(x) ≤ max{k, s(n)} k = # of work tapes

  15. Complexity Classes • NSPACE(s(n)) = {L(M) | M is a NTM with space bound s(n)} • NPSPACE = Uc>0 NSPACE(n ) c

  16. Relationship • NP NPSPACE • PSPACE = NPSPACE (why?)

  17. Savich’s Theorem • If s(n) ≥ log n, then NSPACE (s(n)) DSPACE(s(n) ) The proof will be given later! 2

  18. Theorems • Compresion Theorem holds. • Hierarchy Theorem may not.

  19. Translation Lemma • Let s1(n), s2(n) and f(n) be fully space-constructible functions with s2(n) > n and f(n)> n. Then NSPACE(s1(n)) NSPACE(s2(n)) implies NSPACE(s1(f(n))) NSPACE(s2(f(n)))

  20. Hierarchy 4 8 • NSPACE(n ) DSPACE(n ) DSPACE(n ) NSPACE(n ) • For r > 1 and a > 0, NSPACE(n ) ≠ NSPACE (n ) 9 ≠ 9 r+a r

  21. Proof of Savitch’s Theorem

  22. Savich’s Theorem If s(n) ≥ log n, then NSPACE (s(n)) DSPACE(s(n) ) 2 Proof.

  23. How many configurations of M exist within space s(n)? Input tape x2 x1 xn Work tape

  24. Depth-first Search

  25. P NP PSPACE P EXP EXPOLY PSPACE

More Related