8.5 Equivalence Relations

Slides:



Advertisements
Similar presentations
Section 7.5: Equivalence Relations Def: A relation R on a set A is called an equivalence relation if it is reflexive, symmetric, and transitive. Ex: Let.
Advertisements

Equivalence Relations
Equivalence Relations
Relations Relations on a Set. Properties of Relations.
CSE115/ENGR160 Discrete Mathematics 04/26/12 Ming-Hsuan Yang UC Merced 1.
8.3 Representing Relations Connection Matrices Let R be a relation from A = {a 1, a 2,..., a m } to B = {b 1, b 2,..., b n }. Definition: A n m  n connection.
1 Chapter Equivalence, Order, and Inductive Proof.
Chap6 Relations Def 1: Let A and B be sets. A binary relation from A
Representing Relations Using Matrices
Applied Discrete Mathematics Week 11: Graphs
8.4 Closures of Relations. Intro Consider the following example (telephone line, bus route,…) abc d Is R, defined above on the set A={a, b, c, d}, transitive?
Relations Chapter 9.
Chapter 9 1. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing.
Applied Discrete Mathematics Week 10: Equivalence Relations
Equivalence Relations MSU CSE 260. Outline Introduction Equivalence Relations –Definition, Examples Equivalence Classes –Definition Equivalence Classes.
Chapter Relations and Their Properties 8.2 n-ary Relations and Their Applications 8.3 Representing Relations 8.4 Closures of Relations 8.5 Equivalence.
Properties of Relations In many applications to computer science and applied mathematics, we deal with relations on a set A rather than relations from.
Chapter 4 Relations and Digraphs
Chapter 9. Chapter Summary Relations and Their Properties Representing Relations Equivalence Relations Partial Orderings.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
Discrete Math for CS Binary Relation: A binary relation between sets A and B is a subset of the Cartesian Product A x B. If A = B we say that the relation.
2.6 Equivalence Relation §1.Equivalence relation §Definition 2.18: A relation R on a set A is called an equivalence relation if it is reflexive, symmetric,
Chapter 9. Section 9.1 Binary Relations Definition: A binary relation R from a set A to a set B is a subset R ⊆ A × B. Example: Let A = { 0, 1,2 } and.
Relations, Functions, and Matrices Mathematical Structures for Computer Science Chapter 4 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Relations, Functions.
1 Closures of Relations: Transitive Closure and Partitions Sections 8.4 and 8.5.
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Chapter 8 Relations 歐亞書局.
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
Rosen, Section 8.5 Equivalence Relations
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Relations.
Relations and their Properties
CHAPTER 3 FUZZY RELATION and COMPOSITION. 3.1 Crisp relation Product set Definition (Product set) Let A and B be two non-empty sets, the product.
Relation. Combining Relations Because relations from A to B are subsets of A x B, two relations from A to B can be combined in any way two sets can be.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
Section 7.5 Equivalence Relations Longin Jan Latecki Temple University, Philadelphia
Chapter Relations and Their Properties
Chapter 8: Relations. 8.1 Relations and Their Properties Binary relations: Let A and B be any two sets. A binary relation R from A to B, written R : A.
8.4 Closures of Relations Definition: The closure of a relation R with respect to property P is the relation obtained by adding the minimum number of.
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
1 Section 4.2 Equivalence Relations A binary relation is an equivalence relation if it has the three properties reflexive, symmetric, and transitive (RST).
1 Equivalence relations Binary relations: –Let S1 and S2 be two sets, and R be a (binary relation) from S1 to S2 –Not every x in S1 and y in S2 have such.
Equivalence Relations Lecture 45 Section 10.3 Fri, Apr 8, 2005.
MAT 2720 Discrete Mathematics Section 3.3 Relations
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications (5 th Edition) Kenneth H. Rosen Chapter 7 Relations.
§R1∪R2§R1∪R2 §R 1 ∩R 2 R1-R2R1-R2 2.4 Operations on Relations.
§ 第 3 周起每周一交作业,作业成绩占总成绩的 15% ; § 平时不定期的进行小测验,占总成绩的 15% ; § 期中考试成绩占总成绩的 20% ;期终考试成绩占总成绩的 50% § 张宓
Section 9.3. Section Summary Representing Relations using Matrices Representing Relations using Digraphs.
Chapter8 Relations 8.1: Relations and their properties.
Binary Relation: A binary relation between sets A and B is a subset of the Cartesian Product A x B. If A = B we say that the relation is a relation on.
Relations Chapter 9 Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill.
The Relation Induced by a Partition
Representing Relations Using Digraphs
Relations and Their Properties
Citra Noviyasari, S.Si, MT
CSE15 Discrete Mathematics 05/03/17
Introduction to Relations
Relations Binary relations represent relationships between the elements of two sets. A binary relation R from set A to set B is defined by: R  A 
Equivalence Relations
Relations Chapter 9.
Reflexivity, Symmetry, and Transitivity
Chapter 3 The Real Numbers.
Chapter 2 Sets and Functions.
8.5 Equivalence Relations
Discrete Math (2) Haiming Chen Associate Professor, PhD
Chapter 3 The Real Numbers.
9.5 Equivalence Relations
Equivalence relations
Equivalence Relations
Equivalence Relations
Rayat Shikshan Sanstha’s S.M.Joshi College, Hadapsar -28
Chapter 8 (Part 2): Relations
Presentation transcript:

8.5 Equivalence Relations Now we group properties of relations together to define new types of important relations. Definition: A relation R on a set A is an equivalence relation iff R is • reflexive • symmetric • transitive

Equivalence Relations It is easy to recognize equivalence relations using digraphs. The subset of all elements related to a particular element forms a universal relation (contains all possible arcs) on that subset. The (sub)digraph representing the subset is called a complete (sub)digraph. All arcs are present. • The number of such subsets is called the rank of the equivalence relation.

Equivalence Relations Example: A has 3 elements:

Equivalence Relations Each of the subsets is called an equivalence class. A bracket around an element means the equivalence class in which the element lies. [x] = {y | <x, y> is in R} The element in the bracket is called a representative of the equivalence class. We could have chosen any one. Example: [a] = {a, c}, [c] = {a, c}, [b] = {b}. rank = 2

Equivalence Relations Definition: Let S1, S2, . . ., Sn be a collection of subsets of A. Then the collection forms a partition of A if the subsets are nonempty, disjoint and exhaust A: Si ¹ Æ Si Ç Sj = Æ if i ¹ j ∪Si = A FIGURE 1 A Partition of a Set.

Equivalence Relations Theorem: The equivalence classes of an equivalence relation R partition the set A into disjoint nonempty subsets whose union is the entire set. This partition is denoted A/R and called -- the quotient set, or -- the partition of A induced by R, or, -- A modulo R. Example : A = [a] È[b] = [a] È[c] = {a} È {b,c} rank = 2

Equivalence Relations Theorem: Let R be an equivalence relation on A. Then either [a] = [b] Or [a] Ç[b] = Æ Theorem: If R1 and R2 are equivalence relations on A then R1 Ç R2 is an equivalence relation on A.

Equivalence Relations Definition: Let R be a relation on A. Then the reflexive, symmetric, transitive closure of R, tsr(R), is an equivalence relation on A, called the equivalence relation induced by R. Example: tsr(R) rank = 2 A = [a] È[b] = {a} È{b, c, d} ; A/R = {{a}, {b, c, d}}

Equivalence Relations Theorem: tsr(R) is an equivalence relation Proof: We have to be careful and show that tsr(R) is still symmetric and reflexive. Since we only add arcs vs. deleting arcs when computing closures it must be that tsr(R) is reflexive since all loops <x, x> on the diagraph must be present when constructing r(R). If there is an arc <x, y> then the symmetric closure of r(R) ensures there is an arc <y, x>.

Equivalence Relations Now argue that if we construct the transitive closure of sr(R) and we add an edge <x, z> because there is a path from x to z, then there must also exist a path from z to x (why?) and hence we also must add an edge <z, x>. Hence the transitive closure of sr(R) is symmetric. Q.E.D