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

More Related Content

PPT
Partial-Orderings in Discrete Mathematics
PDF
Chapter 2: Relations
PPTX
Relations in Discrete Math
PPTX
CMSC 56 | Lecture 13: Relations and their Properties
PDF
Poset in Relations(Discrete Mathematics)
PDF
Linear algebra-Basis & Dimension
PPTX
CMSC 56 | Lecture 15: Closures of Relations
Partial-Orderings in Discrete Mathematics
Chapter 2: Relations
Relations in Discrete Math
CMSC 56 | Lecture 13: Relations and their Properties
Poset in Relations(Discrete Mathematics)
Linear algebra-Basis & Dimension
CMSC 56 | Lecture 15: Closures of Relations

What's hot (20)

DOCX
Function and Its Types.
PDF
Sets in discrete mathematics
PDF
Intro to Discrete Mathematics
PPTX
Graph Theory
PDF
Relation Hasse diagram
PPT
Predicates and Quantifiers
PPTX
Relations
PPTX
Planar graph
PPTX
Sets PowerPoint Presentation
PPT
Discrete Math Lecture 01: Propositional Logic
PPT
Infinite sequence and series
PPTX
Linear Combination, Span And Linearly Independent, Dependent Set
PPTX
Discrete Math Presentation(Rules of Inference)
PPTX
Section 11: Normal Subgroups
PPTX
Propositional logic
PPTX
Pigeonhole Principle,Cardinality,Countability
PPTX
Pigeonhole principle
PPT
Discrete mathematics
PPT
Set in discrete mathematics
Function and Its Types.
Sets in discrete mathematics
Intro to Discrete Mathematics
Graph Theory
Relation Hasse diagram
Predicates and Quantifiers
Relations
Planar graph
Sets PowerPoint Presentation
Discrete Math Lecture 01: Propositional Logic
Infinite sequence and series
Linear Combination, Span And Linearly Independent, Dependent Set
Discrete Math Presentation(Rules of Inference)
Section 11: Normal Subgroups
Propositional logic
Pigeonhole Principle,Cardinality,Countability
Pigeonhole principle
Discrete mathematics
Set in discrete mathematics
Ad

Similar to CMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering (20)

PPTX
3-4ffcb56540-leojlojjlojojjpcturer-6.pptx
PPT
24 partial-orderings
PPT
Partial Orderings by Rosen Mathematics Discrete
PPTX
BASIC CONCEPT OF SET THEORY - DISCRETE MATHEMATICS.pptx
PDF
BCA_Semester-II-Discrete Mathematics_unit-ii_Relation and ordering
PPTX
RACHIT MEENA B.C.A 1ST YEAR.pptx on topic relation
PDF
relations (1).pdf
PDF
PPTX
relation and operations power point presentation
PPTX
relation and operations 204 presentation
PPTX
Representing Relation in Hasse Diagram.pptx
PPTX
DSTL_Unit_3_Introduction_to_Partial_Order_set.pptx
PPT
Set Concepts
PDF
Ncert class-12-mathematics-part-1
PPTX
Unit-3 RELATIONS PARTIALLY ORDERED SETS (1).pptx
PDF
POWERPOINT (SETS & FUNCTIONS).pdf
PPTX
Set Theory - Unit -II (Mathematical Foundation Of Computer Science).pptx
PPTX
MIT Math Syllabus 10-3 Lesson 1: Sets and the real number system
PPTX
Hasse Diagram
3-4ffcb56540-leojlojjlojojjpcturer-6.pptx
24 partial-orderings
Partial Orderings by Rosen Mathematics Discrete
BASIC CONCEPT OF SET THEORY - DISCRETE MATHEMATICS.pptx
BCA_Semester-II-Discrete Mathematics_unit-ii_Relation and ordering
RACHIT MEENA B.C.A 1ST YEAR.pptx on topic relation
relations (1).pdf
relation and operations power point presentation
relation and operations 204 presentation
Representing Relation in Hasse Diagram.pptx
DSTL_Unit_3_Introduction_to_Partial_Order_set.pptx
Set Concepts
Ncert class-12-mathematics-part-1
Unit-3 RELATIONS PARTIALLY ORDERED SETS (1).pptx
POWERPOINT (SETS & FUNCTIONS).pdf
Set Theory - Unit -II (Mathematical Foundation Of Computer Science).pptx
MIT Math Syllabus 10-3 Lesson 1: Sets and the real number system
Hasse Diagram
Ad

More from allyn joy calcaben (17)

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

Recently uploaded (20)

PPTX
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PPTX
master seminar digital applications in india
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
PPTX
History, Philosophy and sociology of education (1).pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PPTX
Cell Structure & Organelles in detailed.
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
Orientation - ARALprogram of Deped to the Parents.pptx
PDF
Computing-Curriculum for Schools in Ghana
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Weekly quiz Compilation Jan -July 25.pdf
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
master seminar digital applications in india
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Microbial diseases, their pathogenesis and prophylaxis
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
History, Philosophy and sociology of education (1).pptx
Final Presentation General Medicine 03-08-2024.pptx
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Cell Structure & Organelles in detailed.
2.FourierTransform-ShortQuestionswithAnswers.pdf
A systematic review of self-coping strategies used by university students to ...
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Orientation - ARALprogram of Deped to the Parents.pptx
Computing-Curriculum for Schools in Ghana
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Weekly quiz Compilation Jan -July 25.pdf

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

Editor's Notes

  • #42: With matrices, we set the diagonal to all 1’s