Theory of ComputationTE IT (End Sem) (2019 PAT) (Sem I) May 2024
Theory of ComputationTE IT (End Sem) (2019 PAT) (Sem I) May 2024
:
PB-3858
[Total No. of Pages : 2
:18
[6262]-121
:46
09
T.E.(Information Technology Engineering)
1
24
Theory of Computation
16 30
/20
(2019 Pattern) (Semester-I) (314441)
1
/05
8.2 01
Time : 2½ Hours] [Max. Marks : 70
.13 GP
:18
4) Assume suitable data, if necessary.
:46
20
09
Q1) a) What is an ambiguous grammar? Explain with a suitable example. [4]
1
24
16 30
S AB
.13 GP
26
A BSB | BB | b
3.1 CE
B aAb| a
OR
99
:18
Q2) a) Write CFG for the language L= { ai bj ck | i = j + k & j, k >=1 } [6]
:46
09
1
S 0A | 1B | 0 | 1
24
16 30
/20
A 0S | 1B | 1
1
/05
B 0A | 1S
8.2 01
Q3) a) Define Push down Automata. Explain different types of PDA. Explain.
3.1 CE
P.T.O.
c) Convert the following CFG to PDA that accepts the same language by
empty stack. [6]
:18
S 0S1 | A
:46
A 1A0 | S |
09
1
OR
24
16 30
/20
Q4) a) Compare Finite Automata and Pushdown Automata. [4]
1
/05
b) Design a Pushdown Automata for the following language. [7]
8.2 01
L={0a1b2c | a+c=b}
.13 GP
26
:18
c) Define Turing machine and design a right shifting TM over alphabet {0,1}
:46
20
09
1
OR 24
16 30
/20
input string. Write down transition table along with diagram. [10]
8.2 01
.13 GP
Q7) a) What do you mean by NP problems? Justify why the Travelling Salesman
:18
:46
09
OR
1
/05
8.2 01
20
[6262]-121 2