2018 Toc Itc
2018 Toc Itc
COMPUTATION
THEORY OF Max. Marks: 50
CO-303
Assume sultable
Time: 3:00 Hours each questlon.
parts from
Note: Answer all questtons
by selecting any two
mlssing data,Ifany 2X5=10
QNo. 1 decimal o
check that the
finite.state machine which
can
A) Design a
is divislble by 5 and also
write a regular
given binary string + m) is even}
L={a"b"|(n
expression for the language
expression(RE
theorem? Construct
a regular
B) What is Arden's theorem
the following FA using Arden's
corresponding to
a,b
b
made up of letter
machine that will read sequence
except when an
moore
C) Design characters
a,e,i,o,u and will give
as output same also design meal
'e', it will be changed to 'u'.
is followed by
machine for the same.
ZX5=1
QNo. 2
PTo
24 5-
2X5=10
Q.No. 3 expression? Show thet s
regular
lemma for
is pumping not regular.
A) What nsm) Is
LF {0"1"|
anghage
lemma for
Context Free Language (CI
Pumping
B) Stateand
prove
grammar(CFG)
which accepts the lanou guage L=
Contert free
Write a
C)
(o'1/2| k slor k S]}
2X5=10
Q.No. 4
A) to CNF
Convert the following grammar
Sabsbja JaAb,-A> bS[aAAb
to GNF
Convert following CFG
ASbA|SS, Aba
SaASI a,
language(CFL).
C) Design push down automata(PDA) for the following Language
. L ( a bm a| m, nz 1}.
2X5-10
Q.No. 5
PTO
M7
0.8 0.2 0
0.10.8 0.1
PY/X]= 0 0.2 0.3
Q.No. 1 2X7=14
A) Construct a DFSA for strings over (0, 1) which accepts strings those have exactly
two zero's anywhere.
1 0,1
g2
C) Design a Mealy machine which reads the input from (a + b) and produces
following outputs:
If input ends at "aba", output is A
ii. If input ends at "aab", output is B
iii. Otherwise output is C
Q.No. 2
A) Construct a Moore Machine equivalent to 2X7=14
given Mealy Machine as below
Present Next 0/P Next
State state
0/P
state
Input=a Input=b
g0 g3 a q1
q1 q1 q2
q2 g2 a
q3 a
g3 g3 g3
B) Given a
regular expression
moves, then eliminate null ((00+01)* (11+10) (+1))*. construct NFA with null
moves from the
same.
C) Explain Pumping lemma for context free
grammar is ambiguous Language and show that
followings
SA B|b , A aAB|ab B abB|¬
Q.No. 3 2X7=14
A) What is pumping lemma for regular expression? Show that the language L={a* ba c*
n21} is not regular.
B) Design a Turing Machine(TM) to recognize strings having equal number of a's and
b's.
C) What is context free grammar? Write CFG which accepts the language L =
(0'1/oty >i+k}.
Q.No.4 2X7=14
Q.No.5
2X7=14
A) Explain Chomsky's Hierarchy of
grammars with suitable examples
production rules of following CFG to find an and consider
Normal Form(GNF). equivalent grammar in Greibach
SS+S/S*S
Sb
Sa