Question Paper Code
Question Paper Code
6. Design a DFA to accept the language. L = {w/w is of even length and begins with 01}.
Following are the various parameters for NFA
Q = {q0, q1, q2}
∑ = (a, b)
F = {q2}
δ (Transition Function of NFA)
(OR)
b) i) Construct a minimized DFA from the regular expression :
(11)* + (111)*. (8)
ii) Discuss the application of finite automata. (5)
12. a) Is the following grammar is ambiguous ? Justify your answer. (13)
E→ E + E | id.
(OR)
b) Convert Context Free Grammar (CFG) into Greibach Normal Form (GNF). (13)
G1 = {S→aA|bB, B→bB|b, A→aA|a}
G2 = {S→aA|bB, B→bB|ε, A→aA|ε}
13. a) Define the pushdown automata for language {anbn |n > 0}. (13)
(OR)
b) Describe the Equivalence of pushdown automata and CFL. (13)
14. a) Explain multi head and multi tape turing machines. (13)
(OR)
b) i) Design a turing machine which reverses the given string {abb}. (8)
ii) Describe the programming techniques for TM. (5)
16. a) Obtain a Greibach normal form grammar equivalent to the context free
grammar 0 | AA S → 1 | SS A → (15)
(OR)
b) Construct the Turing machine for the language { } 1 | 0 1 ≥ = n L n n. (15)
–––––––––––––