Topic 1 - Set Theory-2
Topic 1 - Set Theory-2
describes the set B of all positive even integers. The vertical bar ‘|’ is read ‘such that’.
If X is a finite set, the cardinality of X, denoted by |X| or Card(X), is the number of
elements in X. The set with no elements is the empty (or null or void) set and is denoted by
∅. Two sets X and Y are equal if they have the same elements.
If every element of X is an element of Y , then X is a subset of Y and write X ⊂ Y . If X is
a subset of Y and X does not equal Y , then X is a proper subset of Y and write X ⊊ Y .
The set of all subsets of a set X, denoted by P (X) or 2X , is the power set of X.
The following set operators consider two sets X and Y .
A △ B = (A ∪ B) − (A ∩ B).
2 3 4 2 3 4
1 1
U U U U
A B A B A B A BCALC PSYCH
34 12 47
8
25 16
❦ Figure❦ Figure Figure
1.1.4 A Venn 1: Venn1.1.4 A Venn
diagrams Figure
of A ∪1.1.5 A Venn
B (left) Figure
and A \ B 1.1.5 A Venn
(right) 14
diagram of A ∪ B. diagram of A ∪ B. diagram of A − B. diagram of A − B.
9 COMPSCI
Venn diagrams provide pictorial views of sets. In a Venn diagram, a rectangle depicts the
universal set. Subsets of the universal set are drawn as circles. The inside of a circle represents Figure 1
Figure 1.1.6 A Venn diagram
the members of that set. of three s
of three sets CALC, PSYCH,
Theorem (set calculus). Let A, B and C be subsets of a universal set U . and COMPSCI. The numbers and COM
show how
show how many students belong
(a) Associative laws: (A ∪ B) ∪ C = A ∪ (B ∪ C), (A ∩ B) ∩ C = A ∩ (B ∩ C).to the particular region depicted.
to the par
(b) Commutative laws: A ∪ B = B ∪ A, A ∩ B = B ∩ A.
To represent three sets, weTo userepresent three sets,circles
three overlapping we use(see
three overlapping
Figure 1.1.6).
(c) Distributive laws: A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C), A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C).
Example 1.1.21 Among Example 1.1.21
a group of Among
165 students, a group
8 are takingofcalculus,
165 students, 8 are taking
psychology, calculus, psy
and computer sci
A. taking calculus and33computer
(d) Identity laws: A ∪ ∅ = A, A ∩ U33=are are taking calculus
science; 20 and
are computer science;
taking calculus and20psycho
are ta
24 are taking psychology 24andare taking psychology
computer science; 79 and computer
are taking science;
calculus; 8379areart
(e) Complement laws: A ∪ A = U, A ∩ A = ∅.
psychology;
psychology; and 63 are taking computerand 63 areHow
science. taking computer
many science.
are taking noneHow
of them
(f) Idempotent laws: A ∪ A = A, A subjects?
∩ A = A. subjects?
❦ ❦
X × Y = {(x, y) | x ∈ X, y ∈ Y } .
References
1. Johnsonbaugh, R.: Discrete Mathematics - Eighth Edition. Pearson Education, New York
(2018).