Question: Refer to the following TM. We assume that the input string is put on the T APE with the symbol # inserted in front of

Refer to the following TM. 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 ha will be run with the TAPE initially in the form #ba∇ . . . . In this chapter, we saw how to do this using TM states. Here, consider it already done. The TM is then

START (#,#,R) (A,A,R) (B.B.R) (a.a,L) (b,b,L) (Y,*.L) 11 (*.*.L) (B.B.L) (A.A.L) (a.A.R)

Trace the execution chains of the following i nput strings on this machine:
(i) aa
(ii) aaa
(iii) aaaa
(iv) aabaab
(v) abab

START (#,#,R) (A,A,R) (B.B.R) (a.a,L) (b,b,L) (Y,*.L) 11 (*.*.L) (B.B.L) (A.A.L) (a.A.R) (b.B.R) (b.b.L) (a.a.L) (A,A,L) (B.B.L) (*.*.R) (A.A.R) (B.B.R) (B,#,R) (#,#,R) 7 (*.*,R) 8 (A,A,R) 13 (#,#,R) (a,a, R) (b,b,R) HALT (b,Y,L) (a,X,L) (A,A,L) (B.B.L) (A,#,R) (#,#,R) (..R) 4 (A,A,L) (X,X,L) (Y.Y.L) (a.a.R)| (b,b,R) (B,B,R) (*.*.R) (A,A,R) 10 (X,*.L) 12 (B,B,L) (*.*.L) (A.A.L)

Step by Step Solution

3.36 Rating (162 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

i aa Initial tape configuration aa Reads a in the first cell and moves right aa Reads a in the secon... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related SQL Database Programming Questions!