Chapter3 Sets
Chapter3 Sets
Chapter3 Sets
UNIT 4
SET THEORY
Zaharin Yusoff (Prof Dr)
SCHOOL
UNIT 4 – Set Theory
UNIT 4 – Set Theory
A set can be designated by listing its elements within set braces. The elements are
from a universe, or universe of discourse for, usually denoted by U.
Example
Let the universe be integers, i.e. U = Z.
if A is the set consisting of the first five positive integers, then we write
A = {1, 2, 3, 4, 5}.
Here 2 ∈ A, but 6 ∉ A.
c) C= {2, 4, 6, 8, …} = {2k½k Î U}
Sets A and B are examples of finite sets, whereas C is an infinite set. For any
finite set A, |A| denotes the number of elements in A and is referred to as the
cardinality, or size, of A. In this example, we find that |A| = 9 and |B| = 4.
Here, the sets B and A are such that every element of B is also an element of A.
This important relationship occurs throughout set theory and its applications, and it
leads to the following definition.
If C, D are sets from a universe U, we can say that C is a subset of D and write
C Í D, or D C, if every element of C is an element of D.
If, in addition, D contains an element that is not in C, then C is called a proper
subset of D, and this is denoted by C Ì D or D É C.
For a given universe U, the sets C and D (taken from U) are said to be equal,
and we write C = D, when C Í D and D Í C.
Let A, B, C Í U.
a) If A Í B and B Í C, then A Í C.
b) If A Ì B and B Í C, then A Ì C.
c) If A Í B and B Ì C, then A Ì C.
d) If A Ì B and B Ì C, then A Ì C.
The null set, or empty set, is the (unique) set containing no elements. It is
denoted by Æ or {}.
½Æ½= 0 but {0} ¹ Æ. Also Æ ¹{Æ} because {Æ} is a set with one element,
namely, the null set.
If A is a set from universe U, the power set of A, denoted P(A), is the collection
(or set) of all subsets of A.
C = {1, 2, 3, 4}.
P(C) = {Æ, {1}, {2}, {3}, {4}, {1, 2}, {1, 3}, {1, 4}, {2, 3}, {2, 4}, {3, 4}, {1, 2, 3},
{1, 2, 4}, {1, 3, 4}, {2, 3, 4}, C}.
In general, for any finite set A with ½A½= n ³ 0, we find that A has 2n subsets and
½P (A)½= 2n.
For any 0 £ k £ n, there are subsets of size k. Counting the subsets of A,
Sets of Numbers
a) A Ç B = {3, 4, 5 } b) A È B = {1, 2, 3, 4, 5, 6, 7}
c) B Ç C = {7} d) A Ç C = Æ
e) A Δ B = {1, 2, 6, 7} f) A È C = {1, 2, 3, 4, 5, 7, 8, 9}
g) A Δ C = {1, 2, 3, 4, 5, 7, 8, 9} U
U = {1, 2, 3, …, 9, 10},
A
A = {1, 2, 3, 4, 5}, B = {3, 4, 5, 6, 7} C = {7, 8, 9}. A
As with logic and its operators (AND, OR, etc.), where we could establish the
Laws of Logic, to establish:
• truth values
• equality of expressions
•…
… for sets and its operators (intersection, union, etc.), we can also establish
the Laws of Set Theory, to:
• simplify expressions
• establish equality of expressions
•…
Example
(A È B) Ç C È B Reasons
The steps and reasons in this example are the same as those for simplifying
the statement
∩
= ∩
=
=
=
=
Venn Diagrams & Membership Tables
Note that equality of set expressions may also be established using the
following – which can be used to establish the Laws of Set Theory:
• Venn diagrams
• Membership tables (similar to truth tables in logic)
•…
In the four Venn diagrams above, the shaded region in (a) represents the set A,
whereas A is represented by the unshaded area. The shaded region in (b) comprises
A È B; the set A Ç B is represented by the shaded region in (c). The Venn diagram for
A – B is given in (d).
In the above, Venn diagrams are used to establish the second of DeMorgan’s Laws.
(a) has everything except A Ç B shaded, so the shaded portion represents A Ç B.
We now develop a Venn diagram to depict A È B. In (b), A is the shaded region
(outside the circle representing set A). Likewise, B is the shaded region shown in (c).
When the results from (b) and (c) are put together, we get the Venn diagram for their
union in d). Since the shaded region in part (d) is the same as that in part (a), it
follow that A Ç B = A È B.
One more technique for establishing set equalities is the membership table
A, B Î U, an element x Î U satisfies exactly one of the following four situations:
a) x Ï A, x Ï B b) x Ï A, x Î B
c) x Î A, x Ï B d) x Î A, x Î B
The table below demonstrates the Distributive Law of union over intersection.
From the formula for ½A È B È C½ and DeMorgan’s Law, we find that if the
universe U is finite, then
½A Ç B Ç C½
= ½A È B È C½
Example
In a class of 50 college freshmen, 30 are studying BASIC, 25 studying PASCAL, and
10 are studying both. How many freshmen are studying either computer language?
= 30 + 25 – 10 = 40
c) No games at all = 3
A group of 200 people are asked which of these grand slam tournaments
that they have attended. The tournaments inquired about are the Malaysian
Open, the Wimbledon and the Australian Open. A total of 10 people have
been to all three tournaments, 25 people have been to the Wimbledon and
the Australian Open, 30 people have been to the Malaysian Open and the
Australian Open, 40 people have been to the Malaysian Open and the
Wimbledon, 110 people have been to the Malaysian Open, 95 people have
been to the Wimbledon and 50 people have been to the Australian Open.
a) Venn diagram
M W
b) Exactly two tournaments?
50 30 40
30 + 20 + 15 = 65 200
10
c) Wimbledon or Australian Open
20 15
30+40+10+15+20+5 = 120
d) No tournament at all 30 5
A
30
THANK YOU TERIMA KASIH
GRAZZIE GO MA SSEUM NI DA
GRACIAS SHUKRIYA
SPASIBA XIE-XIE NI