Professional Documents
Culture Documents
No. of Printed Pages : 3 I lllllll illlll lll lllll lllll llll llll
GS-642 &8
vI semester B.C.A. Examination, MaylJune 2019
(CBCS - F+R) (201 6-17 & onwards)
COMPUTER SCIENCE
BCA 601 : TheorY of ComPutation
Time : 3 Hours Max' Marks : 100
Instntction : Anstuer all sections.
SECTION - A
Answer any ten questions. Each question carries two marks' LO)F.2=2O
P.T.O.
2 llill I llil lilll lill tlll
GS-642 I lllllil
SECTION - B
carries five marks' 5x5=25
Answer any Iive questions' Each question
of O's & L's ending with 1O1'
13. Construct a DFA to accept strings
L7. obtainaCFG(Contcxtfrecgrammcr)forthefollowingLangauge
f :-fanbnln 2 11t.
machine'
18. Explain Halting Problem of Trrring
/'*t-tO' o
1
.......*e9'__- t /,--:\
1r_-Q2
22. Minrmize the given DFA using table filling Algorithm.
6 0 1
A B D
-> B (- tr
C B tr
D C E
E E tr
(a) G:{V', T, P, Sl
v: {s}
T: (a' b)
Q-e
U-U
P:{S -+ aSlb}
(b) obtain a grammer to generate string S:{., b} having atleast one a.
-----*€3i-@''o
(c) Obtain a CFC} for the language.
L : {ri,,cu.R]we{a, b}*}
SECTION - D
Answer any one questions. Ix1O=1O
26. Contruct the NFA with tr-moves for
(0 + 1)* 1(0 + 1)
-oOo-