Equivalence Relations

Slides:



Advertisements
Similar presentations
Equivalence Relations
Advertisements

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.
Equivalence Relations
Discrete Structures Chapter 6: Set Theory
Relations Relations on a Set. Properties of Relations.
Chapter 3 Relations. Section 3.1 Relations and Digraphs.
Number Theory and Cryptography
Chap6 Relations Def 1: Let A and B be sets. A binary relation from A
Basic Properties of Relations
Relations.
Groups TS.Nguyễn Viết Đông.
Congruence class arithmetic. Definitions: a ≡ b mod m iff a mod m = b mod m. a  [b] iff a ≡ b mod m.
CSE115/ENGR160 Discrete Mathematics 05/03/11 Ming-Hsuan Yang UC Merced 1.
Regular Expression (EXTRA)
Congruence of Integers
Equivalence Relations: Selected Exercises
Discrete Mathematics Lecture#11.
1 Set Theory. 2 Set Properties Commutative Laws: Associative Laws: Distributive Laws:
Relations Chapter 9.
Week 8 - Wednesday.  What did we talk about last time?  Cardinality  Countability  Relations.
Equivalence Relations MSU CSE 260. Outline Introduction Equivalence Relations –Definition, Examples Equivalence Classes –Definition Equivalence Classes.
CS Discrete Mathematical Structures Mehdi Ghayoumi MSB rm 132 Ofc hr: Thur, 9:30-11:30a Fall 2002KSU - Discrete Structures1.
Ordered Sets. Relations. Equivalence Relations 1.
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.
Digraphs and Relations Warm Up. The Divisibility Relation Let “|” be the binary relation on N×N such that a|b (“a divides b”) iff there is an n ∈ N such.
Rosen, Section 8.5 Equivalence Relations
Discrete Mathematics Lecture # 15 Types of Relations (contd.)
1 Lecture 2 Equivalence Relations Reading: Epp Chp 10.3.
Chapter 8 Equivalence Relations Let A and B be two sets. A relation R from A to B is a subset of AXB. That is, R is a set of ordered pairs, where the first.
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.
SECTION 9 Orbits, Cycles, and the Alternating Groups Given a set A, a relation in A is defined by : For a, b  A, let a  b if and only if b =  n (a)
Foundations of Computing I CSE 311 Fall Review: Division Theorem Let a be an integer and d a positive integer. Then there are unique integers q.
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
8.5 Equivalence Relations
RelationsCSCE 235, Spring Introduction A relation between elements of two sets is a subset of their Cartesian products (set of all ordered pairs.
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.
1 Discrete Structures – CNS2300 Text Discrete Mathematics and Its Applications (5 th Edition) Kenneth H. Rosen Chapter 7 Relations.
Divisibility and Modular Arithmetic
Chapter 4 With Question/Answer Animations 1. Chapter Motivation Number theory is the part of mathematics devoted to the study of the integers and their.
Week 8 - Wednesday.  What did we talk about last time?  Relations  Properties of relations  Reflexive  Symmetric  Transitive.
Chapter8 Relations 8.1: Relations and their properties.
Equivalence Relations and Classes
Relations Chapter 9 Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill.
Equivalence Relations: Selected Exercises
The Relation Induced by a Partition
Relations and Their Properties
CSE15 Discrete Mathematics 05/03/17
Equivalence Relations
Relations Chapter 9.
Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103 Chapter 9 Relations Slides are adopted from.
8.5 Equivalence Relations
Discrete Math (2) Haiming Chen Associate Professor, PhD
Equivalence Relations
9.5 Equivalence Relations
Equivalence relations
Equivalence Relations
Equivalence Relations
Rayat Shikshan Sanstha’s S.M.Joshi College, Hadapsar -28
Clements MAΘ October 30th, 2014
Equivalence Relations: Selected Exercises
Chapter 8 (Part 2): Relations
Presentation transcript:

Equivalence Relations Rosen 7.5

Equivalence Relation A relation on a set A is called an equivalence relation if it is Reflexive Symmetric Transitive Two elements that are related by an equivalence relation are called equivalent.

Some preliminaries Let a be an integer and m be a positive integer. We denote by a MOD m the remainder when a is divided by m. If r = a MOD m, then a = qm + r and 0 r < m, qZ Examples Let a = 12 and m = 5, 12MOD5 = 2 Let a = -12 and m = 5, –12MOD5 = 3

ab(MOD m) If a and b are integers and m is a positive integer, then a is congruent to b modulo m if m divides a-b. (a-b)MODm = 0 (a-b) = qm for some qZ Notation is ab(MOD m) aMODm = bMODm iff ab(MOD m) 12MOD5 = 17MOD5 = 2 (12-17)MOD 5 = -5MOD5 = 0 So, it’s the same as saying that a and b have the same remainder.

Prove that a MOD m = b MOD m iff ab(MOD m) Proof: We must show that aMODm = bMODm  ab(MOD m) and that ab(MOD m)  aMOD m = b MOD m First we will show that aMODm = bMODm  ab(MOD m) Suppose aMODm = bMODm, then  q1,q2,rZ such that a = q1m + r and b = q2m + r. a-b = q1m+r – (q2m+r) =m(q1-q2) so m divides a-b.

Prove that a MOD m = b MOD m iff ab(MOD m) Next we will show that ab(MOD m)  aMOD m = bMODm. Assume that ab(MOD m) . This means that m divides a-b, so a-b = mc for cZ. Therefore a = b+mc. We know that b = qm + r for some r < m, so that bMODm = r . What is aMODm? a = b+mc = qm+r + mc = (q+c)m + r. So aMODm = r = bMODm

Equivalence Relation A relation on a set A is called an equivalence relation if it is Reflexive Symmetric Transitive Two elements that are related by an equivalence relation are called equivalent. Example A = {2,3,4,5,6,7} and R = {(a,b) : a MOD 2 = b MOD 2} aMOD2 = aMOD2 aMOD2 = bMOD2 bMOD2=aMOD2 aMOD2=bMOD2, bMOD2=cMOD2 aMOD2=cMOD2

Let R be the relation on the set of ordered pairs of positive integers such that ((a,b), (c,d))R iff ad=bc. Is R an equivalence relation? Proof: We must show that R is reflexive, symmetric and transitive. Reflexive: We must show that ((a,b),(a,b))  R for all pairs of positive integers. Clearly ab = ab for all positive integers. Symmetric: We must show that ((a,b),(c,d)  R, then ((c,d),(a,b))  R. If ((a,b),(c,d)  R, then ad = bc and cb = da since multiplication is commutative. Therefore ((c,d),(a,b))  R,

Proof: We must show that R is reflexive, symmetric and transitive. Let R be the relation on the set of ordered pairs of positive integers such that ((a,b), (c,d))R iff ad=bc. Is R an equivalence relation? Proof: We must show that R is reflexive, symmetric and transitive. Transitive: We must show that if ((a,b), (c,d))R and ((c,d), (e,f)) R, then ((a,b),(e,f) R. Assume that ((a,b), (c,d))R and ((c,d), (e,f)) R. Then ad = cb and cf = de. This implies that a/b = c/d and that c/d = e/f, so a/b = e/f which means that af = be. Therefore ((a,b),(e,f)) R. (remember we are using positive integers.) Positive integers because a/b and (-a)/(-b) would work equally well. Therefore, can’t distinguish between positive and negative pairs.

Prove that R = ab(MOD m) is an equivalence relation on the set of integers. Proof: We must show that R is reflexive, symmetric and transitive. (Remember that ab(MOD m) means that (a-b) is divisible by m. First we will show that R is reflexive. a-a = 0 and 0*m, so a-a is divisible by m.

Prove that R = ab(MOD m) is an equivalence relation on the set of integers. We will show that R is symmetric. Assume that ab(MOD m). Then (a-b) is divisible by m so (a-b) = qm for some integer q. -(a-b) = (b-a) = -qm. Therefore ba(MOD m).

(a-b)+(b-c) = (a-c) = jm+km = (j+k)m Prove that R = ab(MOD m) is an equivalence relation on the set of integers. We will show that R is transitive. Assume that ab(MOD m) and that bc(MOD m). Then  integers j,k such that (a-b) = jm, and (b-c) = km. (a-b)+(b-c) = (a-c) = jm+km = (j+k)m Since j+k is an integer, then m divides (a-c) so ac(MOD m).

Equivalence Class Let R be an equivalence relation on a set A. The set of all elements that are related to an element of A is called the equivalence class of a. The equivalence class of a with respect to R is denoted [a]R. I.e., [a]R = {s | (a,s)  R} Note that an equivalence class is a subset of A created by R. If b  [a]R, b is called a representative of this equivalence class.

Example Let A be the set of all positive integers and let R = {(a,b) | a MOD 3 = b MOD 3} How many distinct equivalence classes (rank) does R create? 3 The equivalence classes for [1], [2], and [3].

Digraph Representation 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

Let A = {1,2,3,4,5,6,7,8} and let R = {(a,b)|ab(MOD 3)} be a relation on A.

Partition 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 If R is an equivalence relation on a set S, then the equivalence classes of R form a partition of S.

How many equivalence relations can there be on a set A with n elements? A has two elements A has one element. One equivalence class, rank =1. rank = 2 These are the only possible equivalence classes for this number of elements. rank = 1

How many equivalence relations can there be on a set A with n elements? A has three elements Rank = 3 Rank = 2 Rank = 1

How many equivalence relations can there be on a set A with n elements? A has four elements Rank = 4 Rank = 1

How many equivalence relations can there be on a set A with n elements? A has four elements Rank = 2

How many equivalence relations can there be on a set A with n elements? A has four elements Rank = 2

How many equivalence relations can there be on a set A with n elements? A has four elements Rank = 3

How many equivalence relations can there be on a set A with n elements? 1 for n = 1 2 for n = 2 5 for n = 3 15 for n = 4 ? for n = 5 Is there recurrence relation or a closed form solution?