Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

We assume that the input string is put on the TAPE with the symbol # inserted in front of it in cell i. For example,

We assume that the input string is put on the TAPE with the symbol # inserted in front of it in cell i.

For example, the input ba will be run with the TAPE initially in the form #baA .... The TM is then

image text in transcribed

The language this TM accepts is DOUBLEWORD, the set of all words of the form ww where w is a nonnull string in {a,b}*.

DOUBLEWORD = {aa bb aaaa abab baba bbbb aaaaaa aabaab . . }

(i) Explain the meaning of each state and prove that all words in DOUBLEWORD are accepted by this TM.

(ii) Show that all words not in DOUBLEWORD are rejected by this machine.

Please show all the steps. Thanks!

(a A,R) (b.B,R) (a,a,R) (b.b,R) (a,a,R) (b,b,R) (AAR) (A,A,R) (B,B,R) (AAL) (X,X,L) (b,b.L) (a,a,L) (b, Y.L) (a,X,L) (A,A.L) (a,a,L) (b,b,L) (B.BL ((B.B.R C.R (A,A,R) (A,A,R) 9 (BB.R) (B,HR) (#,#,R) 10 (A,AR) 13 (B,B,L) (B,B,L) (A.A.L) (A,A,L) HALT

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions