Question: Design a Turing machine that, given a sequence of a ' s and b ' s on its tape followed by blanks, deletes the first
Design a Turing machine that, given a sequence of as and bs on its tape followed by blanks, deletes the first a or b and shifts all the following as and bs one position left, and halts.
The TM starts in state o with the head at the leftmost of the as and bs It is not important where the head winds up at the end, or in what state it halts. For example, given initial ID qoaab, it should halt with abBB... on its tape, and given initial ID qobabb, it should halt with abbBB... on its tape. Describe the algorithm of this TM
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
