1 / 8

Nondeterministic TMs

Nondeterministic TMs. Definition of NTMs. Must change transition function:  : Q x   2 (Q x  x {L, R}). Language of an NTM. String accepted if it’s possible to reach accepting configuration Set of computations – Computation Tree. Deciding a Language.

bian
Download Presentation

Nondeterministic TMs

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. Nondeterministic TMs

  2. Definition of NTMs • Must change transition function: •  : Q x   2(Q x  x {L, R})

  3. Language of an NTM • String accepted if it’s possible to reach accepting configuration • Set of computations – Computation Tree

  4. Deciding a Language • Accept – The computation tree contains an accepting configuration. • Reject – All leaves in the computation tree are rejecting configurations. • Loop – The computation tree contains no accepting configuration and there exists an infinitely long path in the tree.

  5. Equivalence of NTMs and TMs For a language L • NTMM s.t. L = L(M) TMM’ s.t. L = L(M’) • NTMM that decides L  TMM’ that decides L

  6. Simulating NTM with TM • Let M = (Q, , , , q0, , F) be any NTM • Will create TM M = (Q, , , , q0, , F) • On input w  *, M creates computation tree for M • By simulating M‘s moves.

  7. TM Simulating NTM 1 2...n Input NTM transitions ((q,),{(q1,1,D1), (q2,2,D2), ... , (qk,k,Dk)})... Finite Control (States) Queue of configs q01 2...n$1 q12 ... n$ ... Scratch

  8. Pseudocode Step 1: Put M‘s state transitions on tape 2 Step 2: Put start configuration on tape 3 (q0 followed by copy of tape 1) Step 3: Create computation tree

More Related