Question: Design a Turing machine M that decides the language L = { 0 n 1 n | n > = 1 } . ( 1
Design a Turing machine M that decides the language L nn n Give a high level description of M in English. The following is an answer to this question. Please verify its correctness. Move right. If the current symbol is the blank symbol, halt and accept. Loop: If the current symbol is change it to $ and move right. Otherwise exit loop. Scan rightwards, past s and #s to find If found, change it to # and move left. Otherwise reject. Scan leftwards, past s and #s to find $ When finding the first $ move right, and go back to If the current symbol is # more right. Otherwise reject. Scan rightwards, past #s to find the blank symbol. When finding the first blank symbol, move right and accept.
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
