Chapter 2
Chapter 2
KINDS OF SETS
TWO METHODS OF WRITING SETS
1
CHAPTER TWO
FUNDAMENTAL THEORY OF SETS
IT 107 – Discrete Structures for IT
2
CHAPTER TWO
FUNDAMENTAL THEORY OF SETS
IT 107 – Discrete Structures for IT
3
CHAPTER TWO
FUNDAMENTAL THEORY OF SETS
IT 107 – Discrete Structures for IT
Examples:
VENN-EULER DIAGRAM
Let 𝑨={𝟏,𝟑,𝟒}, 𝐁={𝐚,𝐛,𝐜}. Find 𝑨 𝒙 𝑩 and 𝑩 𝒙
𝑨.
★ Leonard Euler & John Venn
Solution: Both sets 𝑨 and 𝑩 have 3 elements, so ★ A pictographic interpretation of sets,
each cross products has 9 members. where sets are represented by enclosed
areas in the plane and is represented by the
disks/circles, ovals, cloud-like shapes, and
a. 𝑨 𝒙 𝑩= {(𝟏, 𝒂), (𝟏, 𝒃), (𝟏, 𝒄), (𝟑, 𝒂), (𝟑, 𝒃)
striped or shaded.
(𝟑,𝒄), (𝟒,𝒂), (𝟒,𝒃), (𝟒,𝒄)} ★ The universal set U is represented by the
points inside the rectangle.
b. 𝑨 𝒙 𝑨= {(𝟏, 𝟏), (𝟏, 𝟑), (𝟏, 𝟒), (𝟑, 𝟏), (𝟑, 𝟑)
(𝟑,𝟒), (𝟒,𝟏), (𝟒,𝟑), (𝟒,𝟒)}
Part 2 2. INTERSECTION
Venn-Euler Diagram, Operations & The intersection of two sets A and
Applications B, denoted by A ∩ B, is the set of
all elements which belong to both
A and B.
4
CHAPTER TWO
FUNDAMENTAL THEORY OF SETS
IT 107 – Discrete Structures for IT
4. DIFFERENCE
The difference of A and B,
denoted by A−B , is the set of
elements which belong to A but EXAMPLES: Given the Venn diagram for the
which does not belong to B. sets U , A , B and C .
o Note: The notation A−B is
read as “ A minus B”. Some
texts denote A−B by A ¿,
or A B
5
CHAPTER TWO
FUNDAMENTAL THEORY OF SETS
IT 107 – Discrete Structures for IT
A=¿ Examples:
B=¿ 1. Find the cardinal number of the set
C=¿ A={ c ,h , r , i, s , t , i, a , n } .
U =¿ 2. If B={ x∨x is a natural number lessthan 8 }
A ∪B=¿ , how many elements are there in B?
A ∪ C=¿ 3. Let A=45 laptop; B=35 desktop, how
B∪C=¿ many computers are there in all?
A ∩ B=¿ 4. Let
A ∩C=¿ A={C , O , M , P ,U , T , E , R , S , C , I , E , N ,C , E }
B∩ C=¿ and
A−B=¿ B={I , N , F ,O , R , M , A ,T , I , O, N , T , E ,C , H , N ,O , L ,
B−C=¿ . What is the cardinality of A ∪B ?
C− A=¿ 5. If A={a , b , c , d , e }, B={c ,d , e , f , g , h },
U −B=¿ C={a , c , d , f , h , j ,l }. Find | A ∪ B∪ C|.
U −( A ∩ B ∩C )=¿
( A ∪B )∁=¿
∁ ∁ APPLICATION TO WORD
B ∪C =¿
A ⨁ B=¿ PROBLEMS
6
CHAPTER TWO
FUNDAMENTAL THEORY OF SETS
IT 107 – Discrete Structures for IT
Example 2:
In the CICT, 125 male students are enrolled in the
Basketball class, 135 in the Chess class and 100 in OTHER APPLICATIONS
the Volleyball class. Of these students, 3 are in
both the Basketball and Chess classes, 6 are in ★ The Least Common Multiple (LCM) of a
both the Chess and Volleyball classes, and 4 are in set of counting numbers is the smallest
number common to all the sets of
both the Basketball and Volleyball classes. Two
multiples of the given number. One
of these students are enrolled in all three classes.
method of finding the LCM is by the use
What is the total number of enrolment in all
of Venn-Euler diagram.
classes?
STEPS:
1. Find the prime factorization of each of the
two numbers.
2. Put the prime factors into a Venn diagram
with one circle for each of two numbers,
and all factors they share in common in the
intersection.
3. To find the LCM, just multiply all of the
prime numbers in the diagram.
Example 3: 4. To find the GCF (Greatest Common
In a survey involving 125 factory workers, it was Factor), just multiply all of the prime
found that 56 finished job X, 46 finished job Y, 52 factors in the intersection.
finished job Z, 17 finished jobs X and Y, 23
finished jobs Y and Z, 24 finished jobs X and Z, Example 1:
12 finished all the three jobs. How many workers Find the LCM & GCF of 48 and 180 using Venn
finished at least: diagram.
• None of these jobs? 48 =
• Exactly one of these jobs? 180 =
• Exactly two of these jobs?
7
CHAPTER TWO
FUNDAMENTAL THEORY OF SETS
IT 107 – Discrete Structures for IT
Example 2:
★ To find the bit string for the complement
Find the LCM & GCF of 18, 30 and 45 using
of the set ( A∁ ) from the bit string for that
Venn diagram.
set, simply change each 1 to a 0 and each 0
18 =
to 1. Like taking the negation of each bit.
30 =
45 =
Example 2:
Let { 1,2,3,4,5 }and { 1,3,5,7,9 }be the bit strings
1 11 11 0 0 0 0 0and
1 0 10 1 0 10 1 0, respectively, with
{ 1,2,3,4,5,6,7,8,9,10 }as the universal set.
Use bit strings to find the (a) Union and
(b) Intersection of these sets.
COMPUTER REPRESENTATION OF
SETS