TOC May_Jun_2023
TOC May_Jun_2023
8
23
P-482 [Total No. of Pages : 2
ic-
tat
[6003]-701
5s
T.E. (Information Technology)
2:3
02 91
0:3
THEORY OF COMPUTATION
0
31
(2019 Pattern) (Semester - I) (314441)
6/0 13
0
Time : 2½ Hours] [Max. Marks : 70
6/2
.23 GP
8
2) Neat diagrams must be drawn wherever necessary.
C
23
3) Figures to the right side indicate marks.
ic-
16
tat
8.2
5s
.24
2:3
Q1) a) Eliminate useless symbols from the following grammar. [6]
91
49
0:3
S aA | bB
30
31
A aA | a
01
02
B bB
6/2
GP
b) Prove that CFL’s are closed under union, concatenation, Kleene’s closure.
6/0
[6]
CE
80
8
c) What is an ambiguous grammar? Explain with a suitable example. [6]
23
.23
OR
ic-
16
tat
Q2) a) Convert the following CFG to Chomsky Normal Form (CNF) [8]
8.2
5s
S aAbB
.24
2:3
A aA
91
49
0:3
B bB | b
30
31
b) Construct NFA for the following left linear regular grammar. [6]
01
02
S B1 | A0 | C0
6/2
GP
B B1 | 1
6/0
A A1 | B1 | C0 | 0
CE
80
C A0
.23
P.T.O.
.24
49
Q3) a) Design a Pushdown Automata for the language L={an b2n | n > 0}. [6]
8
23
b) Construct a PDA equivalent to the following CFG. [6]
ic-
S 0BB
tat
B 0S | 1S | 0
5s
c) Write a note on Post machine. [5]
2:3
OR
02 91
0:3
Q4) a) Design a Pushdown Automata which accepts only odd number of b’s
0
31
over å = {a, b} . Simulate PDA for the string “bbaba”.
6/0 13 [8]
0
b) Explain the acceptance by PDA [6]
6/2
.23 GP
i) By final state
ii) By empty stack
E
80
8
C
23
c) Define Push down Automata. [3]
ic-
16
tat
Q5) a) Design a Turing machine to accept language L = {an bn cn | n > 0}. [7]
8.2
5s
b) Write a short note on Post Correspondence problem. [5]
.24
2:3
c) Differentiate between Push Down Automata and Turing Machine.
91
[6]
49
0:3
OR
30
31
[8]
6/0
CE
80
8
23
.23
tat
8.2
OR
5s
.24
Q8) a) Show that for two recursive languages L1 and L2, L1 U L2 is also recursive.
2:3
91
49
[4]
0:3
[6]
6/0
CE
80
.23
16
8.2
.24
[6003]-701 2
49