Professional Documents
Culture Documents
., '), ,, (\t
'-_J
PART A
(AtLsw er ALI questions)
-'= 20)
A-+aAlE
B->aBClb
C-+cClBlc
rB-a ^?C
,^{ZC\\
(l-)"a\^B''\L] c
iiai ,
-li* -Jt't
"{ :---j1,
-'tr!y'-/\ q\-.\
olt "U '\ rt
i ..' ,J "b-''
i, ,/'1,
^i,,
zy_..,
(b)
@@
What is meant by epsilon closure? Eliminate epsilon from the following
\i,-r'
NFS t*.-(a)
'\
and draw the NFA without ePsilon.
r ,(;!'
*tu-$|-gfio (q,i "1(1,,1)"
m. (a) Minimize the following DFA.
,L
)
\(' Il*,*, 1i::
,L
(.,\' ')
,') t'
'l') (b) Design a Moore Machine to calculate the residue mod 4 of a binary str"ing (5)
L', \'7 treated as a binary integer.
rv. (a) State and prove the pumping lemma for regular sets, 'i (s)
(b) Show that the Languag (s)
o" ln >
L = {(r) t} is not regular. i
OR
V. (a) Using Ardens Theorem, find the regular expression for the following DFA. (s)
-
l,--'
-\)
't *J- I i* ^ " *
'd.-\L,
r
I
S___-/ il (1 L I
' r of"-
i,-r t) r-i-+ tr [,
L d'r" 1( 'r il))
;
lf
! rui Prove that for every regular expression 'r' there is an equivalent NFA'M'. (s)
VL_ (a) Define a Fush Down Automata. . Design a PDA to accept: the language (7)
1={o'rln>l} '7 ,'.tri'
(b) Consider the grammar (3)
S -+ ABIC
A-+ aAbIqb
.4
! B *+ cBdlcd -Z
C -+ aCdl aDd
)
D -+ bDclbc
Find the left most derivation and parse tree for the string 'aabbccdd',
OR
VII. (a) Convert the following CFG to Chomsky normal fonn (4)
t,.\ S -+ abBl abAl a
B -+ Bblb
A -+ aAla
/\, (b) Explain the three methods used to simplifu context free grammars. (4)
a (c) What is an ambiguous grammar? Give an example. (2)
L
=
OR
[X. (a) Explain what you mean by: (31
(i) Multi+rack Turing machines.
'(ii) Multi-tape Turing maehines.
(iii) Uni'rersal Turing machines.
(b) What do you mean by recursive and recursively enumerable languages? (3)
(c) Design aTtirrngmachine to accept the Language r = oo(o + l). .
(4)
***