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.

Slides:



Advertisements
Similar presentations
Reflexive example: AB = AB Symmetric example: AB = BA
Advertisements

Equivalence Relations
Equivalence Relations
Chapter 3 Relations. Section 3.1 Relations and Digraphs.
Basic Properties of Relations
Discrete Mathematics Lecture # 16 Inverse of Relations.
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?
Ch. 8: Relations 8.1 Relations and their Properties.
CSE115/ENGR160 Discrete Mathematics 04/24/12 Ming-Hsuan Yang UC Merced 1.
Discussion #26 Chapter 5, Sections /15 Discussion #26 Binary Relations: Operations & Properties.
Equivalence Relations: Selected Exercises
Reflexive -- First sentence of proof is: (1) Let x  Z (2) Let (x,x)  R. (3) Let (x,x)  I (4) Let x  R.
1 Section 7.1 Relations and their properties. 2 Binary relation A binary relation is a set of ordered pairs that expresses a relationship between elements.
Relations Chapter 9.
Equivalence Relations MSU CSE 260. Outline Introduction Equivalence Relations –Definition, Examples Equivalence Classes –Definition Equivalence Classes.
Relation. Relations Recall the definition of the Cartesian (Cross) Product: The Cartesian Product of sets A and B, A x B, is the set A x B = { : x  A.
Chapter 4 Relations and Digraphs
Ordered Sets. Relations. Equivalence Relations 1.
Chapter 9. Chapter Summary Relations and Their Properties Representing Relations Equivalence Relations Partial Orderings.
1 Relations Rosen 6 th ed., § Relations Re lationships between elements of sets occur in many contextsRe lationships between elements of sets occur.
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.
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.
Chapter 9 Functions Let A and B be nonempty sets. A function f from A to B, written f: A  B is a relation from A to B with the property that every element.
April 14, 2015Applied Discrete Mathematics Week 10: Equivalence Relations 1 Properties of Relations Definition: A relation R on a set A is called transitive.
Chapter 4 More on Directed Proof and Proof by Contrapositive 4.1 Proofs Involving Divisibility of Integers 4.2 Proofs Involving Congruence of Integers.
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 RELATIONS.
Mathematical Proofs. Chapter 1 Sets 1.1 Describing a Set 1.2 Subsets 1.3 Set Operations 1.4 Indexed Collections of Sets 1.5 Partitions of Sets.
§ 每周五交作业,作业成绩占总成绩的 10% ; § 平时不定期的进行小测验,占总成绩的 20% ; § 期中考试成绩占总成绩的 20% ;期终考 试成绩占总成绩的 50% § 每周五下午 1 ; 00—3 : 00 ,答疑 § 地点:软件楼 301.
Relations, Functions, and Matrices Mathematical Structures for Computer Science Chapter 4 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Relations, Functions.
Discrete Mathematics Lecture # 15 Types of Relations (contd.)
Equivalence Relations. Partial Ordering Relations 1.
Copyright © Cengage Learning. All rights reserved. CHAPTER 8 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.
Relations and Functions ORDERED PAIRS AND CARTESIAN PRODUCT An ordered pair consists of two elements, say a and b, in which one of them, say a is designated.
ORDERED SETS. RELATIONS COSC-1321 Discrete Structures 1.
Mathematics. Session Set, Relation & Function Session - 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.
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 B = {a,b} {( 0, a), (
§R1∪R2§R1∪R2 §R 1 ∩R 2 R1-R2R1-R2 2.4 Operations on Relations.
Advanced Digital Designs Jung H. Kim. Chapter 1. Sets, Relations, and Lattices.
1 You Never Escape Your… Relations EQUIVALENCE RELATION Presented by K.Senguttuvan, PGT Kendriya Vidyalaya, Gachibowli, Hyderabad. 2.
Ch 2-5 Reasoning in Geometry and Algebra
Section 9.1. Section Summary Relations and Functions Properties of Relations Reflexive Relations Symmetric and Antisymmetric Relations Transitive Relations.
Chapter8 Relations 8.1: Relations and their properties.
Section 2.2 Day 1. A) Algebraic Properties of Equality Let a, b, and c be real numbers: 1) Addition Property – If a = b, then a + c = b + c Use them 2)
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
2.2 Graphs of Equations.
Relations Chapter 9.
Dr. Ameria Eldosoky Discrete mathematics
Cartesian product Given two sets A, B we define their Cartesian product is the set of all the pairs whose first element is in A and second in B. Note that.
Chapter 2 Sets and Functions.
8.5 Equivalence Relations
Relations and Their Properties
8.1 Relations and Their Properties
8.1 Relations and Their Properties
CSE15 Discrete Mathematics 04/26/17
Relations and their Properties
4.5 Equivalence Relations
9.5 Equivalence Relations
Equivalence Relations
Equivalence Relations
Basics of Relations.
Clements MAΘ October 30th, 2014
Equivalence Relations: Selected Exercises
Agenda Lecture Content: Relations (Relasi)
Presentation transcript:

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 coordinate of the pair belongs to A and the second coordinate belongs to B. If (a, b)  R, then we say that a is related to b by R, and write a R b. If (a, b) R, then a is not related to b by R, and we write a b. Let R be a relation from A to B. The domain of R, denoted by dom R, is the subset of A defined by dom R={a  A: (a, b)  R for some b  B}; While the range of R, denoted by ran R, is the subset of B defined by ran R={b  B: (a, b)  R for some a  A};

Relations A relation on a set A is a relation from A to A. That is, a relation on a single set A is a collection of ordered pairs whose first and second coordinates belong to A. Example: Let A={1, 2}. Then AXA={(1, 1), (1, 2), (2, 1), (2, 2)}. Since |AXA|=4, the number of subsets of AXA is 2 4 =16. Consequenctly, there are 16 relations on A.

Properties of Relations A relation R defined on a set A is called reflexive if xRx for every x  A. That is, R is reflexive if (x, x)  R for every x  A. Example. Let S={a, b, c} and determine if the following relations defined on set S are reflexive. R 1 ={(a, b), (b, a), (c, a)} R 2 ={(a, b), (b, b), (b, c), (c, b), (c, c)} R 3 ={(a, a), (a, c), (b, b), (c, a), (c, c)}

Symmetry A relation R defined on a set A is called symmetric if whenever x R y, then y R x for all x, y  R. Hence for a relation R on A to be “not symmetric”, there must be some ordered pair (w, z) in R for which (z, w) R. Example. Let S={a, b, c} and determine if the following relations defined on set S are symmetric. R 1 ={(a, b), (b, a), (c, a)} R 2 ={(a, b), (b, b), (b, c), (c, b), (c, c)} R 3 ={(a, a), (a, c), (b, b), (c, a), (c, c)}

Transitivity A relation R defined on a set A is called transitive if whenever x R y and y R z, then x R z for all x, y, z  A. Hence for a relation R on A to be “not transitive”, there must exist tow ordered pairs (u, v) and (v, w) in R such that (u, w) R. R 1 ={(a, b), (b, a), (c, a)} R 2 ={(a, b), (b, b), (b, c), (c, b), (c, c)} R 3 ={(a, a), (a, c), (b, b), (c, a), (c, c)}

Equivalence Relations A relation R on a set A is called equivalence relation if R is reflexive, symmetric, and transitive. Example. Let S={a, b, c} and the relation R 3 ={(a, a), (a, c), (b, b), (c, a), (c, c)} defined on the set S. The relation is an equivalence relation.

Example Result: A relation R is defined on Z by x R y if x+3y is even. Then R is an equivalence relation. Proof. First we show that R is reflexive. Let a  Z. Then a+3a=2(2a) is even since 2a  Z. Therefore a R a and R is reflexive. Next we show that R is symmetric. Assume that a R b. Thus a+3b is even. Hence a+3b=2k for some integer k. So a=2k-3b. Therefore, b+3a=b+3(2k-3b)=2(3k-4b). Since 2k-4b is an integer, b+3a is even. Therefore, b R a and R is symmetric. Finally, we show that R is transitive. Assume that a R b and b R c. Hence a+3b and b+3c are even; so a+3b=2k and b+3c=2l for some integers k and l. Adding these two equations, we have (a+3b)+(b+3c)=2k+2l. So a+3c=2(k+l-2b). Since k+l-2b is an integer, a+3c is even. Hence a R c and so R is transitive. Therefore, R is an equivalence relation. #

Examples Similarly, we can show the following relations are equivalence relations as well. The relation R defined on Z by x R y if |x|=|y|.