Discrete Assign
Discrete Assign
Y = {y | y = 2 x, x ÎX}, Z = {z | z2 – 9 z + 14 = 0}
Enumérate:
(1)X Ç Y (2) Y È Z (3) X – Z
(4)Yc (5) Xc – Zc (6) (X – Z) c
SOLUTION:
Sets:-
U = {1, 2, 3, …, 10}
X = {1, 2, 3, 4, 5}
Y = {y U| y = 2 x, x X}
= {2, 4, 6, 8, 10}
Z = {z U | Z2 – 9 z + 14 = 0}
= {2, 7}
(1) XÇY
Solution:-
X Y = {1, 2, 3, 4, 5} {2, 4, 6, 8, 10}
= {2, 4}
(2) YÈZ
Solution:-
Y Z = {2, 4, 6, 8, 10} {2, 7}
= {2, 4, 6, 7, 8, 10}
(3) X–Z
Solution:-
X – Z = {1, 2, 3, 4, 5} – {2, 7}
= {1, 3, 4, 5}
(4) Yc
Solution:-
Yc = U – Y = {1, 2, 3, …, 10} – {2, 4, 6, 8, 10}
= {1, 3, 5, 7, 9}
(5) X' – Z'
Solution:-
X' – Z' = {6, 7, 8, 9, 10} – {1, 3, 4, 5, 6, 8, 9, 10}
= {7}
(6) (X – Z)'
Solution:-
(X – Z)' = U – (X – Z)
= {1, 2, 3, …, 10} – {1, 3, 4, 5}
= {2, 6, 7, 8, 9, 10}
Q2:- Given the following universal set U and its two subsets P and Q, where
U = {x | x Î Z,0 £ x £ 10}
P = {x | x is a prime number}
Q = {x | x2 < 70}
(i) Draw a Venn diagram for the above
(ii) List the elements in Pc Ç Q
Solution:-
Sets Tabular Form:-
U = {x | x Z, 0 x 10}
So we have
U= {0, 1, 2, 3, …, 10}
P = {x | x is a prime number}
P = {2, 3, 5, 7}
Q = {x | X2 < 70}
Q= {0, 1, 2, 3, 4, 5, 6, 7, 8}
(1)
0,1,4,6,8 P
0,1,4,6,8 Q
9,10
(2) Pc Ç Q
Pc = U – P = {0, 1, 2, 3, …, 10} - {2, 3, 5, 7}
= {0, 1, 4, 6, 8, 9, 10}
now
Pc Q = {0, 1, 4, 6, 8, 9, 10} {0, 1, 2, 3, 4, 5, 6, 7, 8}
= {0, 1, 4, 6, 8}
Membership table:-
(a)
U
A B
1 2 3
4
A-B={1}
(b)
A B U
1 2 3
4
A-(A-B)={2} which is shaded
(c)
A B U
1 2 3
4
A B.={2} which is shaded
(ii) (A Ç B)c = A c È B c
LET A={1,2}
B={2,3}
Membership table:-
Part (a):-
U
A B
1 2 3
4
AB
Part (b) U
A B
1 2 3
4
(A B)c
Part(c):-
A B U
1 2 3
4
A compliment is shaded
Part (d):-
A B U
1 2 3 B compliment is shaded
Part (e):-
A B U
1 2 3
4
A c È B c is shaded
(iii) A – B = A Ç Bc
Part (a):-
A B U
1 2 3
A–B
Part(b):-
A B U
1 2 3
4
Bc is shaded
Part(c):-
U
A B
1 2 3
4
A Ç B c is shaded
7
C
(ii):-
Given
• # students using package B = 2 (# students using package A)
• Now the number of students which used package B and A are clear from the
diagrams given below. So we have the following equation
3 + 10 + 26 + y = 2 (8 + 3 + 10 + x)
39 + y = 42 + 2x
or
y = 2x + 3 …………(1)
Also, total number of students = 100.
Hence,
8 + 3 + 26 + 10 + 7 + 28 + x + y = 100
Or
82 + x + y = 100
Or
x + y = 18 …………(2)
(iii):-
y = 2x + 3 ………………(1)
x + y = 18 ………………(2)
Using (1) in (2), we get,
x + (2 x + 3) =18
or
3x + 3=18
or
3x=15
x=5
Put x=5 in (2)
5 + y = 18
Y = 18 – 5
Y = 13
Consequently y= 13
(iv):-
No. of students using package C
= x + y + 10 + 7
= 5 + 13 + 10 + 7
= 35
Q7:- Let A = {2, 4} and B = {6, 8, 10} and define relations R and S from A
to B as follows:
for all (x,y) ÎA ´ B, xRyÛx|y
for all (x,y) ÎA ´ B, xSyÛy–4=x
State explicitly which ordered pairs are in A ´ B, R, S, RÈS and RÇS.
Solution:-
A B = {(2,6), (2,8), (2,10), (4,6), (4,8), (4,10)}
R = {(2,6), (2,8), (2,10), (4,8)}
S = {(2,6), (4,8)}
SR
R S = {(2,6), (2,8), (2,10), (4,8)} = R
R S = {(2,6), (4,8)} = S
Answer:-
Then R1 is transitive because (1, 1), (1, 2) are in R1 then to be transitive
relation (1,2) must be there and it belongs to R1 Similarly for other order
pairs. And (1, 2), (2, 3) are in R1 then to be transitive relation (1,3) must be
there and it belongs to R1
R2 is not transitive since (1,2) and (2,3) R2 but (1,3) R2.
R3 is transitive since (2,3) and (3,4) R3 and also (2,4) R3 .
A = {4, 5, 6}
B = {5, 6, 7}
R = {(x, y) ∈ A x B|x >= y}
S = {(x, y) ∈ A x B| (x – y)/2 is an integer}
T = {(4, 7), (6, 5), (6, 7)}
Arrow diagram for R:-
R = {(x, y) ∈ A x B|x >= y} = {(5, 5), (6, 5), (6, 6)}
Draw two ellipses one is labeled as A and other is labeled as B.
Per element x in A/B,A point is placed the corresponding ellipsre wit label x
We draw an arrow from element x to y if (x,y) ∈ R.
A Relation R B
4 5
5 6
6 7
Per element x in A/B,A point is placed the corresponding ellipse wit label x
c
A Relation S B
4 5
5 6
6 7
Arrow diagram for T:-
T = {(4, 7), (6, 5), (6, 7)}
Draw two ellipses one is labeled as A and other is labeled as B.
Per element x in A/B,A point is placed the corresponding ellipse wit label x
We draw an arrow from element x to y if (x,y) ∈ T.
A B
Relation T
4 5
5 6
6 7