
Automata Theory and Computation Techniques
Faculty: POOJA AGARWAL No. Of Hours: 52 Sessions
QUESTION BANK
INTRODUCTION TO THEORY OF COMPUTATION AND FINITE AUTOMATA
OBJECTIVE: This chapter introduces automata theory, finite automata, and the class of languages known
as regular languages. These languages are the ones that can be described by finite automata.
1. Define equivalency of grammars. 5*
2. Define a) Language (L) b) Sentence c) Complement (L’) d) LR e) L1.L2 f) Ln g) L* h) L 10
3. Prove by induction |uv| = |u| + |v| 5*
4. Use induction on the size of S to show that if S is a finite set |2s| = 2|s|
Give the grammar that generates the language 4
5. L = {an bn+1 : n ≥ 0} Derive the string aaabbbb from the grammar 5
6. Given the following grammars and corresponding languages, show that the language is
indeed generated by the grammar.
G = ({s}, {a,b}, S, {s -> aSb, S -> λ})
L(G) = {anbn : n ≥ 0}
G = ({s}, {a,b}, S, {S -> SS, S -> λ, S -> aSb, S -> bSa})
L(G) = {w : na (w) = nb(w) } 5*
7. Define equivalency of grammars. 5*
8. Explain different units of automata. Explain the terms 1) Configuration 2) Move
3) Transition functions 6
9. Define acceptors & Transducers. 6
10. Write a note on applications of formal languages and automata. 6
11. Explain the operation of a Deterministic Finite Acceptor (DFA) with a diagram. 5*
12. Give the formal definition of DFA? Explain transition graph? Give an example. 5*
13. Define extended transition function ()? Define transition table. 5
14. Define language accepted by DFA? 5*
15. Derive the DFA that accepts the language L = {anb : n >=0} 6
16. Find the DFA that recognizes the set of all string on Σ = {a,b} starting with the
prefix ab 5*
17. Find the DFA that accepts all strings on alphabet {0,1} except those containing
Substring 001 5
18. Define a regular language. 4
19. Show that the language L = {awa : w{a,b}*} is regular ? Also show that L2 is regular? 6
20. Define the transition table, transition diagram, transition function DFA.
Which accepts strings which have odd number of a’s and b’s over the alphabet {a,b}
Which accepts strings which have even number of a’s and b’s over the alphabet {a,b}
Which accepts all strings ending in 00 over {0,1}
Which accepts all strings having 3 consecutive zeros
Which accepts all strings having 5 consecutive zeros
Which accepts all strings having even number of symbols 12
21. What language does grammar with these productions generate? S-> Aa,
A-> B, B-> Aa 5
22. Prove that (L1L2)R = L2RL 5
23. Give the formal definition of NFA. 5
24. Distinguish between NFA & DFA. 5
25. Define extended transition function for NFA. 5
26. Define language accepted by a NFA. 5
27. Define dead configuration in case of NFA. 5
28. What are the advantages of non-determinism? 5