/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Q3E Modify the proof of Theorem 3.16... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

Modify the proof of Theorem 3.16 to obtain Corollary 3.19, showing that a language is decidable if some nondeterministic Turing machine decides it. (You may assume the following theorem about trees. If every node in a tree has finitely many children and every branch of the tree has finitely many nodes, the tree itself has finitely many nodes.)

Short Answer

Expert verified

This theorem is proved

Step by step solution

01

NONDETERMINISTIC TURING MACHINES.

A nondeterministic Turing machine is defined in the expected way. At any point in a computation, the machine may proceed according to several possibilities. The transition function for a nondeterministic Turing machine has the form

δ:Q×Γ→PQ×Γ×L,R.

The computation of a nondeterministic Turing machine is a tree whose branches correspond to different possibilities for the machine. If some branch of the computation leads to the accept state.

02

Nondeterministic Turing machine theorem.

Here the both directions of the if and only if the language follows the property of Turing machine or the grammar, language L or string must be passes from its machine called as Turing machine.

Firstly, if a language L is decidable, it can be decided by a deterministic Turing machine, and that is automatically a nondeterministic Turing machine.

Second, if a language L is decided by a nondeterministic Turing machine N, we modify the deterministic Turing machineD0that was given in the proof of theorem as follows.

Move stage 4 to be stage 5. Add new stage 4: Reject if all branches of N’s non determinism have rejected. We argue that this new Turing machineD0is a decider for language L.

If N accepts its input,D0will eventually find an accepting branch and accept, too. If N rejects its input, all of its branches halt and reject because it is a decider.

Hence each of the branches has finitely many nodes, where each node represents one step of N’s computation along that branch.

Therefore,N ’s entire computation tree on this input is finite, by virtue of the theorem about trees given in the statement of the exercise. Consequently, D0will halt and reject when this entire tree has been explored.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with 91Ó°ÊÓ!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Use the procedure described in Lemma 1.55 to convert the following regular expressions to nondeterministic finite automata.


a.(0∪1)*000(0∪1)*b.((00*11)∪01)*c.∅*

A Turing machine with left reset is similar to an ordinary Turing machine, but the transition function has the form

δ : Q × Γ−→Q × Γ × {R, RESET}.

If δ(q, a) = (r, b, RESET), when the machine is in state q reading an a, the machine’s head jumps to the left-hand end of the tape after it writes b on the tape and enters state r. Note that these machines do not have the usual ability to move the head one symbol left. Show that Turing machines with left reset recognize the class of Turing-recognizable languages.

Let CNFk= is a satisfiable cnf-formula where each variable appears in at most k places}.

a. Show thatCNF2?P .

b. Show thatCNF3 isNP-complete.

Give state diagrams of NFAs with the specified number of states recognizing each of the following languages. In all parts, the alphabet is {0,1}.

a. The language{w|wendswith00}with three states

b.The language of Exercise 1.6c with five states

c.The language of Exercise 1.6l with six states

d. The language {0} with two states

e. The language 0*1*0+ with three states

f. The language1*(001+)* with three states

g. The language{ε}with one state

h. The language 0*with one state

Give state diagrams of DFAs recognizing the following languages. In all parts, the alphabet is {0,1}

a. {w|wbeginswitha1andendswitha0}

b. {w|wcontainsatleastthree1s}

c. {w|wcontainsthesubstring0101i.ew=x0101yforsomexandy}

d. {w|whaslengthatleast3anditsthirdsymbolis0}

e. {w|wstartswith0andhasoddlength,orstartswith1andhasevenlength}

f. {w|wdoesn'tcontainthesubstring110}

g.{w|thelengthofwisatmost5}

h.{w|wisanystringexcept11and111}

i. {w|everyoddpositionofwis1}

j.{w|wcontainsatleasttwo0sandatmostone1}

k.{ε,0}

l.{w|wcontainsevennumberof0sorcontainsexactlytwo1s}

m. The empty set

n. All strings except the empty string

See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.