Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

This exercise concerns TM M1, whose description and state diagram appear in Example 3.9. In each of the parts, give the sequence of configurations that M1 enters when started on the indicated input string.

a. 11.

b. 1#1

c. 1##1

d. 10#11

e. 10#10

Short Answer

Expert verified

a) 11, the sequence is given as, q111,xq31,x1q3|_|,x1qreject.

b) 1#1,the sequence is given as,

q11#1xq3#1x#q51xq6#xq7x#xxq1#xx#q8xx#q8#x#x#qaccept#

c) 1##1,the sequence is given as, q11##1xq3##1x#q5#1x##qreject1

d) 10#11,the sequence is given as,

q110#11xq10#11x0q1#11x0#q511x0q6#x1xq70#x1q7x0#x1xq10#x1xxq2#x1xx#q4x1xx#xq41xx#x1qreject

e) 10#10, the sequence is given as,

q110#10xq30#10x0q3#10x0#q510x0q6#x0xq70#x0q7x0#x0xq10#x0xxq2#x0xx#q4x0xx#xq4xx#q6xxxxq6##xxxq7x#xxxxq1#xxxx#q8xxxx#xq8xxx#xxq8#xx#xx#qaccept

Step by step solution

01

Turing machine.

A Turing Machine (TM) is a mathematical model which consists of an infinite length tape divided into cells on which input is given. It consists of a head which reads the input tape. A state register stores the state of the Turing machine.

As its state diagram is given in the example 3.9 is shown below,

02

Step 2:

a)

The sequence of configurations and the string which is accepted by the machine which is defined in example in above state diagram, that machine enters when started on the indicated input string and accepted by this Turing machine is given as,

11, the sequence is given as, q111,xq31,x1q3|_|,x1qreject.

03

Step 3:

The sequence of configurations and the string which is accepted by the machine which is defined in example in above state diagram, that machine enters when started on the indicated input string and accepted by this Turing machine is given as,

1#1,the sequence is given as,

q11#1xq3#1x#q51xq6#xq7x#xxq1#xx#q8xx#q8#x#x#qaccept#

04

Step 4:

c)

The sequence of configurations and the string which is accepted by the machine which is defined in example in above state diagram, that machine enters when started on the indicated input string and accepted by this Turing machine is given as,

1##1,the sequence is given as,

1##1, the sequence is given as,q11##1xq3##1x#q5#1x##qreject1

05

Step 5:

d)

10#11,

The sequence of configurations and the string which is accepted by the machine which is defined in example in above state diagram, that machine enters when started on the indicated input string and accepted by this Turing machine is given as,

The sequence is given as,

q110#11xq10#11x0q1#11x0#q511x0q6#x1xq70#x1q7x0#x1xq10#x1xxq2#x1xx#q4x1xx#xq41xx#x1qreject

06

Step 6:

e)

10#10,

The sequence of configurations and the string which is accepted by the machine which is defined in example in above state diagram, that machine enters when started on the indicated input string and accepted by this Turing machine is given as,

The final sequence for this machine is given as,

q110#10xq30#10x0q3#10x0#q510x0q6#x0xq70#x0q7x0#x0xq10#x0xxq2#x0xx#q4x0xx#xq4xx#q6xxxxq6##xxxq7x#xxxxq1#xxxx#q8xxxx#xq8xxx#xxq8#xx#xx#qaccept

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 Vaia!

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

A Turing machine with doubly infinite tape is similar to an ordinary Turing machine, but its tape is infinite to the left as well as to the right. The tape is initially filled with blanks except for the portion that contains the input. Computation is defined as usual except that the head never encounters an end to the tape as it moves leftward. Show that this type of Turing machine recognizes the class of Turing-recognizable languages.

Let c1xn+c2xn-1+···+cnx+cn+1be a polynomial with a root atx=x0 . Let role="math" localid="1659797796589" cmaxbe the largest absolute value of a . Show that

|x0|<(n+1)cmaxc1

Question:A Turing machine with stay put instead of left is similar to an ordinary Turing machine, but the transition function has the form

δ:Q×Γ-Q×Γ×{R,S}.

At each point, the machine can move its head right or let it stay in the same position. Show that this Turing machine variant is not equivalent to the usual version. What class of languages do these machines recognize?

Examine the formal definition of a Turing machine to answer the following questions, and explain your reasoning.

a. Can a Turing machine ever write the blank symbol on its tape?

b. Can the tape alphabetΓbe the same as the input alphabet?

c. Can a Turing machine’s head ever be in the same location in two successive steps?

d. Can a Turing machine contain just a single state?

Question:LetB={M1),(M2.......} be a Turing-recognizable language consisting of TM descriptions. Show that there is a decidable language C consisting of TM descriptions such that every machine described in B has an equivalent machine in C and vice versa.

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.

Sign-up for free