P17CS43 HSC
P17CS43 HSC
1
U.S.N
Fig Q1(b)
c. Convert the following €-NFA into its equivalent DFA and hence state the language
recognised by the same.
Fig Q1(c)
UNIT - II 18
2 a. Write regular expression for the following regular languages over ∑ = {a, b}
i) Ends with either abb or aba or aab
9
ii) L = {ai bj│(i+j) is even}
iii) │W│mod 3 = 2
Contd…2
P17CS43 Page No... 2
b. State and prove pumping lammra for regular languages. 9
c. Prove that for every regular expression ,R, representing the regular language L(R), there is
9
an equivalent DFA,M such that L(M) = L(R).
UNIT - III 18
3 a. Write CFG for the following CFLs:
i) L={ai bj ck│i =j or j=k or k=i}
9
ii) L={ai bj ck│i=3(j +k)}
iii) Palindrome over ∑={a ,b}
b. Define ambiguous grammar and hence prove that the following grammar is ambiguous
9
E→E+E│E*E│id
c. Convert the given CFG into its equivalent PDA
9
E→E+E│E*E│id
UNIT - IV 18
4 a. Design PDA for the following CFL L={aibjck│i=j+k} 9
b. Design PDA to recognise the CFL, L={W €{a,b}*│na(W)= nb(W)}. State whether the
9
resultant PDA is DPDA/NPDA. Justify your answer.
c. Define PDA, Instantaneous description a PDA and language accepted by PDA. 9
UNIT - V 18
5 a. Design TM to recognize the language L = {anbncn│n ≥ 0} 9
b. Explain any two extensions of TM. 9
c. Explain recursively enumerable languages and post’s correspondence problem. 9
****