Question: Let = { 1 , 1 , , # } . Provide a formal level description of a input - output TM computing the following
Let # Provide a formal level description of a inputoutput TM
computing the following function
On input w in find the first occurrence the substring # replace that with
a and insert a right before the # pushing the rest of the string to the right
If w did not have any such substring, change nothing output w
For example, on input ## # the output should be # # #
Dont forget to give an informal explanation of how your TM works a formal
proof not required
b Provide the complete sequence of configurations of your TM when started on the
above example input, ## #
Note not necessary for solving the above: the motivation for this question is that
this is a simplified version of one of the steps we would implement when simulating a
ktape TM with a single tape TM as we did in class the edge case where we move
to the right but see a # telling us we need to insert a blank before it as the reading
head in the multitape TM now points to a blank from the infinite portion we had not
previously readched
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
