Question: Let Sigma = { a , b } . What does the following TM do ? q 0 a b R q 0 q
Let Sigma ab What does the following TM do
q a b R q
q b a R q
q L q
q a b L q
q b a L q
q S haltaccept
Choice of :It enters an infinite loop. Choice of :It checks whether the string consists of alternating as and bs Choice of :It moves right to the end of the string, switching as to bs and bs to as It then moves to the start of the string switching them back, and then it accepts. Choice of :It moves right to the end of the string and then moves to the start of the string, all the while not changing the string on the tape, and then it accepts.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
