Flat 17-18
Flat 17-18
com
Registration No :
http://www.bputonline.com
http://www.bputonline.com
Q4 a) Design a minimized DFA for the regular expression (a*b)(a U b)* (8)
b) State and prove pumping lemma for Regular languages. Using pumping (5)
lemma prove that the language L={0n1n | n>=0} is not regular.
c) Differentiate between a deterministic Turing Machine and a non-deterministic (2)
Turing Machine.
Q5 a) Give the formal definition of Chomsky’s Normal Form (CNF). Define ambiguity (5)
in grammars with a suitable example.
b) Design the DFA’s for the language that accepts all strings (5)
i) Starting with 1 and ending with 0.
ii) Starting with 0 and having odd length or starting with 1 and having
even length.
c) Define Ackermann’s function. Using the function, find out the values of A (2,1) (5)
and A (2,2).
Q7 a) Design the NFA’s accepting strings over the alphabet {0,1} (5)
i) Not containing the substring 110.
ii) Containing the substring 110.
b) Design a PDA that recognizes the language L= {aibjck |i,j,k>=0 and i=j or i=k}. (5)
c) Show that the following functions are primitive recursive. (5)
i) f (x,y)= x*y
ii) f (x,y)= xy
http://www.bputonline.com