SlideShare a Scribd company logo
1 of 80
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

What's hot

Cartesian product of two sets
Cartesian product of two setsCartesian product of two sets
Cartesian product of two setsJanak Singh saud
 
Ch 2 lattice & boolean algebra
Ch 2 lattice & boolean algebraCh 2 lattice & boolean algebra
Ch 2 lattice & boolean algebraRupali Rana
 
system linear equations and matrices
 system linear equations and matrices system linear equations and matrices
system linear equations and matricesAditya Vaishampayan
 
Introduction to Set Theory
Introduction to Set TheoryIntroduction to Set Theory
Introduction to Set TheoryUsama ahmad
 
Final maths presentation on sets
Final maths presentation on setsFinal maths presentation on sets
Final maths presentation on setsRahul Avicii
 
Functions in discrete mathematics
Functions in discrete mathematicsFunctions in discrete mathematics
Functions in discrete mathematicsRachana Pathak
 
Sequences and series
Sequences and seriesSequences and series
Sequences and seriesmstf mstf
 
CMSC 56 | Lecture 13: Relations and their Properties
CMSC 56 | Lecture 13: Relations and their PropertiesCMSC 56 | Lecture 13: Relations and their Properties
CMSC 56 | Lecture 13: Relations and their Propertiesallyn joy calcaben
 
Relations and Its Applications
Relations and Its ApplicationsRelations and Its Applications
Relations and Its ApplicationsVedavyas Sheoy
 
Lesson 12: Linear Independence
Lesson 12: Linear IndependenceLesson 12: Linear Independence
Lesson 12: Linear IndependenceMatthew Leingang
 
Second order homogeneous linear differential equations
Second order homogeneous linear differential equations Second order homogeneous linear differential equations
Second order homogeneous linear differential equations Viraj Patel
 

What's hot (20)

2.2 Set Operations
2.2 Set Operations2.2 Set Operations
2.2 Set Operations
 
Cartesian product of two sets
Cartesian product of two setsCartesian product of two sets
Cartesian product of two sets
 
Ch 2 lattice & boolean algebra
Ch 2 lattice & boolean algebraCh 2 lattice & boolean algebra
Ch 2 lattice & boolean algebra
 
Types of RELATIONS
Types of RELATIONSTypes of RELATIONS
Types of RELATIONS
 
system linear equations and matrices
 system linear equations and matrices system linear equations and matrices
system linear equations and matrices
 
Sets, functions and groups
Sets, functions and groupsSets, functions and groups
Sets, functions and groups
 
Graph theory presentation
Graph theory presentationGraph theory presentation
Graph theory presentation
 
Introduction to Set Theory
Introduction to Set TheoryIntroduction to Set Theory
Introduction to Set Theory
 
Operations on sets
Operations on setsOperations on sets
Operations on sets
 
Group Theory
Group TheoryGroup Theory
Group Theory
 
Final maths presentation on sets
Final maths presentation on setsFinal maths presentation on sets
Final maths presentation on sets
 
Functions in discrete mathematics
Functions in discrete mathematicsFunctions in discrete mathematics
Functions in discrete mathematics
 
lattice
 lattice lattice
lattice
 
Set Theory Presentation
Set Theory PresentationSet Theory Presentation
Set Theory Presentation
 
Sequences and series
Sequences and seriesSequences and series
Sequences and series
 
CMSC 56 | Lecture 13: Relations and their Properties
CMSC 56 | Lecture 13: Relations and their PropertiesCMSC 56 | Lecture 13: Relations and their Properties
CMSC 56 | Lecture 13: Relations and their Properties
 
Relations and Its Applications
Relations and Its ApplicationsRelations and Its Applications
Relations and Its Applications
 
Lesson 12: Linear Independence
Lesson 12: Linear IndependenceLesson 12: Linear Independence
Lesson 12: Linear Independence
 
Second order homogeneous linear differential equations
Second order homogeneous linear differential equations Second order homogeneous linear differential equations
Second order homogeneous linear differential equations
 
Topology M.Sc. 2 semester Mathematics compactness, unit - 4
Topology M.Sc. 2 semester Mathematics compactness, unit - 4Topology M.Sc. 2 semester Mathematics compactness, unit - 4
Topology M.Sc. 2 semester Mathematics compactness, unit - 4
 

Similar to SETS & OPERATIONS

Set and Set operations, UITM KPPIM DUNGUN
Set and Set operations, UITM KPPIM DUNGUNSet and Set operations, UITM KPPIM DUNGUN
Set and Set operations, UITM KPPIM DUNGUNbaberexha
 
Sets functions-sequences-exercises
Sets functions-sequences-exercisesSets functions-sequences-exercises
Sets functions-sequences-exercisesRoshayu Mohamad
 
Mathematics JEE quick revision notes pdf
Mathematics JEE quick revision notes pdfMathematics JEE quick revision notes pdf
Mathematics JEE quick revision notes pdfgowhiksankar54
 
Discrete mathematics for diploma students
Discrete mathematics for diploma studentsDiscrete mathematics for diploma students
Discrete mathematics for diploma studentsZubair Khan
 
POWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdfPOWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdfMaryAnnBatac1
 
Set theory-ppt
Set theory-pptSet theory-ppt
Set theory-pptvipulAtri
 
SETS - Vedantu.pdf
SETS - Vedantu.pdfSETS - Vedantu.pdf
SETS - Vedantu.pdfAneeshRenu
 
Discrete mathematics OR Structure
Discrete mathematics OR Structure Discrete mathematics OR Structure
Discrete mathematics OR Structure Abdullah Jan
 
pdf_20221016_194015_0000.pdf
pdf_20221016_194015_0000.pdfpdf_20221016_194015_0000.pdf
pdf_20221016_194015_0000.pdfSenaJover
 
SET THEORY
SET THEORYSET THEORY
SET THEORYLena
 

Similar to SETS & OPERATIONS (20)

Set and Set operations, UITM KPPIM DUNGUN
Set and Set operations, UITM KPPIM DUNGUNSet and Set operations, UITM KPPIM DUNGUN
Set and Set operations, UITM KPPIM DUNGUN
 
Sets functions-sequences-exercises
Sets functions-sequences-exercisesSets functions-sequences-exercises
Sets functions-sequences-exercises
 
Mathematics JEE quick revision notes pdf
Mathematics JEE quick revision notes pdfMathematics JEE quick revision notes pdf
Mathematics JEE quick revision notes pdf
 
Discrete mathematics for diploma students
Discrete mathematics for diploma studentsDiscrete mathematics for diploma students
Discrete mathematics for diploma students
 
Sets
SetsSets
Sets
 
POWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdfPOWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdf
 
4898850.ppt
4898850.ppt4898850.ppt
4898850.ppt
 
Mtk3013 chapter 2-3
Mtk3013   chapter 2-3Mtk3013   chapter 2-3
Mtk3013 chapter 2-3
 
2.1 Sets
2.1 Sets2.1 Sets
2.1 Sets
 
discrete maths notes.ppt
discrete maths notes.pptdiscrete maths notes.ppt
discrete maths notes.ppt
 
Set theory-ppt
Set theory-pptSet theory-ppt
Set theory-ppt
 
SETS
SETSSETS
SETS
 
Chap2_SETS_PDF.pdf
Chap2_SETS_PDF.pdfChap2_SETS_PDF.pdf
Chap2_SETS_PDF.pdf
 
Sets.pdf
Sets.pdfSets.pdf
Sets.pdf
 
Sets in discrete mathematics
Sets in discrete mathematicsSets in discrete mathematics
Sets in discrete mathematics
 
SETS - Vedantu.pdf
SETS - Vedantu.pdfSETS - Vedantu.pdf
SETS - Vedantu.pdf
 
Sets class 11
Sets class 11Sets class 11
Sets class 11
 
Discrete mathematics OR Structure
Discrete mathematics OR Structure Discrete mathematics OR Structure
Discrete mathematics OR Structure
 
pdf_20221016_194015_0000.pdf
pdf_20221016_194015_0000.pdfpdf_20221016_194015_0000.pdf
pdf_20221016_194015_0000.pdf
 
SET THEORY
SET THEORYSET THEORY
SET THEORY
 

More from allyn joy calcaben

CMSC 56 | Lecture 17: Matrices
CMSC 56 | Lecture 17: MatricesCMSC 56 | Lecture 17: Matrices
CMSC 56 | Lecture 17: Matricesallyn joy calcaben
 
CMSC 56 | Lecture 14: Representing Relations
CMSC 56 | Lecture 14: Representing RelationsCMSC 56 | Lecture 14: Representing Relations
CMSC 56 | Lecture 14: Representing Relationsallyn joy calcaben
 
CMSC 56 | Lecture 12: Recursive Definition & Algorithms, and Program Correctness
CMSC 56 | Lecture 12: Recursive Definition & Algorithms, and Program CorrectnessCMSC 56 | Lecture 12: Recursive Definition & Algorithms, and Program Correctness
CMSC 56 | Lecture 12: Recursive Definition & Algorithms, and Program Correctnessallyn joy calcaben
 
CMSC 56 | Lecture 11: Mathematical Induction
CMSC 56 | Lecture 11: Mathematical InductionCMSC 56 | Lecture 11: Mathematical Induction
CMSC 56 | Lecture 11: Mathematical Inductionallyn joy calcaben
 
CMSC 56 | Lecture 10: Integer Representations & Algorithms
CMSC 56 | Lecture 10: Integer Representations & AlgorithmsCMSC 56 | Lecture 10: Integer Representations & Algorithms
CMSC 56 | Lecture 10: Integer Representations & Algorithmsallyn joy calcaben
 
CMSC 56 | Lecture 9: Functions Representations
CMSC 56 | Lecture 9: Functions RepresentationsCMSC 56 | Lecture 9: Functions Representations
CMSC 56 | Lecture 9: Functions Representationsallyn joy calcaben
 
CMSC 56 | Lecture 8: Growth of Functions
CMSC 56 | Lecture 8: Growth of FunctionsCMSC 56 | Lecture 8: Growth of Functions
CMSC 56 | Lecture 8: Growth of Functionsallyn joy calcaben
 
CMSC 56 | Lecture 4: Rules of Inference
CMSC 56 | Lecture 4: Rules of InferenceCMSC 56 | Lecture 4: Rules of Inference
CMSC 56 | Lecture 4: Rules of Inferenceallyn joy calcaben
 
CMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 5: Proofs Methods and StrategyCMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 5: Proofs Methods and Strategyallyn joy calcaben
 
CMSC 56 | Lecture 3: Predicates & Quantifiers
CMSC 56 | Lecture 3: Predicates & QuantifiersCMSC 56 | Lecture 3: Predicates & Quantifiers
CMSC 56 | Lecture 3: Predicates & Quantifiersallyn joy calcaben
 
CMSC 56 | Lecture 2: Propositional Equivalences
CMSC 56 | Lecture 2: Propositional EquivalencesCMSC 56 | Lecture 2: Propositional Equivalences
CMSC 56 | Lecture 2: Propositional Equivalencesallyn joy calcaben
 
CMSC 56 | Lecture 1: Propositional Logic
CMSC 56 | Lecture 1: Propositional LogicCMSC 56 | Lecture 1: Propositional Logic
CMSC 56 | Lecture 1: Propositional Logicallyn joy calcaben
 
La Solidaridad and the Propaganda Movement
La Solidaridad and the Propaganda MovementLa Solidaridad and the Propaganda Movement
La Solidaridad and the Propaganda Movementallyn joy calcaben
 
Computer Vision: Feature matching with RANSAC Algorithm
Computer Vision: Feature matching with RANSAC AlgorithmComputer Vision: Feature matching with RANSAC Algorithm
Computer Vision: Feature matching with RANSAC Algorithmallyn joy calcaben
 
Chapter 7 expressions and assignment statements ii
Chapter 7 expressions and assignment statements iiChapter 7 expressions and assignment statements ii
Chapter 7 expressions and assignment statements iiallyn joy calcaben
 

More from allyn joy calcaben (16)

CMSC 56 | Lecture 17: Matrices
CMSC 56 | Lecture 17: MatricesCMSC 56 | Lecture 17: Matrices
CMSC 56 | Lecture 17: Matrices
 
CMSC 56 | Lecture 14: Representing Relations
CMSC 56 | Lecture 14: Representing RelationsCMSC 56 | Lecture 14: Representing Relations
CMSC 56 | Lecture 14: Representing Relations
 
CMSC 56 | Lecture 12: Recursive Definition & Algorithms, and Program Correctness
CMSC 56 | Lecture 12: Recursive Definition & Algorithms, and Program CorrectnessCMSC 56 | Lecture 12: Recursive Definition & Algorithms, and Program Correctness
CMSC 56 | Lecture 12: Recursive Definition & Algorithms, and Program Correctness
 
CMSC 56 | Lecture 11: Mathematical Induction
CMSC 56 | Lecture 11: Mathematical InductionCMSC 56 | Lecture 11: Mathematical Induction
CMSC 56 | Lecture 11: Mathematical Induction
 
CMSC 56 | Lecture 10: Integer Representations & Algorithms
CMSC 56 | Lecture 10: Integer Representations & AlgorithmsCMSC 56 | Lecture 10: Integer Representations & Algorithms
CMSC 56 | Lecture 10: Integer Representations & Algorithms
 
CMSC 56 | Lecture 9: Functions Representations
CMSC 56 | Lecture 9: Functions RepresentationsCMSC 56 | Lecture 9: Functions Representations
CMSC 56 | Lecture 9: Functions Representations
 
CMSC 56 | Lecture 8: Growth of Functions
CMSC 56 | Lecture 8: Growth of FunctionsCMSC 56 | Lecture 8: Growth of Functions
CMSC 56 | Lecture 8: Growth of Functions
 
CMSC 56 | Lecture 4: Rules of Inference
CMSC 56 | Lecture 4: Rules of InferenceCMSC 56 | Lecture 4: Rules of Inference
CMSC 56 | Lecture 4: Rules of Inference
 
CMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 5: Proofs Methods and StrategyCMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 5: Proofs Methods and Strategy
 
CMSC 56 | Lecture 3: Predicates & Quantifiers
CMSC 56 | Lecture 3: Predicates & QuantifiersCMSC 56 | Lecture 3: Predicates & Quantifiers
CMSC 56 | Lecture 3: Predicates & Quantifiers
 
CMSC 56 | Lecture 2: Propositional Equivalences
CMSC 56 | Lecture 2: Propositional EquivalencesCMSC 56 | Lecture 2: Propositional Equivalences
CMSC 56 | Lecture 2: Propositional Equivalences
 
CMSC 56 | Lecture 1: Propositional Logic
CMSC 56 | Lecture 1: Propositional LogicCMSC 56 | Lecture 1: Propositional Logic
CMSC 56 | Lecture 1: Propositional Logic
 
La Solidaridad and the Propaganda Movement
La Solidaridad and the Propaganda MovementLa Solidaridad and the Propaganda Movement
La Solidaridad and the Propaganda Movement
 
Computer Vision: Feature matching with RANSAC Algorithm
Computer Vision: Feature matching with RANSAC AlgorithmComputer Vision: Feature matching with RANSAC Algorithm
Computer Vision: Feature matching with RANSAC Algorithm
 
Chapter 7 expressions and assignment statements ii
Chapter 7 expressions and assignment statements iiChapter 7 expressions and assignment statements ii
Chapter 7 expressions and assignment statements ii
 
#11 osteoporosis
#11 osteoporosis#11 osteoporosis
#11 osteoporosis
 

Recently uploaded

Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 

Recently uploaded (20)

Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 

SETS & 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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. Note that the empty set and the set itself are members of this set of subsets.
  6. Sets are used to represent unordered collections. Ordered-n tuples are used to represent an ordered collection.