QB Toc
QB Toc
Using the Pumping Lemma for Context free grammars prove that L = { x E {0,1}, |x| is a perfect
square }.
2. With a neat diagram explain the Turing Machine, Write a Turing machine to accept 0n1n2n.
i) all strings over {a,b} that are even and odd palindromes.
B. Define Ambiguity. Consider the grammar E->E+E | E*E | (E) | id. Show that the grammar is
ambiguous.
5. Explain the following with examples. i) Decidability ii) Decidable languages iii) Undecidable
Languages.
6. Construct a Turing Machine that can accept the set of all even palindromes over {0,1}.
7. What is Turing Machine? Give a formal notation for a Turing machine explaining each of the
tuples. Design a Turing Machines which generates a set of string with equal numbers of 0’s and 1's.
i)Ambiguous Grammar
ii)Pare Tree
10. Obtain the LMD and RMD for the following grammar
S-> AbB
A->aA|€
B->aB/bB|€
D->a|€
14. Check whether the given language L = {xnynzn | n ≥ 1} is regular CFG or not.
16. Design Turing machine to accept the language L={an bn cn for n>=1}.