SlideShare ist ein Scribd-Unternehmen logo
1 von 41
Equivalence of Relations
& Partial Ordering
Lecture 16, CMSC 56
Allyn Joy D. Calcaben
Equivalence
Equivalence
Definition 1
A relation on a set A is called an equivalence relation if it is
reflexive, symmetric, and transitive.
Equivalence
Definition 2
Two elements a and b that are related by an equivalence relation
are called equivalent.
Equivalence
Definition 2
Two elements a and b that are related by an equivalence relation
are called equivalent.
The notation a ~ b is often used to denote that a and b are
equivalent elements with respect to a particular equivalence
relation.
Example
Let R be the relation on the set of integers such that aRb if and
only if a = b or a = -b. Is R an equivalence relation?
Solution
Let R be the relation on the set of integers such that aRb if and
only if a = b or a = -b. Is R an equivalence relation?
YES
Example
Let R be the relation on the set of real numbers such that aRb if
and only if a − b is an integer. Is R an equivalence relation?
Solution
Let R be the relation on the set of real numbers such that aRb if
and only if a − b is an integer. Is R an equivalence relation?
YES
Example
Let R be the relation on the set of real numbers such that aRb if
and only if a − b is a positive integer. Is R an equivalence relation?
Solution
Let R be the relation on the set of real numbers such that aRb if
and only if a − b is a positive integer. Is R an equivalence relation?
NO
Example
Is the “divides” relation on the set of positive integers an
equivalence relation?
Solution
Is the “divides” relation on the set of positive integers an
equivalence relation?
NO
Equivalence Class
Definition 3
Let R be an equivalence relation on a set A. The set of all elements
that are related to an element a of A is called the equivalence
class of a.
Equivalence Class
Definition 3
Let R be an equivalence relation on a set A. The set of all elements
that are related to an element a of A is called the equivalence
class of a.
The equivalence class of a with respect to R is denoted by [a]R.
When only one relation is under consideration, we can delete the
subscript R and write [a] for this equivalence class.
Equivalence Class
In other words, if R is an equivalence relation on a set A, the
equivalence class of the element a is [a]R = { b | (a, b) ∈ R }.
If b ∈ [a]R, then b is called a representative of this equivalence
class
Example
Given the equivalence relation R = {(1,1), (1,2), (1,3), (2,1), (2,2),
(2,3), (3,1), (3,2), (3,3), (4,4), (5,5)} on set {1, 2, 3, 4, 5}.
Find [1], [2], [3], [4], and [5].
Solution
Given the equivalence relation R = {(1,1), (1,2), (1,3), (2,1), (2,2),
(2,3), (3,1), (3,2), (3,3), (4,4), (5,5)} on set {1, 2, 3, 4, 5}.
Find [1], [2], [3], [4], and [5].
[1] = {1, 2, 3} [4] = {4}
[2] = {1, 2, 3} [5] = {5}
[3] = {1, 2, 3}
Example
What is the equivalence class of an integer for the equivalence
relation such that aRb if and only if a = b or a = −b?
Solution
What is the equivalence class of an integer for the equivalence
relation such that aRb if and only if a = b or a = −b?
[a] = { –a, a }.
This set contains two distinct integers unless a = 0.
Solution
What is the equivalence class of an integer for the equivalence
relation such that aRb if and only if a = b or a = −b?
[a] = { –a, a }.
This set contains two distinct integers unless a = 0.
For instance, [ 7 ] = { −7, 7 },
[−5] = {−5, 5 }, and
[0] = {0}
Partial Orderings
Partial Orderings
Definition 1
A relation R on a set S is called a partial ordering or partial order if
it is reflexive, antisymmetric, and transitive.
Partial Orderings
Definition 1
A relation R on a set S is called a partial ordering or partial order if
it is reflexive, antisymmetric, and transitive.
A set S together with a partial ordering R is called a partially
ordered set, or poset, and is denoted by (S,R). Members of S are
called elements of the poset.
Example
Is the “divides” relation a partial ordering on the set of positive
integers?
Solution
Is the “divides” relation a partial ordering on the set of positive
integers?
(Z+, |) is a poset
Partial Ordering
Definition 2
The elements a and b of a poset (S, ≼ ) are called comparable if
either a ≼ b or b ≼ a.
When a and b are elements of S such that neither a ≼ b nor b ≼ a,
a and b are called incomparable.
Example
Are all the elements in the poset (Z+, |) comparable?
Solution
Are all the elements in the poset (Z+, |) comparable?
NO
For instance: 3 | 7 and 7 | 3
Partial Ordering
The adjective “partial” is used to describe partial orderings
because pairs of elements may be incomparable.
When every two elements in the set are comparable, the relation
is called a total ordering.
Partial Ordering
Definition 3
If (S, ≼ ) is a poset and every two elements of S are comparable, S
is called a totally ordered or linearly ordered set, and ≼ is called a
total order or a linear order. A totally ordered set is also called a
chain.
Example
Are all the elements in the poset (Z, ≤) comparable?
Solution
Are all the elements in the poset (Z, ≤) comparable?
Yes
The poset (Z, ≤) is totally ordered.
Hasse Diagrams
Consider the directed graph for the partial ordering { (a, b) | a ≤ b } on the
set {1, 2, 3, 4}
Hasse Diagrams
Consider the directed graph for the partial ordering { (a, b) | a ≤ b } on the
set {1, 2, 3, 4}
1. Start with the directed graph for this relation
Hasse Diagrams
Consider the directed graph for the partial ordering { (a, b) | a ≤ b } on the
set {1, 2, 3, 4}
1. Start with the directed graph for this relation
2. Because a partial ordering is reflexive, a loop (a, a) is present at every
vertex a. Remove these loops.
Hasse Diagrams
Consider the directed graph for the partial ordering { (a, b) | a ≤ b } on the
set {1, 2, 3, 4}
1. Start with the directed graph for this relation
2. Because a partial ordering is reflexive, a loop (a, a) is present at every
vertex a. Remove these loops.
3. Next, remove all edges that must be in the partial ordering because of
the presence of other edges and transitivity.
Hasse Diagrams
Consider the directed graph for the partial ordering { (a, b) | a ≤ b } on the
set {1, 2, 3, 4}
1. Start with the directed graph for this relation
2. Because a partial ordering is reflexive, a loop (a, a) is present at every
vertex a. Remove these loops.
3. Next, remove all edges that must be in the partial ordering because of
the presence of other edges and transitivity.
4. Finally, arrange each edge so that its initial vertex is below its terminal
vertex. Remove all the arrows on the directed edges, because all edges
point “upward” toward their terminal vertex.
Example
Draw the Hasse diagram representing the partial ordering { (a, b) |a divides
b } on {1, 2, 3, 4, 6, 8, 12}.
Any Question?
oSet
November 12 – December 05
41
Reminders

Weitere ähnliche Inhalte

Was ist angesagt?

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
 
Relations
RelationsRelations
RelationsGaditek
 
Functions in discrete mathematics
Functions in discrete mathematicsFunctions in discrete mathematics
Functions in discrete mathematicsRachana Pathak
 
Discrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكرو
Discrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكروDiscrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكرو
Discrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكروDr. Khaled Bakro
 
Mathematical Induction
Mathematical InductionMathematical Induction
Mathematical InductionEdelyn Cagas
 
Poset in Relations(Discrete Mathematics)
Poset in Relations(Discrete Mathematics)Poset in Relations(Discrete Mathematics)
Poset in Relations(Discrete Mathematics)Rachana Pathak
 
Relation matrix & graphs in relations
Relation matrix &  graphs in relationsRelation matrix &  graphs in relations
Relation matrix & graphs in relationsRachana Pathak
 
Mathematical induction
Mathematical inductionMathematical induction
Mathematical inductionrey castro
 
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
 
Principle of mathematical induction
Principle of mathematical inductionPrinciple of mathematical induction
Principle of mathematical inductionKriti Varshney
 
Group abstract algebra
Group  abstract algebraGroup  abstract algebra
Group abstract algebraNaliniSPatil
 

Was ist angesagt? (20)

CMSC 56 | Lecture 14: Representing Relations
CMSC 56 | Lecture 14: Representing RelationsCMSC 56 | Lecture 14: Representing Relations
CMSC 56 | Lecture 14: Representing Relations
 
Relations
RelationsRelations
Relations
 
Set in discrete mathematics
Set in discrete mathematicsSet in discrete mathematics
Set in discrete mathematics
 
Relations in Discrete Math
Relations in Discrete MathRelations in Discrete Math
Relations in Discrete Math
 
Relations
RelationsRelations
Relations
 
Functions in discrete mathematics
Functions in discrete mathematicsFunctions in discrete mathematics
Functions in discrete mathematics
 
Discrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكرو
Discrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكروDiscrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكرو
Discrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكرو
 
Mathematical Induction
Mathematical InductionMathematical Induction
Mathematical Induction
 
Hasse diagram
Hasse diagramHasse diagram
Hasse diagram
 
Relations
RelationsRelations
Relations
 
Poset in Relations(Discrete Mathematics)
Poset in Relations(Discrete Mathematics)Poset in Relations(Discrete Mathematics)
Poset in Relations(Discrete Mathematics)
 
Sets, functions and groups
Sets, functions and groupsSets, functions and groups
Sets, functions and groups
 
Abstract Algebra
Abstract AlgebraAbstract Algebra
Abstract Algebra
 
Relation matrix & graphs in relations
Relation matrix &  graphs in relationsRelation matrix &  graphs in relations
Relation matrix & graphs in relations
 
Group Theory
Group TheoryGroup Theory
Group Theory
 
Mathematical induction
Mathematical inductionMathematical induction
Mathematical induction
 
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
 
Principle of mathematical induction
Principle of mathematical inductionPrinciple of mathematical induction
Principle of mathematical induction
 
Group abstract algebra
Group  abstract algebraGroup  abstract algebra
Group abstract algebra
 
Types of RELATIONS
Types of RELATIONSTypes of RELATIONS
Types of RELATIONS
 

Ähnlich wie CMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering

Relational Algebra (1).pptx
Relational Algebra (1).pptxRelational Algebra (1).pptx
Relational Algebra (1).pptxSarowarSuman
 
Week 5 ( basic concept of relation )
Week 5 ( basic concept of relation )Week 5 ( basic concept of relation )
Week 5 ( basic concept of relation )OliverBaltazar2
 
Presentation2 vijayan pillai
Presentation2 vijayan pillaiPresentation2 vijayan pillai
Presentation2 vijayan pillaiunni2012
 
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Himanshu Dua
 
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Himanshu Dua
 
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Himanshu Dua
 
dm_13_RelationsAndTheirProperties (1).pptx
dm_13_RelationsAndTheirProperties (1).pptxdm_13_RelationsAndTheirProperties (1).pptx
dm_13_RelationsAndTheirProperties (1).pptxRockyIslam5
 
Relations
RelationsRelations
RelationsNiliha
 
Ncert class-12-mathematics-part-1
Ncert class-12-mathematics-part-1Ncert class-12-mathematics-part-1
Ncert class-12-mathematics-part-1RAHUL SINGH
 
dm_13_RelationsAndTheirProperties (1).pdf
dm_13_RelationsAndTheirProperties (1).pdfdm_13_RelationsAndTheirProperties (1).pdf
dm_13_RelationsAndTheirProperties (1).pdfSanjanaAdri
 
Top school in delhi
Top school in delhiTop school in delhi
Top school in delhiEdhole.com
 

Ähnlich wie CMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering (20)

Relational Algebra (1).pptx
Relational Algebra (1).pptxRelational Algebra (1).pptx
Relational Algebra (1).pptx
 
Sets and relations
Sets and relationsSets and relations
Sets and relations
 
G-1-SETS.pdf
G-1-SETS.pdfG-1-SETS.pdf
G-1-SETS.pdf
 
Week 5 ( basic concept of relation )
Week 5 ( basic concept of relation )Week 5 ( basic concept of relation )
Week 5 ( basic concept of relation )
 
Lemh101
Lemh101Lemh101
Lemh101
 
24 partial-orderings
24 partial-orderings24 partial-orderings
24 partial-orderings
 
Relations
RelationsRelations
Relations
 
Chap2_SETS_PDF.pdf
Chap2_SETS_PDF.pdfChap2_SETS_PDF.pdf
Chap2_SETS_PDF.pdf
 
Presentation2 vijayan pillai
Presentation2 vijayan pillaiPresentation2 vijayan pillai
Presentation2 vijayan pillai
 
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)
 
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)
 
Final relation1 m_tech(cse)
Final relation1 m_tech(cse)Final relation1 m_tech(cse)
Final relation1 m_tech(cse)
 
Per5 relasi
Per5 relasiPer5 relasi
Per5 relasi
 
dm_13_RelationsAndTheirProperties (1).pptx
dm_13_RelationsAndTheirProperties (1).pptxdm_13_RelationsAndTheirProperties (1).pptx
dm_13_RelationsAndTheirProperties (1).pptx
 
Relations
RelationsRelations
Relations
 
Ncert class-12-mathematics-part-1
Ncert class-12-mathematics-part-1Ncert class-12-mathematics-part-1
Ncert class-12-mathematics-part-1
 
dm_13_RelationsAndTheirProperties (1).pdf
dm_13_RelationsAndTheirProperties (1).pdfdm_13_RelationsAndTheirProperties (1).pdf
dm_13_RelationsAndTheirProperties (1).pdf
 
Introductions to Relations
Introductions to RelationsIntroductions to Relations
Introductions to Relations
 
Top school in delhi
Top school in delhiTop school in delhi
Top school in delhi
 
Modern algebra
Modern algebraModern algebra
Modern algebra
 

Mehr von 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 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
 

Mehr von 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 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
 

Kürzlich hochgeladen

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
 
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
 
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
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
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
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
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
 
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
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 

Kürzlich hochgeladen (20)

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
 
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"
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
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
 
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
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
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 ...
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
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
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 

CMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering

  • 1. Equivalence of Relations & Partial Ordering Lecture 16, CMSC 56 Allyn Joy D. Calcaben
  • 3. Equivalence Definition 1 A relation on a set A is called an equivalence relation if it is reflexive, symmetric, and transitive.
  • 4. Equivalence Definition 2 Two elements a and b that are related by an equivalence relation are called equivalent.
  • 5. Equivalence Definition 2 Two elements a and b that are related by an equivalence relation are called equivalent. The notation a ~ b is often used to denote that a and b are equivalent elements with respect to a particular equivalence relation.
  • 6. Example Let R be the relation on the set of integers such that aRb if and only if a = b or a = -b. Is R an equivalence relation?
  • 7. Solution Let R be the relation on the set of integers such that aRb if and only if a = b or a = -b. Is R an equivalence relation? YES
  • 8. Example Let R be the relation on the set of real numbers such that aRb if and only if a − b is an integer. Is R an equivalence relation?
  • 9. Solution Let R be the relation on the set of real numbers such that aRb if and only if a − b is an integer. Is R an equivalence relation? YES
  • 10. Example Let R be the relation on the set of real numbers such that aRb if and only if a − b is a positive integer. Is R an equivalence relation?
  • 11. Solution Let R be the relation on the set of real numbers such that aRb if and only if a − b is a positive integer. Is R an equivalence relation? NO
  • 12. Example Is the “divides” relation on the set of positive integers an equivalence relation?
  • 13. Solution Is the “divides” relation on the set of positive integers an equivalence relation? NO
  • 14. Equivalence Class Definition 3 Let R be an equivalence relation on a set A. The set of all elements that are related to an element a of A is called the equivalence class of a.
  • 15. Equivalence Class Definition 3 Let R be an equivalence relation on a set A. The set of all elements that are related to an element a of A is called the equivalence class of a. The equivalence class of a with respect to R is denoted by [a]R. When only one relation is under consideration, we can delete the subscript R and write [a] for this equivalence class.
  • 16. Equivalence Class In other words, if R is an equivalence relation on a set A, the equivalence class of the element a is [a]R = { b | (a, b) ∈ R }. If b ∈ [a]R, then b is called a representative of this equivalence class
  • 17. Example Given the equivalence relation R = {(1,1), (1,2), (1,3), (2,1), (2,2), (2,3), (3,1), (3,2), (3,3), (4,4), (5,5)} on set {1, 2, 3, 4, 5}. Find [1], [2], [3], [4], and [5].
  • 18. Solution Given the equivalence relation R = {(1,1), (1,2), (1,3), (2,1), (2,2), (2,3), (3,1), (3,2), (3,3), (4,4), (5,5)} on set {1, 2, 3, 4, 5}. Find [1], [2], [3], [4], and [5]. [1] = {1, 2, 3} [4] = {4} [2] = {1, 2, 3} [5] = {5} [3] = {1, 2, 3}
  • 19. Example What is the equivalence class of an integer for the equivalence relation such that aRb if and only if a = b or a = −b?
  • 20. Solution What is the equivalence class of an integer for the equivalence relation such that aRb if and only if a = b or a = −b? [a] = { –a, a }. This set contains two distinct integers unless a = 0.
  • 21. Solution What is the equivalence class of an integer for the equivalence relation such that aRb if and only if a = b or a = −b? [a] = { –a, a }. This set contains two distinct integers unless a = 0. For instance, [ 7 ] = { −7, 7 }, [−5] = {−5, 5 }, and [0] = {0}
  • 23. Partial Orderings Definition 1 A relation R on a set S is called a partial ordering or partial order if it is reflexive, antisymmetric, and transitive.
  • 24. Partial Orderings Definition 1 A relation R on a set S is called a partial ordering or partial order if it is reflexive, antisymmetric, and transitive. A set S together with a partial ordering R is called a partially ordered set, or poset, and is denoted by (S,R). Members of S are called elements of the poset.
  • 25. Example Is the “divides” relation a partial ordering on the set of positive integers?
  • 26. Solution Is the “divides” relation a partial ordering on the set of positive integers? (Z+, |) is a poset
  • 27. Partial Ordering Definition 2 The elements a and b of a poset (S, ≼ ) are called comparable if either a ≼ b or b ≼ a. When a and b are elements of S such that neither a ≼ b nor b ≼ a, a and b are called incomparable.
  • 28. Example Are all the elements in the poset (Z+, |) comparable?
  • 29. Solution Are all the elements in the poset (Z+, |) comparable? NO For instance: 3 | 7 and 7 | 3
  • 30. Partial Ordering The adjective “partial” is used to describe partial orderings because pairs of elements may be incomparable. When every two elements in the set are comparable, the relation is called a total ordering.
  • 31. Partial Ordering Definition 3 If (S, ≼ ) is a poset and every two elements of S are comparable, S is called a totally ordered or linearly ordered set, and ≼ is called a total order or a linear order. A totally ordered set is also called a chain.
  • 32. Example Are all the elements in the poset (Z, ≤) comparable?
  • 33. Solution Are all the elements in the poset (Z, ≤) comparable? Yes The poset (Z, ≤) is totally ordered.
  • 34. Hasse Diagrams Consider the directed graph for the partial ordering { (a, b) | a ≤ b } on the set {1, 2, 3, 4}
  • 35. Hasse Diagrams Consider the directed graph for the partial ordering { (a, b) | a ≤ b } on the set {1, 2, 3, 4} 1. Start with the directed graph for this relation
  • 36. Hasse Diagrams Consider the directed graph for the partial ordering { (a, b) | a ≤ b } on the set {1, 2, 3, 4} 1. Start with the directed graph for this relation 2. Because a partial ordering is reflexive, a loop (a, a) is present at every vertex a. Remove these loops.
  • 37. Hasse Diagrams Consider the directed graph for the partial ordering { (a, b) | a ≤ b } on the set {1, 2, 3, 4} 1. Start with the directed graph for this relation 2. Because a partial ordering is reflexive, a loop (a, a) is present at every vertex a. Remove these loops. 3. Next, remove all edges that must be in the partial ordering because of the presence of other edges and transitivity.
  • 38. Hasse Diagrams Consider the directed graph for the partial ordering { (a, b) | a ≤ b } on the set {1, 2, 3, 4} 1. Start with the directed graph for this relation 2. Because a partial ordering is reflexive, a loop (a, a) is present at every vertex a. Remove these loops. 3. Next, remove all edges that must be in the partial ordering because of the presence of other edges and transitivity. 4. Finally, arrange each edge so that its initial vertex is below its terminal vertex. Remove all the arrows on the directed edges, because all edges point “upward” toward their terminal vertex.
  • 39. Example Draw the Hasse diagram representing the partial ordering { (a, b) |a divides b } on {1, 2, 3, 4, 6, 8, 12}.
  • 41. oSet November 12 – December 05 41 Reminders

Hinweis der Redaktion

  1. With matrices, we set the diagonal to all 1’s