You are on page 1of 14

Paper / Subject Code: 31904 / Theory of Computer Science MAY-19

Time: 3 Hours Total Marks: 80

N.B.: (1)Question No.l is compulsory.


(2) Attempt any three questions from the remaining five questions.
(3) Make suitable assumptions wherever necessary but justify your assumptions.
1. (a) Diferentiate DFA and NFA. 05
-(b) Design a DFA to accept string of 0's and 1's ending with the string 100. 05

(c) Explain the applications of Regular Expressions. 05


05
(d) What are Recursive and Recursively Enumerable Languages?
2.(a) Design NFA for recognizing the strings that end in aa" over =fa,b} & convert 10
above NFA to DFA.
10
(b) Design moore m/c for following:
If input ends in '101' then output should be A, if input ends in 110' output should be
B, otherwise output should be C and convert it into mealy m/c.
10
3. (a) Obtain a regular expression for the FA shown below:

10
(b) Explain the types of Turing machine in detail.
two 10
4. (a) Design a turing machine that computes a function f(m,n)=mtn i.e. addition of
integers.
(b) State and explain pumping Lemma for Context Free Languages. Find out whether 10
the language L= {xy'zn2l} is context free or not.
5. (a) Design PDA for the following language: 10

L(M) =fwcww fa,b}*} where w" is reverse of w& c is a constant.


10
(b) Convert the following Grammars to the Chomsky normal form (CNF).
S’0A0 | 1BI| BB
A ’C
B’S|A
C’S|e
20
6. Write detailed note on (any two):
(a) Post Correspondence Problem
(b) Halting Problem.
(c) Rice's Theorem.

68476

00AQOED A9A02nr02oonsD ASDENTA Dr


DATE:

MAY 2019
Jbesign a beA Cept sthing of
endina aitt the shing
Sstes ehtrg
Accepted)
ehana Acepted)
ending th
oth Accepttd)

Aeeptcl
Pejeated

able

FOREDUCATIONAL USE
DATE:

Slaspam.

FOR EDUCATIONAL USE


PAN

is content fee OY Not

Take Valve h
n=|

h=2

Let Lbe a4 rejuler anjaye


Let 2 be Constent

Pmphy Z= Uv'w

layth

5Take Vales k

3<uw <S

OUV aysumphio,

OR EDCATIONAL USE
Gundaram)
2aDeenan NEA fex teceqntzing strog tlat
(aa oves
ndr fa?9 cohvet
ahove EA to DFA
Catb)aa

X 4-Cclau SGa&GD

CSundaram) FOR EDUçATIONAL USH


M

qo A

ABA
B D
DA

FOR EPCATIONAL USE


Sundaram
2A Deorgn Moore 2
Me for He
n o1) her
follaya
tpchold
TE mpt ende
be B, otenutre otpt Sould Locad conet

do1A

33

1 o11oo/.

46

A
q2doo 22/1o1
q3

FOR EDUCATIONAL USE


Sundaram)
Lu

C
3
93

Sundaram) FOR EDUCATIONAL USE


Meoly
MAF: Q
1

42
93

A q2

Sundaram FOR EDUCATIONAL USE


Falan i i
to CNF

Ac

gteee
Rema epila
S3oAo<ieL| 68loo

Reme Unwatel

Bss

hoh teiahy
kae ce

FOR EDUCATIONAL USE


Sundaramy
S3oAolBL|BP_/o0
B SA

bfe tpsito
A
epsb

PS

A will be
vemoelt

Sundaran) FOR EDUCATIONAL USE


May-.

Cbtab)

C,blb tab) a
at b btab aa
(atb( b ta, ) ac

FOR EDUCATIONAL USE

REEGAL
DATE

TM that tucha
e cdaihon
ih te

, ), 2

B, E, R,

FOR EDUCATIONAL USE

REEGAL
DATE

FOR EDUCATIONAL USE

REEGAL

You might also like