SlideShare a Scribd company logo
Sets & Set Operations
Lecture 6, CMSC 56
Allyn Joy D. Calcaben
Definition 1
A set is an unordered collection of objects, called elements or
members of the set. A set is said to contain its elements. We
write a ∈ A to denote that a is an element of the set A. The
notation a ∈ A denotes that a is not an element of the set A.
Set
Definition 1
A set is an unordered collection of objects, called elements or
members of the set. A set is said to contain its elements. We
write a ∈ A to denote that a is an element of the set A. The
notation a ∈ A denotes that a is not an element of the set A.
Number of objects in a set can be finite or infinite.
Set
a set of chairs
Example
a set of chairs
the set of nobel laureates in the world
Example
a set of chairs
the set of nobel laureates in the world
the set of integers
Example
a set of chairs
the set of nobel laureates in the world
the set of integers
the set of natural numbers less than 10
Example
a set of chairs
the set of nobel laureates in the world
the set of integers
the set of natural numbers less than 10
the set of students in this class who passed the quizzes
Example
One way of describing a set.
All members of the set are listed between curly braces, and
separated by comma.
Roster Method
The set V of all vowels in the English alphabet can be written
as V = {a, e, i, o, u}.
Example
The set V of all vowels in the English alphabet can be written
as V = {a, e, i, o, u}.
The set O of odd positive integers less than 10 can be
expressed by O = {1,3,5,7,9}.
Example
Another way to describe a set.
Characterized all those elements in the set by stating the
property or properties they must have to be members.
Set Builder
The set O of all odd positive integers less than 10.
Example
The set O of all odd positive integers less than 10.
O = { x | x is an odd positive integer less than 10 }
Example
The set O of all odd positive integers less than 10.
O = { x | x is an odd positive integer less than 10 }
or,
O = { x ∈ Z+ | x is odd and x < 10 }
Example
N = { 0, 1, 2, 3,... }, the set of natural numbers
Z = { …, -2, -1, 0, 1, 2, … }, the set of integers
Z+ = { 1, 2, 3, … }, the set of positive integers
Q = { p/q | p ∈ Z, q ∈ Z, and q ≠ 0 }, the set of rational numbers
R the set of real numbers
R+ the set of positive real numbers
C the set of complex numbers
Important roles
When a and b are real numbers with a < b, we write
[ a , b ] = { x | a ≤ x ≤ b }
[ a , b ) = { x | a ≤ x < b }
( a , b ] = { x | a < x ≤ b }
( a , b ) = { x | a < x < b }
Intervals of real numbers
When a and b are real numbers with a < b, we write
[ a , b ] = { x | a ≤ x ≤ b }
[ a , b ) = { x | a ≤ x < b }
( a , b ] = { x | a < x ≤ b }
( a , b ) = { x | a < x < b }
Note that: [ a , b ] is called the closed interval from a to b.
( a , b ) is called the open interval from a to b.
Intervals of real numbers
Definition 2
Two sets are equal if and only if they have the same elements.
Therefore, if A and B are sets, then A and B are equal if and
only if ∀x ( x ∈ A ↔ x ∈ B ). We write A = B if A and B are
equal sets.
Equality
{ 1, 3, 5 } = { 3, 5, 1 }
Example
{ 1, 3, 5 } = { 3, 5, 1 } = { 1, 3, 3, 3, 5, 5, 5, 5, 5 }
Example
{ 1, 3, 5 } = { 3, 5, 1 } = { 1, 3, 3, 3, 5, 5, 5, 5, 5 }
Note:
It doesn’t matter if an element of a set is listed more
than once as long as they have the same elements.
Example
The universal set is denoted by U: the set of all objects under
the consideration, represented by a rectangle.
The empty set is denoted as Ø or { }.
Special Sets
Venn Diagrams
U
Example
A Venn Diagram that
represents V which has
the set of vowels in the
English alphabet.
U
Example
A Venn Diagram that
represents V which has
the set of vowels in the
English alphabet.
V = { a, b, c, d, e }
a
e
i
o
u
VV
Definition 3
The set A is a subset of B if and only if every element of A is
also an element of B. We use the notation A ⊆ B to indicate
that A is a subset of the set B.
Subset
Subset
U
B
A
Subset
U
B
A
Alternate way to
define A is a subset of B is
∀x ( x ∈ A → x ∈ B )
Theorem
For every set S,
(i) Ø ⊆ S
(ii) S ⊆ S.
Empty set / Subset Properties
Proof
Recall the definition of a subset:
All elements of a set A must be also elements of B:
∀x ( x ∈ A → x ∈ B )
Empty set / Subset Properties
Proof
Recall the definition of a subset:
All elements of a set A must be also elements of B:
∀x ( x ∈ A → x ∈ B )
We must show the following implication holds for any S
∀x ( x ∈ Ø → x ∈ S )
Empty set / Subset Properties
Proof
Recall the definition of a subset:
All elements of a set A must be also elements of B:
∀x ( x ∈ A → x ∈ B )
We must show the following implication holds for any S
∀x ( x ∈ Ø → x ∈ S )
Since the empty set does not contain any element,
x ∈ Ø is always FALSE.
Empty set / Subset Properties
Proof
Recall the definition of a subset:
All elements of a set A must be also elements of B:
∀x ( x ∈ A → x ∈ B )
We must show the following implication holds for any S
∀x ( x ∈ Ø → x ∈ S )
Since the empty set does not contain any element,
x ∈ Ø is always FALSE. Then the implication is always TRUE.
Empty set / Subset Properties
Definition 3.5
A set A is said to be a proper subset of B if and only if A ⊆ B
and A ≠ B. We denote that A is a proper subset of B with the
notation A ⊂ B
Proper Subset
Example
U
B
A
A = { 1, 2, 3 }
B = { 1, 2, 3, 4, 5, 6 }
Is A ⊂ B?12
3
4
5
6
Example
U
B
A
A = { 1, 2, 3 }
B = { 1, 2, 3, 4, 5, 6 }
Is A ⊂ B? YES
12
3
4
5
6
Cardinality
Definition 4
Let S be a set. It there are exactly n distinct elements in S
where n is a nonnegative integer, we say that S is a finite set
and that n is the cardinality of S. The cardinality of S is
denoted by |S|.
Cardinality
V = { 1, 2, 3, 4, 5 }
| V | = 5
Example
V = { 1, 2, 3, 4, 5 }
| V | = 5
A = { 1, 2, 3, 4, 5, … , 20 }
| A | = 20
Example
V = { 1, 2, 3, 4, 5 }
| V | = 5
A = { 1, 2, 3, 4, 5, … , 20 }
| A | = 20
| Ø | = 0
Example
Definition 5
A set is infinite if it is not finite.
Infinite Set
The set of natural numbers is an infinite set.
N = { 1, 2, 3, … }
The set of reals is an infinite set.
Example
Power Sets
Definition 6
Given a set S, the power set of S is the set of all subsets of the
set S. The power set of S is denoted by P(S).
Power Set
What is the power set of the set { 0, 1, 2 }?
Example
What is the power set of the set { 0, 1, 2 }?
The power set P({ 0, 1, 2 }) is the set of all subsets of { 0, 1, 2 }.
Hence,
P({ 0, 1, 2 }) = { Ø, {0}, {1}, {2}, { 0, 1 }, { 0, 2 }, { 1, 2 }, { 0, 1, 2 }}
Solution
Cartesian Products
Definition 7
The ordered n-tuple ( a1 ,a2 , … , an ) is the ordered collection
that has a1 as its first element, a2 as its second element, …,
and an as its nth element.
n-tuple
Definition 8
Let S and T be sets. The Cartesian Product of A and B, denoted
by A x B, is the set of all ordered pairs (a, b), where a ∈ A and
b ∈ B. Hence,
A x B = { (a, b) | a ∈ A ꓥ b ∈ B }
Cartesian Product
What is the Cartesian Product of A = { 2, 5 } and B = { x, y, z }?
Example
What is the Cartesian Product of A = { 2, 5 } and B = { x, y, z }?
A x B = { (2, x), (2, y), (2, z), (5, x), (5, y), (5, z) }
Solution
What is the Cartesian Product of A = { 2, 5 } and B = { x, y, z }?
A x B = { (2, x), (2, y), (2, z), (5, x), (5, y), (5, z) }
B x A = { (x, 2), (y, 2), (z, 2), (x, 5), (y, 5), (z, 5) }
Solution
What is the Cartesian Product of A = { 2, 5 } and B = { x, y, z }?
A x B = { (2, x), (2, y), (2, z), (5, x), (5, y), (5, z) }
B x A = { (x, 2), (y, 2), (z, 2), (x, 5), (y, 5), (z, 5) }
Note:
S x T ≠ T x S
Solution
Definition 9
The Cartesian product of the sets A1, A2, …. , An, denoted by
A1 x A2 x …. x An, is the set of ordered n-tuples ( a1 ,a2 , … , an ),
where ai belongs to Ai for i = 1, 2, …, n. In other words,
A1 x A2 x …. x An = {( a1 ,a2 , … , an ) | ai ∈ Ai for i = 1, 2, …, n }
Cardinality of the Cartesian Product
A = { John, Peter, Mike }
B = { Jane, Ann, Laura }
A x B =
Example
A = { John, Peter, Mike }
B = { Jane, Ann, Laura }
A x B = { (John, Jane),(John, Ann) , (John, Laura), (Peter, Jane),
(Peter, Ann) , (Peter, Laura) , (Mike, Jane) , (Mike,
Ann) , (Mike, Laura) }
Solution
A = { John, Peter, Mike }
B = { Jane, Ann, Laura }
A x B = { (John, Jane),(John, Ann) , (John, Laura), (Peter, Jane),
(Peter, Ann) , (Peter, Laura) , (Mike, Jane) , (Mike,
Ann) , (Mike, Laura) }
| A x B | = 9
| A | = 3, | B | = 3
| A | * | B | = 9
Solution
Set Operations
Definition 1
Let A and B be sets. The union of the sets A and B, denoted by
A U B, is the set that contains those elements that are either
in A or B.
Union
U
Example
A = { a, b, c, d, o }
B = { a, e, i, o, u }
a
e
i
o
u
A
B
b
c
d
f
g
U
Solution
A = { a, b, c, d, o }
B = { a, e, i, o, u }
A U B = { a, b, c, d, e, i, o, u}
a
e
i
o
u
A
B
b
c
d
f
g
Definition 2
Let A and B be sets. The intersection of the sets A and B,
denoted by A ∩ B, is the set that contains those elements in
both A and B.
Intersection
U
Intersection
Alternate:
A ∩ B = { x | ( x ∈ A ꓥ x ∈ B }
a
e
i
o
u
A
B
b
c
d
f
g
U
Example
A = { a, b, c, d, o }
B = { a, e, i, o, u }
a
e
i
o
u
A
B
b
c
d
f
g
U
Solution
A = { a, b, c, d, o }
B = { a, e, i, o, u }
A ∩ B = { a, o }
a
e
i
o
u
A
B
b
c
d
f
g
Definition 3
Two sets are called disjoint if their intersection is the empty
set.
Disjoint Sets
U
Disjoint
Alternate:
A and B are disjoint if and
only if A ∩ B = Ø
a
e
i
o
u
A
B
b
c
d
f
g
U
Example
A = { b, c, d }
B = { a, e, o }
A ∩ B =
a
e
i
o
u
A
B
b
c
d
f
g
U
Example
A = { b, c, d }
B = { a, e, o }
A ∩ B = { Ø }
DISJOINT!a
e
i
o
u
A
B
b
c
d
f
g
Definition 4
Let A and B be sets. The difference of the sets A and B,
denoted by A – B, is the set that contains those elements that
are in A but not in B. The difference of A and B is also called
the compliment of B with respect to A.
Set Difference
Definition 4
Let A and B be sets. The difference of the sets A and B,
denoted by A – B, is the set that contains those elements that
are in A but not in B. The difference of A and B is also called
the compliment of B with respect to A.
Note: It is sometimes denoted by AB
Set Difference
U
Set Difference
Alternate:
A – B = { x | ( x ∈ A ꓥ x ∈ B }
a
e
i
o
u
A
B
b
c
d
f
g
U
Example
A = { a, b, c, d, o }
B = { a, e, i, o, u }
A – B =
a
e
i
o
u
A
B
b
c
d
f
g
U
Example
A = { a, b, c, d, o }
B = { a, e, i, o, u }
A – B = { b, c, d }
a
e
i
o
u
A
B
b
c
d
f
g
Definition 5
Let U be the universal set. The compliment of the set A,
denoted by Ā, is the compliment of A with respect to U.
Therefore, the compliment of the set A is U – A.
Compliment
Let A = { a, e, i, o, u }
where the universal set is the set of letters of the English
Alphabet.
Example
Let A = { a, e, i, o, u }
where the universal set is the set of letters of the English
Alphabet.
Ā = { b, c, d, f, g, h, j, k, l, m, n, p, q, r, s, t, v, w, x, y, z }
Solution
Any Question?

More Related Content

PDF
PPT
Set concepts
PPTX
Sets
PDF
Set
 
PPTX
Set Theory
PPTX
6.5 determinant x
PPTX
CMSC 56 | Lecture 9: Functions Representations
Set concepts
Sets
Set
 
Set Theory
6.5 determinant x
CMSC 56 | Lecture 9: Functions Representations

What's hot (20)

PDF
Power series
PPTX
Different types of functions
PPTX
3.4 derivative and graphs
PPT
Set in discrete mathematics
PPTX
Vector space
PDF
Inner product spaces
PPTX
Relations & functions.pps
PPTX
Lattices AND Hasse Diagrams
PPTX
Vector spaces
PPS
SET THEORY
PPTX
Abstract algebra - Algebraic closed field, unit - 2 , M.Sc. l semester Maths
PPTX
Functional analysis
PPTX
Partial Derivatives
PPTX
Infinite series 8.3
PPTX
CMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering
PDF
Matrix.
PPTX
Math presentation on domain and range
PPTX
5.1 anti derivatives
PPTX
SETS AND TYPES OF SET
PPTX
CMSC 56 | Lecture 13: Relations and their Properties
Power series
Different types of functions
3.4 derivative and graphs
Set in discrete mathematics
Vector space
Inner product spaces
Relations & functions.pps
Lattices AND Hasse Diagrams
Vector spaces
SET THEORY
Abstract algebra - Algebraic closed field, unit - 2 , M.Sc. l semester Maths
Functional analysis
Partial Derivatives
Infinite series 8.3
CMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering
Matrix.
Math presentation on domain and range
5.1 anti derivatives
SETS AND TYPES OF SET
CMSC 56 | Lecture 13: Relations and their Properties
Ad

Similar to CMSC 56 | Lecture 6: Sets & Set Operations (20)

PPTX
Chapter2.pptx
PDF
Sets functions-sequences-exercises
PPTX
INTRODUCTION TO Set Theory- Unit 4 .pptx
PPT
9108528.ppt
PDF
Set and Set operations, UITM KPPIM DUNGUN
PDF
Math arihant handbook.pdf all formula is here
PPTX
PDF
Set theory
PPT
discrete maths notes.ppt
DOCX
Set theory self study material
PDF
POWERPOINT (SETS & FUNCTIONS).pdf
PPTX
6.1_set.pptx
PPT
Mtk3013 chapter 2-3
PPTX
Set theory
PPTX
Discrete mathematics OR Structure
PDF
Lecture 1 - Concept of Sets.pdf
PPTX
sets and their introduction and their exercises.pptx
PPTX
Materi minggu ke - 3 Himpunan. Untuk mah
PPTX
Sets in Maths (Complete Topic)
PDF
Basic structures of SETS in Discrete Mathematics.
Chapter2.pptx
Sets functions-sequences-exercises
INTRODUCTION TO Set Theory- Unit 4 .pptx
9108528.ppt
Set and Set operations, UITM KPPIM DUNGUN
Math arihant handbook.pdf all formula is here
Set theory
discrete maths notes.ppt
Set theory self study material
POWERPOINT (SETS & FUNCTIONS).pdf
6.1_set.pptx
Mtk3013 chapter 2-3
Set theory
Discrete mathematics OR Structure
Lecture 1 - Concept of Sets.pdf
sets and their introduction and their exercises.pptx
Materi minggu ke - 3 Himpunan. Untuk mah
Sets in Maths (Complete Topic)
Basic structures of SETS in Discrete Mathematics.
Ad

More from allyn joy calcaben (16)

PPTX
CMSC 56 | Lecture 17: Matrices
PPTX
CMSC 56 | Lecture 15: Closures of Relations
PPTX
CMSC 56 | Lecture 14: Representing Relations
PPTX
CMSC 56 | Lecture 12: Recursive Definition & Algorithms, and Program Correctness
PPTX
CMSC 56 | Lecture 11: Mathematical Induction
PPTX
CMSC 56 | Lecture 10: Integer Representations & Algorithms
PPTX
CMSC 56 | Lecture 8: Growth of Functions
PPTX
CMSC 56 | Lecture 4: Rules of Inference
PPTX
CMSC 56 | Lecture 5: Proofs Methods and Strategy
PPTX
CMSC 56 | Lecture 3: Predicates & Quantifiers
PPTX
CMSC 56 | Lecture 2: Propositional Equivalences
PPTX
CMSC 56 | Lecture 1: Propositional Logic
PDF
La Solidaridad and the Propaganda Movement
PDF
Computer Vision: Feature matching with RANSAC Algorithm
PDF
Chapter 7 expressions and assignment statements ii
PDF
#11 osteoporosis
CMSC 56 | Lecture 17: Matrices
CMSC 56 | Lecture 15: Closures of Relations
CMSC 56 | Lecture 14: Representing Relations
CMSC 56 | Lecture 12: Recursive Definition & Algorithms, and Program Correctness
CMSC 56 | Lecture 11: Mathematical Induction
CMSC 56 | Lecture 10: Integer Representations & Algorithms
CMSC 56 | Lecture 8: Growth of Functions
CMSC 56 | Lecture 4: Rules of Inference
CMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 3: Predicates & Quantifiers
CMSC 56 | Lecture 2: Propositional Equivalences
CMSC 56 | Lecture 1: Propositional Logic
La Solidaridad and the Propaganda Movement
Computer Vision: Feature matching with RANSAC Algorithm
Chapter 7 expressions and assignment statements ii
#11 osteoporosis

Recently uploaded (20)

PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Cell Types and Its function , kingdom of life
PDF
Sports Quiz easy sports quiz sports quiz
PDF
RMMM.pdf make it easy to upload and study
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
01-Introduction-to-Information-Management.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
Cell Structure & Organelles in detailed.
PPTX
Institutional Correction lecture only . . .
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Supply Chain Operations Speaking Notes -ICLT Program
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
human mycosis Human fungal infections are called human mycosis..pptx
Abdominal Access Techniques with Prof. Dr. R K Mishra
Cell Types and Its function , kingdom of life
Sports Quiz easy sports quiz sports quiz
RMMM.pdf make it easy to upload and study
Final Presentation General Medicine 03-08-2024.pptx
O7-L3 Supply Chain Operations - ICLT Program
Anesthesia in Laparoscopic Surgery in India
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
01-Introduction-to-Information-Management.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
GDM (1) (1).pptx small presentation for students
Cell Structure & Organelles in detailed.
Institutional Correction lecture only . . .

CMSC 56 | Lecture 6: Sets & Set Operations

  • 1. Sets & Set Operations Lecture 6, CMSC 56 Allyn Joy D. Calcaben
  • 2. Definition 1 A set is an unordered collection of objects, called elements or members of the set. A set is said to contain its elements. We write a ∈ A to denote that a is an element of the set A. The notation a ∈ A denotes that a is not an element of the set A. Set
  • 3. Definition 1 A set is an unordered collection of objects, called elements or members of the set. A set is said to contain its elements. We write a ∈ A to denote that a is an element of the set A. The notation a ∈ A denotes that a is not an element of the set A. Number of objects in a set can be finite or infinite. Set
  • 4. a set of chairs Example
  • 5. a set of chairs the set of nobel laureates in the world Example
  • 6. a set of chairs the set of nobel laureates in the world the set of integers Example
  • 7. a set of chairs the set of nobel laureates in the world the set of integers the set of natural numbers less than 10 Example
  • 8. a set of chairs the set of nobel laureates in the world the set of integers the set of natural numbers less than 10 the set of students in this class who passed the quizzes Example
  • 9. One way of describing a set. All members of the set are listed between curly braces, and separated by comma. Roster Method
  • 10. The set V of all vowels in the English alphabet can be written as V = {a, e, i, o, u}. Example
  • 11. The set V of all vowels in the English alphabet can be written as V = {a, e, i, o, u}. The set O of odd positive integers less than 10 can be expressed by O = {1,3,5,7,9}. Example
  • 12. Another way to describe a set. Characterized all those elements in the set by stating the property or properties they must have to be members. Set Builder
  • 13. The set O of all odd positive integers less than 10. Example
  • 14. The set O of all odd positive integers less than 10. O = { x | x is an odd positive integer less than 10 } Example
  • 15. The set O of all odd positive integers less than 10. O = { x | x is an odd positive integer less than 10 } or, O = { x ∈ Z+ | x is odd and x < 10 } Example
  • 16. N = { 0, 1, 2, 3,... }, the set of natural numbers Z = { …, -2, -1, 0, 1, 2, … }, the set of integers Z+ = { 1, 2, 3, … }, the set of positive integers Q = { p/q | p ∈ Z, q ∈ Z, and q ≠ 0 }, the set of rational numbers R the set of real numbers R+ the set of positive real numbers C the set of complex numbers Important roles
  • 17. When a and b are real numbers with a < b, we write [ a , b ] = { x | a ≤ x ≤ b } [ a , b ) = { x | a ≤ x < b } ( a , b ] = { x | a < x ≤ b } ( a , b ) = { x | a < x < b } Intervals of real numbers
  • 18. When a and b are real numbers with a < b, we write [ a , b ] = { x | a ≤ x ≤ b } [ a , b ) = { x | a ≤ x < b } ( a , b ] = { x | a < x ≤ b } ( a , b ) = { x | a < x < b } Note that: [ a , b ] is called the closed interval from a to b. ( a , b ) is called the open interval from a to b. Intervals of real numbers
  • 19. Definition 2 Two sets are equal if and only if they have the same elements. Therefore, if A and B are sets, then A and B are equal if and only if ∀x ( x ∈ A ↔ x ∈ B ). We write A = B if A and B are equal sets. Equality
  • 20. { 1, 3, 5 } = { 3, 5, 1 } Example
  • 21. { 1, 3, 5 } = { 3, 5, 1 } = { 1, 3, 3, 3, 5, 5, 5, 5, 5 } Example
  • 22. { 1, 3, 5 } = { 3, 5, 1 } = { 1, 3, 3, 3, 5, 5, 5, 5, 5 } Note: It doesn’t matter if an element of a set is listed more than once as long as they have the same elements. Example
  • 23. The universal set is denoted by U: the set of all objects under the consideration, represented by a rectangle. The empty set is denoted as Ø or { }. Special Sets
  • 25. U Example A Venn Diagram that represents V which has the set of vowels in the English alphabet.
  • 26. U Example A Venn Diagram that represents V which has the set of vowels in the English alphabet. V = { a, b, c, d, e } a e i o u VV
  • 27. Definition 3 The set A is a subset of B if and only if every element of A is also an element of B. We use the notation A ⊆ B to indicate that A is a subset of the set B. Subset
  • 29. Subset U B A Alternate way to define A is a subset of B is ∀x ( x ∈ A → x ∈ B )
  • 30. Theorem For every set S, (i) Ø ⊆ S (ii) S ⊆ S. Empty set / Subset Properties
  • 31. Proof Recall the definition of a subset: All elements of a set A must be also elements of B: ∀x ( x ∈ A → x ∈ B ) Empty set / Subset Properties
  • 32. Proof Recall the definition of a subset: All elements of a set A must be also elements of B: ∀x ( x ∈ A → x ∈ B ) We must show the following implication holds for any S ∀x ( x ∈ Ø → x ∈ S ) Empty set / Subset Properties
  • 33. Proof Recall the definition of a subset: All elements of a set A must be also elements of B: ∀x ( x ∈ A → x ∈ B ) We must show the following implication holds for any S ∀x ( x ∈ Ø → x ∈ S ) Since the empty set does not contain any element, x ∈ Ø is always FALSE. Empty set / Subset Properties
  • 34. Proof Recall the definition of a subset: All elements of a set A must be also elements of B: ∀x ( x ∈ A → x ∈ B ) We must show the following implication holds for any S ∀x ( x ∈ Ø → x ∈ S ) Since the empty set does not contain any element, x ∈ Ø is always FALSE. Then the implication is always TRUE. Empty set / Subset Properties
  • 35. Definition 3.5 A set A is said to be a proper subset of B if and only if A ⊆ B and A ≠ B. We denote that A is a proper subset of B with the notation A ⊂ B Proper Subset
  • 36. Example U B A A = { 1, 2, 3 } B = { 1, 2, 3, 4, 5, 6 } Is A ⊂ B?12 3 4 5 6
  • 37. Example U B A A = { 1, 2, 3 } B = { 1, 2, 3, 4, 5, 6 } Is A ⊂ B? YES 12 3 4 5 6
  • 39. Definition 4 Let S be a set. It there are exactly n distinct elements in S where n is a nonnegative integer, we say that S is a finite set and that n is the cardinality of S. The cardinality of S is denoted by |S|. Cardinality
  • 40. V = { 1, 2, 3, 4, 5 } | V | = 5 Example
  • 41. V = { 1, 2, 3, 4, 5 } | V | = 5 A = { 1, 2, 3, 4, 5, … , 20 } | A | = 20 Example
  • 42. V = { 1, 2, 3, 4, 5 } | V | = 5 A = { 1, 2, 3, 4, 5, … , 20 } | A | = 20 | Ø | = 0 Example
  • 43. Definition 5 A set is infinite if it is not finite. Infinite Set
  • 44. The set of natural numbers is an infinite set. N = { 1, 2, 3, … } The set of reals is an infinite set. Example
  • 46. Definition 6 Given a set S, the power set of S is the set of all subsets of the set S. The power set of S is denoted by P(S). Power Set
  • 47. What is the power set of the set { 0, 1, 2 }? Example
  • 48. What is the power set of the set { 0, 1, 2 }? The power set P({ 0, 1, 2 }) is the set of all subsets of { 0, 1, 2 }. Hence, P({ 0, 1, 2 }) = { Ø, {0}, {1}, {2}, { 0, 1 }, { 0, 2 }, { 1, 2 }, { 0, 1, 2 }} Solution
  • 50. Definition 7 The ordered n-tuple ( a1 ,a2 , … , an ) is the ordered collection that has a1 as its first element, a2 as its second element, …, and an as its nth element. n-tuple
  • 51. Definition 8 Let S and T be sets. The Cartesian Product of A and B, denoted by A x B, is the set of all ordered pairs (a, b), where a ∈ A and b ∈ B. Hence, A x B = { (a, b) | a ∈ A ꓥ b ∈ B } Cartesian Product
  • 52. What is the Cartesian Product of A = { 2, 5 } and B = { x, y, z }? Example
  • 53. What is the Cartesian Product of A = { 2, 5 } and B = { x, y, z }? A x B = { (2, x), (2, y), (2, z), (5, x), (5, y), (5, z) } Solution
  • 54. What is the Cartesian Product of A = { 2, 5 } and B = { x, y, z }? A x B = { (2, x), (2, y), (2, z), (5, x), (5, y), (5, z) } B x A = { (x, 2), (y, 2), (z, 2), (x, 5), (y, 5), (z, 5) } Solution
  • 55. What is the Cartesian Product of A = { 2, 5 } and B = { x, y, z }? A x B = { (2, x), (2, y), (2, z), (5, x), (5, y), (5, z) } B x A = { (x, 2), (y, 2), (z, 2), (x, 5), (y, 5), (z, 5) } Note: S x T ≠ T x S Solution
  • 56. Definition 9 The Cartesian product of the sets A1, A2, …. , An, denoted by A1 x A2 x …. x An, is the set of ordered n-tuples ( a1 ,a2 , … , an ), where ai belongs to Ai for i = 1, 2, …, n. In other words, A1 x A2 x …. x An = {( a1 ,a2 , … , an ) | ai ∈ Ai for i = 1, 2, …, n } Cardinality of the Cartesian Product
  • 57. A = { John, Peter, Mike } B = { Jane, Ann, Laura } A x B = Example
  • 58. A = { John, Peter, Mike } B = { Jane, Ann, Laura } A x B = { (John, Jane),(John, Ann) , (John, Laura), (Peter, Jane), (Peter, Ann) , (Peter, Laura) , (Mike, Jane) , (Mike, Ann) , (Mike, Laura) } Solution
  • 59. A = { John, Peter, Mike } B = { Jane, Ann, Laura } A x B = { (John, Jane),(John, Ann) , (John, Laura), (Peter, Jane), (Peter, Ann) , (Peter, Laura) , (Mike, Jane) , (Mike, Ann) , (Mike, Laura) } | A x B | = 9 | A | = 3, | B | = 3 | A | * | B | = 9 Solution
  • 61. Definition 1 Let A and B be sets. The union of the sets A and B, denoted by A U B, is the set that contains those elements that are either in A or B. Union
  • 62. U Example A = { a, b, c, d, o } B = { a, e, i, o, u } a e i o u A B b c d f g
  • 63. U Solution A = { a, b, c, d, o } B = { a, e, i, o, u } A U B = { a, b, c, d, e, i, o, u} a e i o u A B b c d f g
  • 64. Definition 2 Let A and B be sets. The intersection of the sets A and B, denoted by A ∩ B, is the set that contains those elements in both A and B. Intersection
  • 65. U Intersection Alternate: A ∩ B = { x | ( x ∈ A ꓥ x ∈ B } a e i o u A B b c d f g
  • 66. U Example A = { a, b, c, d, o } B = { a, e, i, o, u } a e i o u A B b c d f g
  • 67. U Solution A = { a, b, c, d, o } B = { a, e, i, o, u } A ∩ B = { a, o } a e i o u A B b c d f g
  • 68. Definition 3 Two sets are called disjoint if their intersection is the empty set. Disjoint Sets
  • 69. U Disjoint Alternate: A and B are disjoint if and only if A ∩ B = Ø a e i o u A B b c d f g
  • 70. U Example A = { b, c, d } B = { a, e, o } A ∩ B = a e i o u A B b c d f g
  • 71. U Example A = { b, c, d } B = { a, e, o } A ∩ B = { Ø } DISJOINT!a e i o u A B b c d f g
  • 72. Definition 4 Let A and B be sets. The difference of the sets A and B, denoted by A – B, is the set that contains those elements that are in A but not in B. The difference of A and B is also called the compliment of B with respect to A. Set Difference
  • 73. Definition 4 Let A and B be sets. The difference of the sets A and B, denoted by A – B, is the set that contains those elements that are in A but not in B. The difference of A and B is also called the compliment of B with respect to A. Note: It is sometimes denoted by AB Set Difference
  • 74. U Set Difference Alternate: A – B = { x | ( x ∈ A ꓥ x ∈ B } a e i o u A B b c d f g
  • 75. U Example A = { a, b, c, d, o } B = { a, e, i, o, u } A – B = a e i o u A B b c d f g
  • 76. U Example A = { a, b, c, d, o } B = { a, e, i, o, u } A – B = { b, c, d } a e i o u A B b c d f g
  • 77. Definition 5 Let U be the universal set. The compliment of the set A, denoted by Ā, is the compliment of A with respect to U. Therefore, the compliment of the set A is U – A. Compliment
  • 78. Let A = { a, e, i, o, u } where the universal set is the set of letters of the English Alphabet. Example
  • 79. Let A = { a, e, i, o, u } where the universal set is the set of letters of the English Alphabet. Ā = { b, c, d, f, g, h, j, k, l, m, n, p, q, r, s, t, v, w, x, y, z } Solution

Editor's Notes

  • #29: We see that A ⊆ B if and only if the quantification ∀x ( x ∈ A → x ∈ B ) is true. Note that to show that A is not a subset of B we need only find one element x ∈ A with x ∈ B. Such an x is a counterexample to the claim that x ∈ A implies x ∈ B.
  • #30: We see that A ⊆ B if and only if the quantification ∀x ( x ∈ A → x ∈ B ) is true. Note that to show that A is not a subset of B we need only find one element x ∈ A with x ∈ B. Such an x is a counterexample to the claim that x ∈ A implies x ∈ B.
  • #37: We see that A ⊆ B if and only if the quantification ∀x ( x ∈ A → x ∈ B ) is true. Note that to show that A is not a subset of B we need only find one element x ∈ A with x ∈ B. Such an x is a counterexample to the claim that x ∈ A implies x ∈ B.
  • #38: We see that A ⊆ B if and only if the quantification ∀x ( x ∈ A → x ∈ B ) is true. Note that to show that A is not a subset of B we need only find one element x ∈ A with x ∈ B. Such an x is a counterexample to the claim that x ∈ A implies x ∈ B.
  • #49: Note that the empty set and the set itself are members of this set of subsets.
  • #51: Sets are used to represent unordered collections. Ordered-n tuples are used to represent an ordered collection.