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

CMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering
CMSC 56 | Lecture 16: Equivalence of Relations & Partial OrderingCMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering
CMSC 56 | Lecture 16: Equivalence of Relations & Partial Orderingallyn joy calcaben
 
Mathematical induction
Mathematical inductionMathematical induction
Mathematical inductionrey castro
 
THE RELATION BETWEEN THE ROOTS OF A QUADRATIC EQUATION
THE RELATION BETWEEN THE ROOTS OF A QUADRATIC EQUATIONTHE RELATION BETWEEN THE ROOTS OF A QUADRATIC EQUATION
THE RELATION BETWEEN THE ROOTS OF A QUADRATIC EQUATIONSKY HAWKS' ACADEMY
 
Modular arithmetic
Modular arithmeticModular arithmetic
Modular arithmeticsangeetha s
 
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
 
Principle of mathematical induction
Principle of mathematical inductionPrinciple of mathematical induction
Principle of mathematical inductionKriti Varshney
 
PRIM’S AND KRUSKAL’S ALGORITHM
PRIM’S AND KRUSKAL’S  ALGORITHMPRIM’S AND KRUSKAL’S  ALGORITHM
PRIM’S AND KRUSKAL’S ALGORITHMJaydeepDesai10
 
Relations
RelationsRelations
RelationsGaditek
 
Set Theory
Set TheorySet Theory
Set Theoryitutor
 
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
 
Recurrence relations
Recurrence relationsRecurrence relations
Recurrence relationsIIUM
 
6.5 determinant x
6.5 determinant x6.5 determinant x
6.5 determinant xmath260
 
A study on number theory and its applications
A study on number theory and its applicationsA study on number theory and its applications
A study on number theory and its applicationsItishree Dash
 

What's hot (20)

CMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering
CMSC 56 | Lecture 16: Equivalence of Relations & Partial OrderingCMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering
CMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering
 
Mathematical induction
Mathematical inductionMathematical induction
Mathematical induction
 
Properties of relations
Properties of relationsProperties of relations
Properties of relations
 
THE RELATION BETWEEN THE ROOTS OF A QUADRATIC EQUATION
THE RELATION BETWEEN THE ROOTS OF A QUADRATIC EQUATIONTHE RELATION BETWEEN THE ROOTS OF A QUADRATIC EQUATION
THE RELATION BETWEEN THE ROOTS OF A QUADRATIC EQUATION
 
Modular arithmetic
Modular arithmeticModular arithmetic
Modular arithmetic
 
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
 
Number theory
Number theoryNumber theory
Number theory
 
2.2 Set Operations
2.2 Set Operations2.2 Set Operations
2.2 Set Operations
 
Principle of mathematical induction
Principle of mathematical inductionPrinciple of mathematical induction
Principle of mathematical induction
 
PRIM’S AND KRUSKAL’S ALGORITHM
PRIM’S AND KRUSKAL’S  ALGORITHMPRIM’S AND KRUSKAL’S  ALGORITHM
PRIM’S AND KRUSKAL’S ALGORITHM
 
Relations
RelationsRelations
Relations
 
Set Theory
Set TheorySet Theory
Set Theory
 
CMSC 56 | Lecture 11: Mathematical Induction
CMSC 56 | Lecture 11: Mathematical InductionCMSC 56 | Lecture 11: Mathematical Induction
CMSC 56 | Lecture 11: Mathematical Induction
 
Set Theory
Set TheorySet Theory
Set Theory
 
Recurrence relations
Recurrence relationsRecurrence relations
Recurrence relations
 
Relations in Discrete Math
Relations in Discrete MathRelations in Discrete Math
Relations in Discrete Math
 
Radicals
RadicalsRadicals
Radicals
 
Operations on sets
Operations on setsOperations on sets
Operations on sets
 
6.5 determinant x
6.5 determinant x6.5 determinant x
6.5 determinant x
 
A study on number theory and its applications
A study on number theory and its applicationsA study on number theory and its applications
A study on number theory and its applications
 

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 and their introduction and their exercises.pptx
sets and their introduction and their exercises.pptxsets and their introduction and their exercises.pptx
sets and their introduction and their exercises.pptxZenLooper
 
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
 

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 and their introduction and their exercises.pptx
sets and their introduction and their exercises.pptxsets and their introduction and their exercises.pptx
sets and their introduction and their exercises.pptx
 
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
 

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 15: Closures of Relations
CMSC 56 | Lecture 15: Closures of RelationsCMSC 56 | Lecture 15: Closures of Relations
CMSC 56 | Lecture 15: Closures of Relationsallyn 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 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
 
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 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 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 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 (15)

CMSC 56 | Lecture 17: Matrices
CMSC 56 | Lecture 17: MatricesCMSC 56 | Lecture 17: Matrices
CMSC 56 | Lecture 17: Matrices
 
CMSC 56 | Lecture 15: Closures of Relations
CMSC 56 | Lecture 15: Closures of RelationsCMSC 56 | Lecture 15: Closures of Relations
CMSC 56 | Lecture 15: Closures of Relations
 
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 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
 
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 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 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 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

Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 

Recently uploaded (20)

Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 

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.