QB Flat
QB Flat
UNIT I
Introduction To Finite Automata
1. a) Consider the below finite automata and check the strings are accepted or not
b) Define NFA. What are the differences between DFA & NFA?
FLAT Page 1
QUESTION BANK 2023
4. Convert the following Mealy machine into its equivalent Moore machine.
A C 0 B 0
B A 1 D 0
C B 1 A 1
D D 1 C 0
FLAT Page 2
QUESTION BANK 2023
FLAT Page 3
QUESTION BANK 2023
UNIT II
Regular Languages
FLAT Page 4
QUESTION BANK 2023
8.
State Arden’s theorem and construct the regular expression for the following FA usingArden’s
theorem.
9. a)Write the process of equivalence two FA’s? Find whether the equivalence two FA’s or not.
FLAT Page 5
QUESTION BANK 2023
UNIT III
Context Free Grammars and Languages
1. Write the procedure and Eliminate left recursion from the following Grammar
EE+T/T
TT*F/F
F(E)/id
2. a) Explain about derivation and parse trees? Construct the string 0100110 from the Leftmost
and Rightmost derivation.
S0S/1AA
A0/1A/0B
B1/0BB
b) Find the parse tree for generating the string 11001010 from the given grammar.
S1B/0A
A1/1S/0AA
B0/0S/1BB
3. a) Define Ambiguous grammar.
b) Remove Left recursion from the grammar SSab/T
TTcd/F
FFa/G
4. a) Explain Left recursion and Left factoring.
b) Perform left factor from the grammar AabB/aB/cdg/cdeB/cdfB
FLAT Page 6
QUESTION BANK 2023
UNIT IV
Pushdown Automata
1. a) Construct a PDA which recognizes all strings that contain equal number
of 0’s and 1’s.
b) A PDA is more powerful than a finite automaton. Justify this statement.
2. Construct PDA from the following Grammar.
S aB
B bA/b
A aB
3. Construct PDA from the following Grammar
S0BB
B0S/1S/0
Show an ID for the string 010000 is generated for PDA?
4. Construct a CFG equivalent to the following PDA.
PDA={(p, q), (0, 1), δ, p, q, (Z, X)}, where p is initial state, q is final state.
δ is defined as δ(p,0,Z)=(p,XZ), δ(p,0,X)=(p,XX), δ(p,1,X)=(q,ϵ), δ(p,1,X)=(p,ϵ), δ(p,ϵ,Z)=(p,ϵ).
FLAT Page 7
QUESTION BANK 2023
UNIT - V
Turing machines & Undecidability
FLAT Page 8