TOC Paper1
TOC Paper1
-Dc
[This question paper contains 7 printed pages)
Your Roll No.
Semester :V
Section -A
START REJECT
a,A
b
ACCEPT READ PUSH a READ READ
b
b
b, A
REJECT4 POP
b
a
a, b A
POP READ
ACCEPT REJECT
PTO.
7407
Describe the halting problem. 3
(i)
Let M-(K, E,8, s, (h), where
G)
K(q.q,,h)
E fa,b, U,º)
S
the following table:
and Sis given by
S(g, o)
(9,, b)
b (g,, a)
(h, U)
eutput
Go
(Go --’)
( , sbba ab)
b
T407
Section -B
(a) ob ba )
7407
of onlya's, n=length(S),
at! DA {Sba*l; S is a string
nl}
5
the following CFG to CNF:
5. (i) Convert
’E +E
E
E *E
aped
E ’
E ’ (E)
E’6|7
terminals here are + *( 067.
The
recursive languages are closed
(ii) Prove that the 5
under complementation.
Machine that scans to the
(i) Design aTuring consecutive a's and
6. finds two Turing
right until itThe alphabet of the 5
then halts. fa, b,U, A}.
machine should be closed
context-free languages 5
(ii) Prove that and concatenation.
under Union
7407
L
b
b(atb) *a
7 1300