Question: Please use phython 2.7 if there is any code required. 2. (15 points) Create a Turing machine which works with only 3 symbols: 0,1 and

 Please use phython 2.7 if there is any code required. 2.

Please use phython 2.7 if there is any code required.

2. (15 points) Create a Turing machine which works with only 3 symbols: 0,1 and (blank), and which can determine whether the number of Os and 1s in a block are the same. In other words, the input tape is blank except for a block of Os and 1s. You may assume that the Turing machine head is pointing to the leftmost element of the block. If the number of Os and 1s in the block are the same, the Turing machine should halt and the final tape should be empty. If the numbers are different, the Turing machine should halt on a non-blank cell. Submit the state-transition graph for your Turing machine together with a non-trivial, sample n of your choosing ru 2. (15 points) Create a Turing machine which works with only 3 symbols: 0,1 and (blank), and which can determine whether the number of Os and 1s in a block are the same. In other words, the input tape is blank except for a block of Os and 1s. You may assume that the Turing machine head is pointing to the leftmost element of the block. If the number of Os and 1s in the block are the same, the Turing machine should halt and the final tape should be empty. If the numbers are different, the Turing machine should halt on a non-blank cell. Submit the state-transition graph for your Turing machine together with a non-trivial, sample n of your choosing ru

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!