Equivalence Relations Lecture 45 Section 10.3 Fri, Apr 8, 2005.

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
1 Conjunctions of Queries. 2 Conjunctive Queries A conjunctive query is a single Datalog rule with only non-negated atoms in the body. (Note: No negated.
Discussion #27 Chapter 5, Sections /15 Discussion #27 Closures & Equivalence Relations.
(CSC 102) Discrete Structures Lecture 14.
Chapter 3 Relations. Section 3.1 Relations and Digraphs.
1 Chapter Equivalence, Order, and Inductive Proof.
Relations.
Applied Discrete Mathematics Week 11: Graphs
Algebraic Structures: Group Theory II
November 10, 2009Theory of Computation Lecture 16: Computation on Strings I 1Diagonalization Another example: Let TOT be the set of all numbers p such.
Congruence of Integers
LIMITS Calculating Limits Using the Limit Laws LIMITS In this section, we will: Use the Limit Laws to calculate limits.
Equivalence Relations: Selected Exercises
1 Set Theory. Notation S={a, b, c} refers to the set whose elements are a, b and c. a  S means “a is an element of set S”. d  S means “d is not an element.
November 3, 2009Theory of Computation Lecture 14: A Universal Program VI 1 Recursively Enumerable Sets Definition: We write: W n = {x  N |  (x, n) 
Chapter 4: A Universal Program 1. Coding programs Example : For our programs P we have variables that are arranged in a certain order: Y 1 X 1 Z 1 X 2.
Relations Chapter 9.
Week 8 - Wednesday.  What did we talk about last time?  Cardinality  Countability  Relations.
Chapter 7 Functions Dr. Curry Guinn. Outline of Today Section 7.1: Functions Defined on General Sets Section 7.2: One-to-One and Onto Section 7.3: The.
Equivalence Relations MSU CSE 260. Outline Introduction Equivalence Relations –Definition, Examples Equivalence Classes –Definition Equivalence Classes.
LIMITS AND DERIVATIVES 2. We have used calculators and graphs to guess the values of limits.  However, we have learned that such methods don’t always.
Week 15 - Wednesday.  What did we talk about last time?  Review first third of course.
We have used calculators and graphs to guess the values of limits.  However, we have learned that such methods do not always lead to the correct answer.
O, , and  Notations Lecture 39 Section 9.2 Wed, Mar 30, 2005.
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
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.
Naïve Set Theory. Basic Definitions Naïve set theory is the non-axiomatic treatment of set theory. In the axiomatic treatment, which we will only allude.
Chapter SETS DEFINITION OF SET METHODS FOR SPECIFYING SET SUBSETS VENN DIAGRAM SET IDENTITIES SET OPERATIONS.
Math 3121 Abstract Algebra I Lecture 5 Finish Sections 6 + Review: Cyclic Groups, Review.
Reflexivity, Symmetry, and Transitivity Lecture 44 Section 10.2 Thu, Apr 7, 2005.
Theory of Computation Lecture 5: Primitive Recursive Functions I
Lecture 4 Infinite Cardinals. Some Philosophy: What is “2”? Definition 1: 2 = 1+1. This actually needs the definition of “1” and the definition of the.
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)
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
8.5 Equivalence 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).
MAT 2720 Discrete Mathematics Section 3.3 Relations
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.
§R1∪R2§R1∪R2 §R 1 ∩R 2 R1-R2R1-R2 2.4 Operations on Relations.
Partial Order Relations Lecture 50 Section 10.5 Wed, Apr 20, 2005.
Main Menu Main Menu (Click on the topics below) Pigeonhole Principle Example Generalized Pigeonhole Principle Example Proof of Pigeonhole Principle Click.
LIMITS Calculating Limits Using the Limit Laws LIMITS In this section, we will: Use the Limit Laws to calculate limits.
2.3 Calculating Limits Using the Limit Laws LIMITS AND DERIVATIVES In this section, we will: Use the Limit Laws to calculate limits.
Week 8 - Wednesday.  What did we talk about last time?  Relations  Properties of relations  Reflexive  Symmetric  Transitive.
Equivalence Relations
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
Representing Relations Using Digraphs
Set Topology MTH 251 Lecture # 8.
CS201: Data Structures and Discrete Mathematics I
Chapter 2 Sets and Functions.
Section 5.4 Theorems About Definite Integrals
Direct Proof and Counterexample IV
Equivalence Relations
Lecture 43 Section 10.1 Wed, Apr 6, 2005
Composition of Functions
Diagonalization and Reducibility
Equivalence Relations
Equivalence Relations
Counting Elements of Disjoint Sets: The Addition Rule
Rayat Shikshan Sanstha’s S.M.Joshi College, Hadapsar -28
Lecture 44 Section 9.2 Mon, Apr 23, 2007
Equivalence Relations
Equivalence Relations: Selected Exercises
Counting Elements of Disjoint Sets: The Addition Rule
Theory of Computation Lecture 6: Primitive Recursive Functions I
Presentation transcript:

Equivalence Relations Lecture 45 Section 10.3 Fri, Apr 8, 2005

Equivalence Relations An equivalence relation on a set A is a relation on A that is reflexive, symmetric, and transitive. We often use the symbol ~ as a generic symbol for an equivalence relation.

Examples of Equivalence Relations Which of the following are equivalence relations? a  b, on Z +. gcd(a, b) > 1, on Z +. A  B, on  (U). p  q, on a set of statements. p  q, on a set of statements. a  b (mod 10), on Z.

Examples of Equivalence Relations Which of the following are equivalence relations? p  q = p, on a set of statements. gcd(a, b) = 1, on Z +. gcd(a, b) = a, on Z +. A  B = , on  (U).  A  =  B , on  (U).

Examples of Equivalence Relations Which of the following are equivalence relations? R  R, on R. , on R.

Equivalence Classes Let ~ be an equivalence relation on a set A and let a  A. The equivalence class of a is [a] = {x  A  x ~ a}.

Examples: Equivalence Classes Describe the equivalence classes of each of the following equivalence relations. a  b (mod 10), on Z.  A  =  B , on  (U). p  q, on a set of statements. R  R, on R.

Equivalence Classes and Partitions Theorem: Let ~ be an equivalence relation on a set A. The equivalence classes of ~ form a partition of A. Proof: We must show that The equivalence classes are pairwise disjoint, The union of the equivalence classes equals A.

Equivalence Classes and Partitions Proof that the equivalence classes are pairwise disjoint. Let [a] and [b] be two distinct equivalence classes. Suppose [a]  [b]  . Let x  [a]  [b]. Then x ~ a and x ~ b. Therefore, a ~ x and x ~ b.

Equivalence Classes and Partitions By transitivity, a ~ b. Now let y  [a]. Then y ~ a. By transitivity, y ~ b. So y  [b]. Therefore, [a]  [b]. By a similar argument, [b]  [a].

Equivalence Classes and Partitions Thus, [a] = [b], which is a contradiction Therefore, [a]  [b] = . Thus, the equivalence classes are pairwise disjoint.

Equivalence Classes and Partitions Proof that the union of the equivalence classes is A. Let a  A. Then a  [a] since a ~ a. Therefore, a is in the union of the equivalence classes. So, A is a subset of the union of the equivalence classes.

Equivalence Classes and Partitions On the other hand, every equivalence class is a subset of A. Therefore, the union of the equivalence classes is a subset of A. Therefore, the union of the equivalence classes equals A. Therefore, the equivalence classes form a partition of A.

Example Let F be the set of all functions f : R  R. For f, g  F, define f ~ g to mean that f is  (g).

Example Theorem: ~ is an equivalence relation on F. Proof: Reflexivity Obviously, f ~ f for all f  F.

Example Symmetry Suppose that f ~ g for some f, g  F. Then f(x) is  (g(x)). There exist positive constants M 1, M 2, and x 0 such that M 1  g(x)    f(x)   M 2  g(x) , for all x > x 0.

Example It follows that (1/M 2 )  f(x)    g(x)   (1/M 1 )  f(x) , for all x > x 0. Therefore, g(x) is  (f(x)).

Example Transitivity Let f, g, h  F and suppose that f ~ g and g ~ h. Then there exist constants M 1 and x 1 and M 2 and x 2 such that  f(x)  M 1  g(x)  for all x  x 1 and

Example  g(x)  M 2  h(x)  for all x  x 2. Let x 0 = max(x 1, x 2 ). Then for all x  x 0,  f(x)  M 1  g(x)   M 1  M 2  h(x)  Therefore, f(x) is O(h(x)).

Example Similarly, we can show that h(x) is O(f(x)). Therefore, f(x) is  (h(x)). Therefore, f ~ h. Therefore, ~ is an equivalence relation on F.

Example The equivalence class of f is the set [f] of all functions with the same growth rate as f. The most important equivalence classes are [x a ], a  R, a > 0. [b x ], b  R, b > 1. [x a log b x], a  R, a > 0, b > 1.

Example Furthermore, [x a ]  [x b ] if a  b. [a x ]  [b x ] if a  b. However, [log a x] = [log b x] for all a, b > 1.

The Equivalence Relation Induced by a Partition Let A be a set and let {A i } i  I be a partition of A. Define a relation ~ on A as x ~ y  x, y  A i for some i  I.

The Equivalence Relation Induced by a Partition Theorem: The relation ~ defined above is an equivalence relation on A.

The Equivalence Relation Induced by a Partition Proof: We must prove that ~ is reflexive, symmetric, and transitive. Proof that ~ is reflexive. Let a  A. Then a is in A i for some i  I. So a ~ a.

The Equivalence Relation Induced by a Partition Proof that ~ is symmetric. Let a, b  A and suppose that a ~ b. Then a, b  A i for some i  I. So b, a  A i for some i  I. Therefore b ~ a.

The Equivalence Relation Induced by a Partition Proof that ~ is transitive. Let a, b, c  A and suppose a ~ b and b ~ c. Then a, b  A i for some i  I and b, c  A j for some j  I. That means that b  A i  A j. This is possible only if A i = A j. Therefore, a, c  A i. So, a ~ c.

Example Consider the set P of all computer programs. Partition P into subsets by putting in the same subset any two programs that always produce identical output for the same input.

Example This partition determines an equivalence relation  on P. Let p 1 and p 2 be two computer programs. Then p 1  p 2 if p 1 and p 2 always produce identical output for the same input.

Example Let A be the set of all people on Earth. Let R be the relation defined by x R y if x and y have ever shaken hands. Is R reflexive? Symmetric? Transitive? Let R * be the reflexive-transitive closure of R. Is R * an equivalence relation? What are the equivalence classes of R * ?