SE Sem 3 DSGT Solved Pyq 2017 Dec To 2023 December Pyqs
SE Sem 3 DSGT Solved Pyq 2017 Dec To 2023 December Pyqs
🎗️ 🎗️
KEEP SHARE THIS LINKS
👇👇👇👇👇👇👇👇👇👇👇👇
JOIN US TELEGRAM ALL LINKS FOR NOTES
⭐ 👉
1.CLICK TO JOIN CHANNEL @engineeringnotes_mu
⭐ 👉
2.CLICK TO JOIN GROUP @engineering_notes_mu
(1 mark)
(1 mark)
(1 mark)
(1 mark)
LHS =
= =
RHS = = (1 mark)
The left side matches the right side. Therefore, the statement holds for k+1.
By mathematical induction, the given statement is proved for all positive integers n.
Q1. b) Explain the term poset. Consider a set D165. Find the elements of this set & draw the Hasse
diagram for this poset.
Ans: POSET: Consider a relation R on a set S satisfying the following properties:
1. R is reflexive, i.e., xRx for every x ∈ S.
2. R is antisymmetric, i.e., if xRy and yRx, then x = y.
3. R is transitive, i.e., xRy and yRz, then xRz.
Then R is called a partial order relation, and the set S together with partial order is called a partially order
set or POSET and is denoted by (S, ≤). (1 mark)
(2 marks)
Q1. c) How many strings of length 7 either begin with 2 zeros or end with 3 ones?
Ans:
Bit Strings of length 7 either begin with two 0s or end with three 1s
= Strings of length 7 begin with two 0s + Strings of length 7 end with three 1s - Strings of length 7
either begin with two 0s or end with three 1s (1 mark)
Now Strings of length 7 either begin with two 0s or end with three 1s:
= Strings of length 7 begin with two 0s + Strings of length 7 end with three 1s - Strings of length 7
either begin with two 0s or end with three 1s
= 32 + 16 - 4
Thus 44 bit strings of length 7 either begin with two 0s or end with three 1s.
Q1. e) State the Pigeonhole principle and show that If there are 10 marbles in the jar & you have a
jar filled with red, green, and blue marbles, you'll always have at least two marbles of the same
color.
Ans:
Pigeonhole principle (2 marks)
If n pigeon holes are occupied by kn+1 or more pigeons, where k is a positive integer, then at least one
pigeonhole is occupied by k+1 or more pigeons.
In this case, let's consider the marbles as the items and the colors (red, green, blue) as the containers. If
you have 10 marbles and three colors, you are distributing the marbles into three containers.
Now, apply the Pigeonhole Principle: If you distribute 10 marbles into 3 containers, and
10>3, then at least one container must contain more than one marble. (1 mark)
In the context of the jar filled with red, green, and blue marbles, this means that you must have at least
two marbles of the same color. If you don't, you would need each color to have at most one marble, but
that's not possible because you have more marbles (10) than the number of colors (3). Therefore, there
must be at least one color with more than one marble, guaranteeing that you have at least two marbles of
the same color in the jar. (2 marks)
Ans:
i) A Group is a monoid, but it contains an extra inverse element, which is denoted by -1. An algebraic
structure (A, *) will be known as a group if it satisfies the following condition:
Closure: A is closed under operation * that means (a*b) belongs to set A for all a, b ∈ A
Associative: * shows an association operation between a, b, and c that means a*(b*c) = (a*b)*c for all a,
b, c in A.
Identity Element: There must be an identity in set A that means a * e = e * a = a for all a.
Inverse Element: It contains an inverse element that means a * a-1= a-1 * a = e for a ∈ A
(2 marks)
ii) Composition Table (2 marks)
+6 0 1 2 3 4 5
0 0 1 2 3 4 5
1 1 2 3 4 5 0
2 2 3 4 5 0 1
3 3 4 5 0 1 2
4 4 5 0 1 2 3
5 5 0 1 2 3 4
iii) (i )All the entries in the Composition table are elements of the set A. Hence A is closed with respect to
addition modulo 6(+6) (2 marks)
(ii)The composition +6 is associative. If a, b, c are any three elements of A, then
a +6 (b +6 c) = (a +6 b) +6 c
Let a = 1, b = 2, c = 3
1 +6 (2 +6 3) = (1 +6 2) +6 3
1 +6 5 = 3 +6 3
0=0
Hence, +6 is an associative operation. Since it is satisfying for all a, b, c, ∈ A
(iii) if a is any element of A, then from the composition table we see that
0 +6 a = a = a +6 0
0 +6 0 = 0 +6 0 = 0 0 +6 1 = 1 +6 0 = 1
0 +6 2 = 2 +6 0 = 2 0 +6 3 = 3 +6 0 = 3
0 +6 4 = 2 +6 4 = 4 0 +6 5 = 5 +6 0 = 5
∴0 is identity element.
iv) From the composition table we can also see the left inverses of 0, 1, 2, 3, 4, 5 are 0, 5, 4, 3, 2, 1,
respectively. Since,
0 +6 0 = 0 3 +6 3 = 0
1 +6 5 = 0 4 +6 2 = 0
2 +6 4 = 0 5 +6 1 = 0
Hence it is group
iv) All elements are having the inverses. Therefore all elements of set A are invertible. (2 marks)
v) The composition is commutative as the corresponding rows and columns in the position are identical.
Q2. b) Let A = {a1, a2, a3, a4, a5} and let R be a relation on A whose matrix is
MR=
(2 marks)
First we Compute W1 so that k = 1
∴ Check for column 1 and row 1 of W0
i j i j
p1 : (a1, a1) p2 : (a4, a1)
i j i j
q1 : (a1, a1) q2 : (a1, a4)
To obtain W,1 we must put 1’s in positions (a1, a1), (a1, a4) (a4, a1), (a4, a4)
(2 marks)
(2 marks)
(2 marks)
(2 marks)
Q3. a) A large software development company employs 100 computer programmers. Of them, 45
are proficient in Java, 30 in C#, 20 in Python, six in C# and Java, one in Java and Python, five in
C# and Python, and just onc programmer is proficient in all three languages above. Determine the
number of computer programmers that are not proficient in any of these three languages.
Ans.: Let U denote the set of all employed computer programmers and let J, C and P denote the set of
programmers proficient in Java, C# and Python, respectively. Thus:
|U| = 100
|J| = 45
|C| = 30
|P| = 20
|J ∩ C| = 6
|J ∩ P| = 1
|C ∩ P| = 5
|J ∩ C ∩ P| = 1 (2 marks)
the number of computer programmers that are not proficient in any of these three languages
Q3. b) Explain the terms Conjunctive & Disjunctive Normal Form with suitable examples.
Q3. c) Determine the sequence bn, whose recurrence relation is bn, = 2bn-1 + 1 with initial condition
b1 = 7.
Ans.: b1 = 7
b2 = 2 X b1 + 1 = 2 X 7 + 1 = 14 + 1 = 15
b3 = 2 X b2 + 1 = 2 X 15 + 1 = 30 + 1 = 31
b4 = 2 X b3 + 1 = 2 X 31 + 1 = 62 + 1 = 63 (2 marks)
Given rec. relation is
bn = 2bn-1 + 1
= 2(2bn-2 + 1) + 1
= 4bn-2 + 3
= 4(2bn-3 +1) + 3
= 8bn-3 + 7
= 8(2bn-4 +1) +7
= 16bn-4 +15
= 24bn-4 + 23 + 22 + 21 + 20
= ……………….
= 2n-1bn-(n-1) +2n-2 + 2n-3 + …… + 22 + 21 + 20
= 7x 2n-1 + (2n-2 + 2n-3 + …… + 22 + 21 + 20 )
Q4. a) What is a lattice? Determine whether following Hasse diagram represents a lattice
LUB: (3 marks)
៴ a b c d e f g h i
a a b c d e f g h i
b b b e d e h g h i
c c e c g e f g h i
d d d g d g i g i i
e e e e g e h g h i
f f h f i h f i h i
g g g g g g i g i i
h h h h i h h i h i
i i i i i i i i i i
GLB: (3 marks)
៴ a b c d e f g h i
a a a a a a a a a a
b a b a b b a b b b
c a a c a c c c c c
d a b a d b a d b d
e a b c b e c e e e
f a a c a c f c f f
g a b c d e c g e g
h a b c b e f e h h
i a b c d e f g h i
00000000 0 4 4 4 3 3 3 3
10111000 4 0 3 4 3 3 3 3
00101101 4 3 0 4 3 3 3 3
10010101 4 4 4 0 3 3 3 3
10100100 3 3 3 3 0 4 4 4
10001001 3 3 3 3 4 0 4 4
00011100 3 3 3 3 4 4 0 4
00110001 3 3 3 3 4 4 4 0
Error detection:
Encoding function e:B3→B8 can detect K or fewer errors if
min distance = k + 1
3=k+1
∴k=2
Error correction:
Ans:
Conditions for graph isomorphism:
Any two graphs will be known as isomorphism if they satisfy the following four conditions: (4 marks)
G1 = {V1, V2, V3, V4, V5, V6, V7, V8, V9, V10, V11}
G2 = {U1, U2, U3, U4, U5, U6, U7, U8, U9, U10, U11}
V1 = 1 U1 = 1
V2 = 2 U2 = 2
V3 = 4 U3 = 2
V4 = 2 U4 = 2
V5 = 2 U5 = 2
V6 = 2 U6 = 4
V7 = 3 U7 = 3
V8 = 1 U8 = 1
V9 = 1 U9 = 1
V10 = 1 U10 = 1
V11 = 1 U11 = 1
There is no degree sequence between G1 and G2 Hence the graph is not isomorphic. (2 marks)
Q5. a) If the addition & multiplication modulo 10 is defined on a set of integers
A={0, 2, 4, 6, 8}.Then determine whether this algebraic system is a ring.
(1 mark)
+10 0 2 4 6 8
0 0 2 4 6 8
2 2 4 6 8 0
4 4 6 8 0 2
6 6 8 0 2 4
8 8 0 2 4 6
(1 mark)
X10 0 2 4 6 8
0 0 0 0 0 0
2 0 4 8 2 6
4 0 8 6 4 2
6 0 2 4 6 8
8 0 6 2 8 4
Let a = 0, b = 2, c = 4
0 +6 (2 +6 4) = (0 +6 2) +6 4
0 +6 6 = 2 +6 4
6=6
Hence, +10 is an associative operation.
Since it is satisfying for all a, b, c, ∈ G
In summary:
f(x)=x2 is not injective.
f(x)=x2 is not surjective.
f(x)=x2 is not bijective.
Ans:
An Euler path, in a graph or multigraph, is a walk through the graph which uses every edge exactly once.
(1 mark)
An Euler circuit is an Euler path which starts and stops at the same vertex. (1 mark)
From Theorem 2, if a graph G has more than two vertices of odd degree, then there can be no Euler path
in G. In the given graph there are 8 vertices with degree 3, so the given graph does not have an Euler
path. (2 marks)
If a graph has n number of vertices, then the adjacency matrix of that graph is n x n, and each entry of
the matrix represents the number of edges from one vertex to another.
An adjacency matrix is also called a connection matrix. Sometimes it is also called a Vertex matrix.
Example:
Let A = {1, 2} and B = {4, 5, 6}
A × B = {(1, 4), (1, 5), (1, 6), (2, 4), (2, 5), (2, 6)}
iii) (goh)of
goh = g[h(x)] (1 mark)
= g(7x-2)
= 4(7x-2)2 + 1
= 4(49x2 - 14x - 14x + 4) +1
= 196x2 - 112x + 17
(goh)of = (goh)f(x) (1 mark)
= (goh) (x3)
= 196(x3)2 - 112(x3) + 17
= 196x6 - 112x3 + 17
iv) go(hof)
(hof)(x) = h[f(x)] (1 mark)
= h(x3)
= 7(x3) - 2
= 7x3 - 2
go(hof) = g(7x3 - 2) (1 mark)
= 4(7x3 - 2 )2 + 1