Question: EXERCISE 3.2 Consider the alphabet ={a,b} and the language from Example 2.19.(1), i.e., L={anbn:nN}. (1) Build a TM M1 which given a string s over

EXERCISE 3.2 Consider the alphabet ={a,b} and the language from Example 2.19.(1), i.e., L={anbn:nN}. (1) Build a TM M1 which given a string s over (possibly with additional blank symbol \#) halts iff sL and goes forever iff s/L. If you find it necessary, you may allow M1 to modify the input string. (2) Modify M1 to an M2 which does a similar thing but always halts in the same state indicating the answer. For instance, the answer 'YES' may be indicated by M2 just halting, and ' NO ' by M2 writing some specific string (e.g., 'NO') and halting
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
