Write regular expression over {a,b} that represents a. Strings having exactly two a's and at least two b's. b. Strings having an even number of a's and each a followed by at least one b.[5]
2.
Using pumping lemma, prove that the language is not regular.
L={aibjck∣j=i+k}
[5]
Turing Machines
1.
How does Turing machine accept a string? Design a Turing Machine over the alphabet {0,1,a} that processes the string defined by L = {a01a,a10a,a0101a}. Show both transition diagram and table. Show acceptance of a0101a.[10]
2.
Design a Turing machine that computes a function f(n)=0.[5]