Theory of Automata
Theory of Automata
Theory of Automata
MARCH-2023
THEORY OF AUTOMATA
TIME ALLOWED: 2.5 HRS FULL MARKS: 60
Answer to question no. 1 of group A is compulsory and to be answered first .this answer is to be made in
separate loose script(s) provided for the purpose. Maximum time allowed is 30 minutes ,after which the loose answer
scripts will be collected and fresh answer scripts for answering the remaining part of the question will be provided .On
early submission of answer scripts of Question no.1 ,a student will get the remaining script earlier.
Answer any five (05) Questions from Group B.
____________________________________________________________________________
GROUP-A
1. Choose the correct answer from the given alternatives (any twenty): 1X20
xiv) A grammar that generates two different parse trees for the same input string is known as
a) left recursive
b) ambiguous
c) right linear
d) left factored
xxiv) Which among the following is the root of the parse tree?
a) Production P
b) Terminal T
c) Variable V
d) Starting Variable S
GROUP-B
4. Convert the following Mealy Machine into its equivalent Moore Machine:
6. Find out the regular expression corresponding to the following Finite Automata.
8
7. a) Prove that the following grammar is ambiguous and remove ambiguity from the following grammar:
E -> E+E
E -> E*E
E -> id
S → a | aA | B
A → aBB | ε
B → Aa | b 8
9. Derive the string "aabbabba" for leftmost derivation, rightmost derivation and build derivation tree using a
CFG given by:
S → aB | bA
A → a | aS | bAA
B → b | bS | aBB 8