Equivalence Relations: Selected Exercises

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
Equivalence Relations
Relations Relations on a Set. Properties of Relations.
More Set Definitions and Proofs 1.6, 1.7. Ordered n-tuple The ordered n-tuple (a1,a2,…an) is the ordered collection that has a1 as its first element,
Discussion #27 Chapter 5, Sections /15 Discussion #27 Closures & Equivalence Relations.
Chapter 3 Relations. Section 3.1 Relations and Digraphs.
1 Chapter Equivalence, Order, and Inductive Proof.
Chap6 Relations Def 1: Let A and B be sets. A binary relation from A
Discrete Mathematics Lecture # 16 Inverse of Relations.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
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?
Review of Mathematical Notation / Terminology
CSE115/ENGR160 Discrete Mathematics 05/03/11 Ming-Hsuan Yang UC Merced 1.
Sets Definition of a Set: NAME = {list of elements or description of elements} i.e. B = {1,2,3} or C = {x  Z + | -4 < x < 4} Axiom of Extension: A set.
Regular Expression (EXTRA)
Functions Goals Introduce the concept of function Introduce injective, surjective, & bijective functions.
Partial Orderings: Selected Exercises
The Basics of Counting: Selected Exercises. Copyright © Peter Cappello2 Sum Rule Example There are 3 sizes of pink shirts & 7 sizes of blue shirts. How.
SETS A set B is a collection of objects such that for every object X in the universe the statement: “X is a member of B” Is a proposition.
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.
Functions. Copyright © Peter Cappello2 Definition Let D and C be nonempty sets. A function f from D to C, for each element d  D, assigns exactly 1 element.
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.
Mathematical Preliminaries (Hein 1.1 and 1.2) Sets are collections in which order of elements and duplication of elements do not matter. – {1,a,1,1} =
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.
Inclusion-Exclusion Selected Exercises Powerpoint Presentation taken from Peter Cappello’s webpage
CS 103 Discrete Structures Lecture 10 Basic Structures: Sets (1)
Relations, Functions, and Matrices Mathematical Structures for Computer Science Chapter 4 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Relations, Functions.
Mathematical Induction
Rosen, Section 8.5 Equivalence Relations
Fall 2015 COMP 2300 Discrete Structures for Computation Donghyun (David) Kim Department of Mathematics and Physics North Carolina Central University 1.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
1 RELATIONS Learning outcomes Students are able to: a. determine the properties of relations – reflexive, symmetric, transitive, and antisymmetric b. determine.
1 Lecture 2 Equivalence Relations Reading: Epp Chp 10.3.
Introduction to Real Analysis Dr. Weihu Hong Clayton State University 8/27/2009.
1 Discrete and Combinatorial Mathematics R. P. Grimaldi, 5 th edition, 2004 Chapter 5 Relations and Functions.
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.
Relations Section 9.1, 9.3—9.5 of Rosen Spring 2012
1 CS 140 Discrete Mathematics Combinatorics And Review Notes.
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).
RelationsCSCE 235, Spring Introduction A relation between elements of two sets is a subset of their Cartesian products (set of all ordered pairs.
Equivalence Relations Lecture 45 Section 10.3 Fri, Apr 8, 2005.
Relations Compare with function – Function: Set of ordered pairs where x’s don’t repeat x’s come from domain; y’s come from co-domain Purpose: to transform.
Set Operations Section 2.2.
1 Set Theory Second Part. 2 Disjoint Set let A and B be a set. the two sets are called disjoint if their intersection is an empty set. Intersection of.
Theory of Computing Topics Formal languages automata computability and related matters Purposes To know the foundations and principles of computer science.
Theory of Computing Topics Formal languages automata computability and related matters Purposes To know the foundations and principles of computer science.
Chapter8 Relations 8.1: Relations and their properties.
Functions Goals Introduce the concept of function
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.
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
Partial Orderings: Selected Exercises
8.5 Equivalence Relations
Discrete Math (2) Haiming Chen Associate Professor, PhD
Equivalence Relations
Equivalence Relations
Equivalence Relations
Equivalence Relations: Selected Exercises
Chapter 8 (Part 2): Relations
Lecture # 16 Inverse of Relations
Presentation transcript:

Equivalence Relations: Selected Exercises

Copyright © Peter Cappello Equivalence Relation Let E be a relation on set A. E is an equivalence relation if & only if it is: Reflexive Symmetric Transitive. Examples a E b when a mod 5 = b mod 5. (Over N) (i.e., a ≡ b mod 5 ) a E b when a is a sibling of b. (Over humans) Copyright © Peter Cappello

Copyright © Peter Cappello Equivalence Class Let E be an equivalence relation on A. We denote aEb as a ~ b. (sometimes, it is denoted a ≡ b ) The equivalence class of a is { b | a ~ b }, denoted [a]. What are the equivalence classes of the example equivalence relations? For these examples: Do distinct equivalence classes have a non-empty intersection? Does the union of all equivalence classes equal the underlying set? Copyright © Peter Cappello

Copyright © Peter Cappello Partition A partition of set S is a set of nonempty subsets, S1, S2, . . ., Sn, of S such that: i j ( i ≠ j  Si ∩ Sj = Ø ). S = S1 U S2 U . . . U Sn. Copyright © Peter Cappello

Equivalence Relations & Partitions Let E be an equivalence relation on S. Thm. E’s equivalence classes partition S. Thm. For any partition P of S, there is an equivalence relation on S whose equivalence classes form partition P. Copyright © Peter Cappello

Copyright © Peter Cappello E’s equivalence classes partition S. [a] ≠ [b]  [a] ∩ [b] = Ø. Proof by contradiction: Assume [a] ≠ [b]  [a] ∩ [b] ≠ Ø: (Draw a Venn diagram) Without loss of generality, let c  [a] - [b]. Let d  [a] ∩ [b]. We show that c  [b] (which contradicts our assumption above) c ~ d ( c, d  [a] ) d ~ b ( d  [b] ) c ~ b ( c ~ d  d ~ b  E is transitive ) The union of the equivalence classes is S. Students: Show this use pair proving in class. Copyright © Peter Cappello

Copyright © Peter Cappello For any partition P of S, there is an equivalence relation whose equivalence classes form the partition P. Prove in class. Let P be an arbitrary partition of S. We define an equivalence relation whose equivalence classes form partition P. (Students: Show this (use pair proving) in class) Copyright © Peter Cappello

Copyright © Peter Cappello Exercise 20 Let P be the set of people who visited web page W. Let R be a relation on P: xRy  x & y visit the same sequence of web pages since visiting W until they exit the browser. Is R an equivalence relation? Let s( p ) be the sequence of web pages p visits since visiting W until p exits the browser. Copyright © Peter Cappello

Copyright © Peter Cappello Exercise 20 continued That is, xRy means s( x ) = s( y ). x xRx: R is reflexive. Since x s( x ) = s( x ). x y ( xRy  yRx ): R is symmetric. Since s( x ) = s( y )  s (y ) = s( x ). x y z ( ( xRy  yRz )  xRz ): R is transitive. Since ( s( x ) = s( y )  s( y ) = s( z ) )  s( x ) = s( z ). Therefore, R is an equivalence relation. Copyright © Peter Cappello

Copyright © Peter Cappello Exercise 30 What are the equivalence classes of the bit strings for the equivalence relation of Exercise 11? Ex. 11: Let S = { x | x is a bit string of ≥ 3 bits. } Define xRy such that x agrees with y on the left 3 bits (e.g., 10111 ~ 101000). 010 1011 11111 01010101 Copyright © Peter Cappello

Copyright © Peter Cappello 2011 Exercise 30 Answer 010 (answer: all strings that begin with 010) 1011 (answer: all strings that begin with 101) 11111 (answer: all strings that begin with 111) 01010101 Copyright © Peter Cappello 2011

Copyright © Peter Cappello Exercise 40 What is the equivalence class of (1, 2) with respect to the equivalence relation given in Exercise 16? Exercise. 16: Ordered pairs of positive integers such that ( a, b ) ~ ( c, d )  ad = bc. Copyright © Peter Cappello

Copyright © Peter Cappello Exercise 40 a) Answer ( a, b ) ~ ( c, d )  ad = bc  a/b = c/d [ ( 1, 2 ) ] = { ( c, d ) | ( 1, 2 ) ~ ( c, d ) } = { ( c, d ) | 1d = 2c  c/d = ½ }. Copyright © Peter Cappello

Copyright © Peter Cappello Exercise 40 continued b) Interpret the equivalence classes of the equivalence relation R in Exercise 16. Copyright © Peter Cappello

Copyright © Peter Cappello Exercise 40 continued b) Interpret the equivalence classes of the equivalence relation R in Exercise 16. Answer Each equivalence class contains all (p, q), which, as fractions, have the same value (i.e., the same element of Q+). (The fact that 3/7 = 15/35 confuses some small children.) Copyright © Peter Cappello

Copyright © Peter Cappello Exercise 50 A partition P’ is a refinement of partition P when x  P’ y  P x  y. (Illustrate.) Let partition P consist of sets of people living in the same US state. Let partition P’ consist of sets of people living in the same county of a state. Show that P’ is a refinement of P. Copyright © Peter Cappello

Copyright © Peter Cappello Exercise 50 continued It suffices to note that: Every county is contained within its state: No county spans 2 states. Copyright © Peter Cappello

Copyright © Peter Cappello Exercise 62 Determine the number of equivalent relations on a set with 4 elements by listing them. How would you represent the equivalence relations that you list? Copyright © Peter Cappello

Copyright © Peter Cappello End 8.5 Copyright © Peter Cappello

Copyright © Peter Cappello 10 Suppose A   & R is an equivalence relation on A. Show f X f: A  X such that a ~ b  f( a ) = f( b ). Proof. Let f : A  X, where X = { [a] | [a] is an equivalence class of R } a f (a ) = [a]. Then, a b a ~ b  f( a ) = [a] = [b] = f( b ). Copyright © Peter Cappello