Automata
Automata
BTECH
(SEM IV) THEORY EXAMINATION 2021-22
THEORY OF AUTOMATA AND FORMAL LANGUAGES
SECTION A
1. Attempt all questions in brief. 2x10 = 20
Q.no Questions Marks CO
(a) Define Alphabet and String in Automata Theory. 2 2
(b) Give the definition of Deterministic Finite Automaton (DFA). 2 1
(c) Explain in brief about the Kleen’s Theorem. 2 2
(d) Define Context Free Grammar (CFG). 2 1
(e) Write the Context Free Grammar (CFG) for regular expression (0+1)* 2 3
(f) What are Right Linear grammar and Left Linear grammars? 2 3
(g) Discuss briefly about the Push Down Automata (PDA). 2 4
(h) What do you mean by Two stack Pushdown Automata? 2 4
(i) What do you mean by basic Turing Machine Model? 2 5
(j) What do you understand by the Halting Problem? 2 5
90
2
SECTION B
13
2. Attempt any three of the following: 10x3 = 30
_2
Q.no Questions
2.
Marks CO
P2
24
(a) Explain in detail about the Turing Church’s Thesis and Recursively 10 5
Enumerable languages.
2E
5.
(b) Prove that the Compliment, Homomorphism, Inverse Homomorphism, 10 2
.5
P2
|1
(e) Grammar G is given with the production S->aSS A->b. Compute the 10 1
5
8:
string w= aababbb with the Left most and Right most derivation Tree.
:2
13
SECTION C
3. Attempt any one part of the following: 10x1 = 10
2
BTECH
(SEM IV) THEORY EXAMINATION 2021-22
THEORY OF AUTOMATA AND FORMAL LANGUAGES
90
2
13
_2
2.
P2
24
2E
5.
Figure A
.5
P2
17
Q
SECTION A
A
g. Explain Two Stack PDA.
PT
SECTION B
.2
a. Construct a minimum state DFA from given FA
AR
62
M
5.
KU
11
5.
Y
|4
JA
27
VI
7:
R
:5
D
Fig. 1
08
b. Find the regular expression corresponding to the finite automata given bellow:
9
01
-2
ay
M
4-
|1
Fig. 2
P.T.O
Page 1 of 2
SECTION C
3. Attempt any one part of the following: 7x1=7
(a) Design FA for ternary number divisible by 5.
(b) Explain Myhill-Nerode Theorem using suitable example.
A
5. Attempt any one part of the following: 7x1=7
PT
(a) Design the CFG for the following language:
i) L = {0m1n | m ≠ n & m,n ≥ 1}
U
G
ii) L = {albmcn | l + m = n & l,m ≥ 1}
.2
AR
(b) Prove that the following Language L = {anbncn} is not Context Free.
62
M
5.
6. Attempt any one part of the following: 7x1=7
KU
11
R *
(a) Design a PDA for the Language L ={WW | W={a,b} }
(b) Generate CFG for the given PDA M is defined as
5.
Y
|4
M = ({q0, q1}, {0,1} {x, z0}, δ, q0, z0, q1) where δ is given as follows:
JA
δ (q0,0, x) = (q0, x)
R
:5
δ (q0, ε, x) = (q1, ε)
D
δ (q1, ε, x) = (q1, ε)
08
Page 2 of 2
B. TECH
(SEM IV) THEORY EXAMINATION 2017-18
THEORY OF AUTOMATA AND FORMAL LANGUAGES
Time: 3 Hours Total Marks: 70
Note: Attempt all Sections. If require any missing data; then choose suitably.
SECTION A
SECTION B
Fig.1
c. Reduce the given grammar G=({S,A,B},{a,b},P,S) to Chomsky Normal Form.
Where P is defined as:
S→ bA | aB
A→ bAA | aS | a
B → aBB | bS | b
d. What is Push Down Automata (PDA)? Design the PDA for the language
L = {wcwR│w{a,b}*}
e. Define Turing Machine (TM). Construct the TM for the language
L = {anbn│n>0}.
SECTION C
3. Attempt any one part of the following: 7x1=7
(a) Describe Mealy and Moore machines with example. Convert the given Mealy
machine as shown in Fig. 2 into Moore Machine.
Fig. 2
(b) Construct the minimum state automata equivalent to DFA described by Fig. 3
Fig. 3
4. Attempt any one part of the following: 7x1=7
p
(a) State Pumping Lemma for regular sets. Show that the set L={a | p is a prime} is
not regular.
(b) Discuss closure properties i.e. concatenation, union, intersection, complement
of regular languages.
5. Attempt any one part of the following: 7x1=7
(a) Discuss inherent ambiguity of context free languages with suitable example.
Construct the context free grammar that accepts language L={aibjck| i = j or j =
k; i, j, k are positive integers}.
(b) Define parse tree. Find parse tree for the string abbcde considering the
productions-
SaAcBe
AAb
Ab
Bd
Is this ambiguous? Justify.
6. Attempt any one part of the following: 7x1=7
(a) Differentiate between deterministic PDA (DPDA) and non-deterministic PDA
(NPDA) with suitable example. Also discuss two stack PDA with example.
(b) Construct a PDA equivalent to the following CFG productions:
S→aAA, A→aS│bS│a