Question Bank - TOC
Question Bank - TOC
4) Identify the regular expression for the set of all strings ending in aa over Σ ={a,b}
6) Identify the regular expression for set of all strings such that number of a’s divisible
by 3 over Σ = {0,1}
9) Suggest True or False: An unrestricted grammar is the most powerful type of grammar
in Chomsky’s hierarchy?
10) Justify True or False : Chomsky’s hierarchy consists of four types of grammars?
12) Define Alphabet and String in Automata Theory. Explain the term Epsilon transition.
14) What are Right Linear grammar and Left Linear grammars?
16) State the reason or explain the reason for using Normal forms in grammar
17) Write down instantaneous description or configuration of a TM?
31) Define the languages generated by a PDA using final state of the PDA and empty stack
of that PDA
32) Is it true that non – deterministic PDA is more powerful that deterministic PDA?Justify
Draw graphical representation for PDA
LONG ANSWER QUESTIONS
2. Let L be a set accepted by an NFA.Then prove that there exists a deterministic finite
automaton that accepts L.Is the converse true? Justify your answer.
6.Obtain the regular expression that denotes the language accepted by the following DFA.
7.Construct a derivation tree for the string 0011000 using the grammar
8. Let the production of the grammar be S-> 0B | 1A, A-> 0 | 0S | 1AA, B-> 1|1S | 0BB.for
the string 0110 find the right most derivation.
9. State pumping lemma and hence find whether the given language is regular or not L={a m b
n
|m>n}
S → abSb/a/aAb
A →bS/aAAb
11. Design CFG for Regular Expression r = ( a+ b)* bb ( a+ b)* which is free from ε
production.
12. Construct PDA for the language L(G) = { w | w ∈ (a,b) and w is of form anb2n,n≥ 1 }.Also
mention the state transitions of this PDA while parsing the string w=’aabbbb’.
13. Construct PDA for the language L(G) = { wwR|w∈ (0,1)+ }.Explain how does this PDA
work for the input ‘001100’.Also verify the nature of this PDA deterministic or
nondeterministic.
14. Construct Turing machine to accept the following language L(G) = { w | w ∈ (0,1) and w
is of the form 0n1n where n≥ 1 }.
18.Show that the regular language are closed under : Union , Intersection, Kleene closure.
19.Define PDA using conventional notations
20.Design a NFA accept the following strings over the alphabets {0,1} that begins with 01
and ends with Check for the validity of 01111 and 0110 strings.
21.Convert the following ε -NFA to NFA and then convert the resultant NFA to DFA.
23.Explain Pumping Lemma for Regular Languages and its Application with examples
27.Define Deterministic PDA.Is NPDA and DPDA equivalent? Illustrate with an example
28.Explain the universal Turing machine with its significance. Also explain the construction
of Universal Turing machine with example..
29.Explain class P, class NP, NP-complete and NP-hard problem with examples in detail.
30. Construct the Grammar with the productions E → E+E E→id Check whether the yield
id + id + id is having the parse tree with root E or not.
31. What are the different ways in which a PDA accepts the language? Define them. Is a true
that non deterministic PDA is more powerful than that of deterministic PDA? Justify your
answer.