Question: a ) Design a Turing machine to accept the following language over the alphabet { 0 , 1 } : contains twice as many 1

a) Design a Turing machine to accept the following language over the alphabet {0,1} :
contains twice as many 1 s as 0s
Show how the Turing machine processes the string 110011.
b) For a tape containing an integer k in unary form, construct a TM to replace its input by
f(k)=k+4
c) For a tape containing an integers i and j in unary form separated by a blank b, construct a
TM to replace its input by f(i,j)=i+j
d) Construct a TM to recognise inputs over the alphabet {a,b} containing the substring bab
e) Design a Turing machine to accept the following language over the alphabet {0,1,2} :
L={0n1n2n|n1}
f) Design a Turing machine to recognise the following language over the alphabet {0,1} :
L={ww-1|win{0,1}**} and w-1 is w reversed.
 a) Design a Turing machine to accept the following language over

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!