TOC Insem Sep - 2023
TOC Insem Sep - 2023
8
23
P-5341 [Total No. of Pages : 3
ic-
tat
[6187]-426A
7s
5:5
T.E. (Computer Engineering) (Insem.)
02 91
0:4
THEORY OF COMPUTATION (Theory)
0
31
5/0 13
(2019 Pattern) (Semester - I) (310242)
0
9/2
Time : 1 Hour] [Max. Marks : 30
.23 GP
8
C
23
2) Neat diagrams must be drawn whenever necessary.
ic-
3) Figures to the right indicate full marks.
16
tat
4) Assume suitable data, if necessary.
8.2
7s
.24
5:5
91
Q1) a) Draw FA for the following language over {0. 1} [8]
49
0:4
30
b) Covert following NFA into equivalent DFA and perform DFA minimization
5/0
[7]
CE
80
8
Q/ 0 1
23
.23
P
ic-
{P, Q} {P}
16
tat
Q {R} {R}
8.2
7s
.24
R {S} --
5:5
91
49
0:4
S* {S} {S}
30
31
OR
01
02
Q2) a) Construct DFA for checking “whether a string over alphabet {a, b} contains
9/2
GP
M = (Q, , , , q0) where Q = {q0, p0, p1), = {0, 1), = {y. n} and
16
P.T.O.
.24
49
Input / Output
8
23
States 0 1
ic-
q0 p0/n p1/n
tat
7s
P0 p0/y p1/n
5:5
02 91
P1 p0/n p1/y
0:4
0
[5]
31
c) 5/0 13
Convert the following DFA to its Minimized form (Minimization of DFA).
[5]
0
9/2
.23 GP
E
80
8
C
23
ic-
16
tat
8.2
7s
.24
5:5
91
49
0:4
Q3) a) Prove that LHS RE is equivalent to RHS RE
30
31
of {0,1}* [6]
GP
8
23
iii) The language of all strings that do not end with 01.
.23
ic-
c) Write a note on Myhill Nerode theorem. [4]
16
tat
OR
8.2
7s
Q4) a) Construct Regular expression for following DFA using Ardens theorem.[7]
.24
5:5
91
49
0:4
30
31
01
02
9/2
GP
5/0
CE
80
.23
16
8.2
.24
[6187]-426A 2
49
b) i) Write regular expression for a set of strings of 0s and 1s with even
8
23
number of 0s.
ic-
ii) Write regular expression for a set of strings of 0s and 1s containing
tat
odd number of 1s.
7s
[4]
5:5
02 91
c) Choose any one option given below and give the justification “The regular
0:4
expression 0*(10*)* denotes the same set as” [4]
0
31
i) 5/0 13
(1*0)*1*
0
9/2
ii) 0+(0+10)*
.23 GP
8
iv) none of these
C
23
ic-
16
tat
8.2
7s
.24
5:5
91
49
0:4
30
31
01
02
9/2
GP
5/0
CE
80
8
23
.23
ic-
16
tat
8.2
7s
.24
5:5
91
49
0:4
30
31
01
02
9/2
GP
5/0
CE
80
.23
16
8.2
.24
[6187]-426A 3
49