Professional Documents
Culture Documents
2 Set operations
Definition 1
Let A and B be sets. The union of the sets A and B, denoted by A B, is
the set that contains those elements that are either in A or in B, or in
both.
An element x belongs to the union of the sets A and B if and only if
x belongs to A or x belongs to B.
A B = {x | x A x B}. Below is Venn diagram that represents
A B.
A
NADIA ALDHAMRI ()
1 / 13
NADIA ALDHAMRI ()
2 / 13
NADIA ALDHAMRI ()
3 / 13
NADIA ALDHAMRI ()
4 / 13
NADIA ALDHAMRI ()
5 / 13
NADIA ALDHAMRI ()
6 / 13
A=A
AB =B A
AB =B A
A (B C ) = (A B) C
A (B C ) = (A B) C
NADIA ALDHAMRI ()
Domination Laws
Idempotent Laws
Complementation Law
Commutative Laws
Associative Laws
7 / 13
De Morgans Laws
AA=U
AA=
Complement laws
NADIA ALDHAMRI ()
Absorption Laws
8 / 13
NADIA ALDHAMRI ()
9 / 13
n
[
Ai
i=1
NADIA ALDHAMRI ()
10 / 13
n
\
Ai
i=1
NADIA ALDHAMRI ()
11 / 13
n
[
Ai and
i=1
n
\
i=1
integer i.
a)Ai = {i, i + 1, i + 2, . . . }
b)Ai = {0, i}.
Computer Representation of Sets.
Exercise 50 page 132: Suppose that the universal set is
U = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}. Express each of these sets with bit strings
where the ith bit in the string is 1 if i is in the set and 0 otherwise.
a){3, 4, 5}
b){1, 3, 6, 10}
c){2,3,4,7,8,9}.
NADIA ALDHAMRI ()
12 / 13
NADIA ALDHAMRI ()
13 / 13