TOC-TECSE-DEC15
TOC-TECSE-DEC15
of Printed Pages:3
SUBJECT CODE :- 114
FACULTY OF ENGINEERING AND TECHNOLOGY
T.E.(CSE/IT) Examination Nov/Dec 2015
Theory of Computation
(Revised)
[Time: Three Hours] [Max. Marks: 80]
m
“Please check whether you have got the right question paper.”
N.B i) Q.No.1 and Q.No.6 are compulsory.
ii) Attempt any two questions from Q.No.2 to Q.No5 and two questions from Q.No.7 to Q.No.10 of each section.
iii) Figures to the right indicate full marks.
SECTION-A
.co
Q1. Attempt any five from the following 10
1) Define deterministic finite automata with suitable example
2) Determine the regular expression or language given by the following finite automata.
a
q0 a, b
q1
3)
4)
5)
6)
7)
8)
b
Define derivation tree in CFG
a,b a, b
q1 q3
q0
b
ue
b a
q2 q4
a 07
b) Construct a more machine which is equivalent to the mealy machine described by the following transition
diagram.
m
0/y
P0
0/n
q0 1/n 0/n
Ba
1/n
P1
K-2015
ac4fd94faaab640f273021ebf8423dad
States/𝜖 a b
→ 𝑞0 {𝑞0 , 𝑞1 } {𝑞2 }
𝑞1 {𝑞0 } {𝑞1 }
m
𝑞2 - {𝑞0 , 𝑞1 }
Q.4 a) Construct a minimum state automation equivalent to a DFA whose transition table is defined by following 08
table.
.co
States a b
→ 𝑞0 𝑞1 𝑞2
𝑞1 𝑞4 𝑞3
𝑞2 𝑞4 𝑞3
𝑞3 𝑞5 𝑞6
𝑞4 𝑞7 𝑞6
ine
𝑞5 𝑞3 𝑞6
𝑞6 𝑞6 𝑞6
𝑞7 𝑞4 𝑞6
SECTION-B
Q.6 Attempt any five questions from the following 10
1) Deterministic PDA.
2) Explain the two normal forms for CFG.
3) State the application of TM.
4) Define unit production and null production in CFG.
m
K-2015
ac4fd94faaab640f273021ebf8423dad
Q.8 a) Design a Turing machine to recognize all strings consisting of an even number of is 08
b) Show that 𝐿 = {𝑎𝑝 |𝑃 𝑖𝑠 𝑝𝑟𝑖𝑚𝑒 } is not context free. 07
Q.9 a) Explain deterministic PDA. How does it differ from non deterministic PDA? 08
m
b) Explain in detail the model of linear bounded automata 07
.co
3) PDA and acceptance by PDA.
ine
ng
ue
m
Ba
K-2015
ac4fd94faaab640f273021ebf8423dad