SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

La actualidad más candente

Pigeonhole Principle,Cardinality,Countability
Pigeonhole Principle,Cardinality,CountabilityPigeonhole Principle,Cardinality,Countability
Pigeonhole Principle,Cardinality,CountabilityKiran Munir
 
Set Theory
Set TheorySet Theory
Set Theoryitutor
 
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
 
Relations digraphs
Relations  digraphsRelations  digraphs
Relations digraphsIIUM
 
Predicates and Quantifiers
Predicates and QuantifiersPredicates and Quantifiers
Predicates and Quantifiersblaircomp2003
 
Mathematical induction
Mathematical inductionMathematical induction
Mathematical inductionrey castro
 
Independence, basis and dimension
Independence, basis and dimensionIndependence, basis and dimension
Independence, basis and dimensionATUL KUMAR YADAV
 
Infinite series
Infinite seriesInfinite series
Infinite seriesjaflint718
 
Poset in Relations(Discrete Mathematics)
Poset in Relations(Discrete Mathematics)Poset in Relations(Discrete Mathematics)
Poset in Relations(Discrete Mathematics)Rachana Pathak
 
Relation Hasse diagram
Relation Hasse diagramRelation Hasse diagram
Relation Hasse diagramRachana Pathak
 
Linear Algebra and Matrix
Linear Algebra and MatrixLinear Algebra and Matrix
Linear Algebra and Matrixitutor
 
Relations
RelationsRelations
RelationsGaditek
 
Introduction to set theory
Introduction to set theoryIntroduction to set theory
Introduction to set theoryRaju Ahmed Rony
 
Logical equivalence, laws of logic
Logical equivalence, laws of logicLogical equivalence, laws of logic
Logical equivalence, laws of logicLakshmi R
 

La actualidad más candente (20)

Real analysis
Real analysis Real analysis
Real analysis
 
Pigeonhole Principle,Cardinality,Countability
Pigeonhole Principle,Cardinality,CountabilityPigeonhole Principle,Cardinality,Countability
Pigeonhole Principle,Cardinality,Countability
 
Set Theory
Set TheorySet Theory
Set Theory
 
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
 
2.2 Set Operations
2.2 Set Operations2.2 Set Operations
2.2 Set Operations
 
Relations digraphs
Relations  digraphsRelations  digraphs
Relations digraphs
 
Predicates and Quantifiers
Predicates and QuantifiersPredicates and Quantifiers
Predicates and Quantifiers
 
Discrete mathematics
Discrete mathematicsDiscrete mathematics
Discrete mathematics
 
Mathematical induction
Mathematical inductionMathematical induction
Mathematical induction
 
Independence, basis and dimension
Independence, basis and dimensionIndependence, basis and dimension
Independence, basis and dimension
 
Infinite series
Infinite seriesInfinite series
Infinite series
 
Poset in Relations(Discrete Mathematics)
Poset in Relations(Discrete Mathematics)Poset in Relations(Discrete Mathematics)
Poset in Relations(Discrete Mathematics)
 
Operations on sets
Operations on setsOperations on sets
Operations on sets
 
Relation Hasse diagram
Relation Hasse diagramRelation Hasse diagram
Relation Hasse diagram
 
Linear Algebra and Matrix
Linear Algebra and MatrixLinear Algebra and Matrix
Linear Algebra and Matrix
 
Relations
RelationsRelations
Relations
 
Formal Logic - Lesson 5 - Logical Equivalence
Formal Logic - Lesson 5 - Logical EquivalenceFormal Logic - Lesson 5 - Logical Equivalence
Formal Logic - Lesson 5 - Logical Equivalence
 
Introduction to set theory
Introduction to set theoryIntroduction to set theory
Introduction to set theory
 
Introduction to set theory
Introduction to set theoryIntroduction to set theory
Introduction to set theory
 
Logical equivalence, laws of logic
Logical equivalence, laws of logicLogical equivalence, laws of logic
Logical equivalence, laws of logic
 

Similar a 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
 

Similar a 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
 

Más de 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 6: Sets & Set Operations
CMSC 56 | Lecture 6: Sets & Set OperationsCMSC 56 | Lecture 6: Sets & Set Operations
CMSC 56 | Lecture 6: Sets & Set Operationsallyn 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
 

Más de allyn joy calcaben (17)

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 6: Sets & Set Operations
CMSC 56 | Lecture 6: Sets & Set OperationsCMSC 56 | Lecture 6: Sets & Set Operations
CMSC 56 | Lecture 6: Sets & Set Operations
 
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
 

Último

NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 

Último (20)

NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 

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

Notas del editor

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