Question: EXAMPLE 9 . 6 For = { 0 , 1 } , design a Turing machine that accepts the language denoted by the regular expression
EXAMPLE
For design a Turing machine that accepts the language denoted by the regular expression
This is an easy exercise in Turing machine programming. Starting at the left end of the input, we read each symbol and check that it is a If it is we continue by moving right. If we reach a blank without encountering anything but we terminate and accept the string. If the input contains a anywhere, the string is not in and we halt in a nonfinal state. To keep track of the computation, two internal states and one final state are sufficient. As transition function we can take
As long as a appears under the readwrite head, the head will move to the right. If at any time a is read, the machine will halt in the nonfinal state since is undefined. Note that the Turing machine also halts in a final state if started in state on a blank. We could interpret this as acceptance of but for technical reasons the empty string is not included in Definition
MY QUESTION. I think the anwer is wrong. Because the given transition function could accept empty string Isn't it
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
