19ecs303 - Formal Languages and Automata Theory
19ecs303 - Formal Languages and Automata Theory
Page 1 of 3
j) Define a Universal Turing Machine.
Section-B
Answer the following: (58=40)
UNIT-I
2. a) Design a DFA over ∑= {0, 1} for the language, L= {w | w contains
the sub-string “01"}. 4M
b) Differentiate between DFA and NFA. 4M
OR
3. Convert the given є- NFA to NFA without epsilon moves.
UNIT-II
4.
Page 2 of 3
Consider the given two machines M1 and M2, answer the following
questions.
a) Give the acceptance states.
b) Write the sequence of states for the string ‘aabba’.
c) Does the machines accepts the string ‘aabb’. Justify your answer.
d) Does the machines accepts ε.
OR
5. Find at least four strings of minimal length over ∑={0, 1}, that is not in
the language corresponding to the given regular expression:
10*+(0+11)0*1*.
UNIT-III
6. a) Write a short notes on Chomsky Hierarchy. 4M
b) Write the grammar which accepts even length palindromes over
Ʃ = {0,1}. Construct the parse tree for the string ‘110011’. 4M
OR
7. Is the language L ={anbncn|n>=0} a CFL or not? Justify your answer.
UNIT-IV
8. Construct the PDA which accept L={anb2n | n>=0}.
OR
9. Construct the PDA for accepting palindrome.
UNIT-V
10. Design Turing Machine for the language L= {0n1n2n | n>=1}.
OR
11. Write a short note on Universal Turing Machine.
[8/V S/122]
Page 3 of 3