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
Chap6 Relations Def 1: Let A and B be sets. A binary relation from A
Relations.
Applied Discrete Mathematics Week 11: Graphs
Ch. 8: Relations 8.1 Relations and their Properties.
Relations & Their Properties. Copyright © Peter Cappello2 Introduction Let A & B be sets. A binary relation from A to B is a subset of A x B. Let R be.
CSE115/ENGR160 Discrete Mathematics 05/03/11 Ming-Hsuan Yang UC Merced 1.
Sets, Relation and Functions A set is a collection of objects (elements) or a container of objects. Defining sets –Empty set (Ø): no elements –Universal.
1 Chapter 8 The Disjoint Set ADT Concerns with equivalence problems Find and Union.
Discrete Mathematics Lecture#11.
1 Set Theory. 2 Set Properties Commutative Laws: Associative Laws: Distributive Laws:
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.
Logics for Data and Knowledge Representation Introduction to Algebra Chiara Ghidini, Luciano Serafini, Fausto Giunchiglia and Vincenzo Maltese.
Exam 2 Review 8.2, 8.5, 8.6, Thm. 1 for 2 roots, Thm. 2 for 1 root Theorem 1: Let c 1, c 2 be elements of the real numbers. Suppose r 2 -c 1.
Exam 2 Review 7.5, 7.6, |A1  A2  A3| =∑|Ai| - ∑|Ai ∩ Aj| + |A1∩ A2 ∩ A3| |A1  A2  A3  A4| =∑|Ai| - ∑|Ai ∩ Aj| + ∑ |Ai∩ Aj ∩ Ak| - |A1∩
Properties of Relations In many applications to computer science and applied mathematics, we deal with relations on a set A rather than relations from.
CS Discrete Mathematical Structures Mehdi Ghayoumi MSB rm 132 Ofc hr: Thur, 9:30-11:30a Fall 2002KSU - Discrete Structures1.
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.
Chapter 2 Mathematical Preliminaries. Sets and Relations  A set is a collection of distinguishable members or elements  The members are usually drawn.
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 Countability
Lecture 4.3: Closures and Equivalence Relations CS 250, Discrete Structures, Fall 2013 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.
Discrete Mathematics Lecture # 15 Types of Relations (contd.)
Equivalence Relations. Partial Ordering Relations 1.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
Equivalence 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.
Set Theory Concepts Set – A collection of “elements” (objects, members) denoted by upper case letters A, B, etc. elements are lower case brackets are used.
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.
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.
Advanced Digital Designs Jung H. Kim. Chapter 1. Sets, Relations, and Lattices.
“It is impossible to define every concept.” For example a “set” can not be defined. But Here are a list of things we shall simply assume about sets. A.
Lecture 7: Relations Dr Andrew Purkiss-Trew Cancer Research UK Mathematics for Computing.
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.
Representing Relations Using Digraphs
Discrete Mathematical
Relations and Their Properties
Citra Noviyasari, S.Si, MT
Relations.
CSE15 Discrete Mathematics 05/03/17
Equivalence Relations
Relations Chapter 9.
RELATION KS MATEMATIKA DISKRIT (DISCRETE MATHEMATICS )
Dr. Ameria Eldosoky Discrete mathematics
Lecture 4.3: Closures and Equivalence Relations
Applied Discrete Mathematics Week 9: Equivalence Relations
8.5 Equivalence Relations
Relations and Their Properties
Discrete Math (2) Haiming Chen Associate Professor, PhD
Equivalence Relations
8.5 Equivalence Relations and 8.6 Partial Ordering
Applied Discrete Mathematics Week 6: Relations/Digraphs
Lecture 4.3: Closures and Equivalence Relations
MCS680: Foundations Of Computer Science
9.5 Equivalence Relations
Equivalence Relations
Equivalence Relations
Basics of Relations.
Minimum Spanning Trees
Introductory Material
Presentation transcript:

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 relation If R holds for a in S1 and b in S2, denote as aRb or R(a, b) Examples: Spouse relation from set Men to set Women S1 and S2 can be the same set Parent relation on set Human > (greater than) relation on set Z (all integers) Example: student records s1 = set of students with 0< GPA <= 1 s2 = set of students with 1 < GPA <= 2 etc Question: Are x and y in the same set? Yes, if find(x) == find(y).

Equivalence relations (cont) Properties of binary relations: Let R be a binary relation on set S R is reflexive: if aRa for all a in S Ex: = relation, >= relation R is symmetric: aRb iff bRa Ex: = relation, spouse relation R is transitive: if aRb and bRc, then aRc Ex: = relation, >= relation, ancestor relation R is an equivalence relation if it is reflexive, symmetric, and transitive. Ex. = relation, relative relation among humans Counter ex: >= relation, spouse relation Use “~” to denote a generic equivalence relation a~b Example: student records s1 = set of students with 0< GPA <= 1 s2 = set of students with 1 < GPA <= 2 etc Question: Are x and y in the same set? Yes, if find(x) == find(y).

Equivalence relations (cont) Equivalence classes Let ~ be a equivalence relation defined on set S S can be partitioned into disjoint subsets such that If a ~ b, then a and b are in one subset If a and b are in two different subsets, then a ~ b does not hold Each of such subsets is called an equivalence class (with respect to relation ~), denoted C1, C2, ... All elements in an equivalence class relate to each other by ~ No elements in different equivalence classes relate to each other by ~ Equivalence classes can be represented as disjoint sets Example: student records s1 = set of students with 0< GPA <= 1 s2 = set of students with 1 < GPA <= 2 etc Question: Are x and y in the same set? Yes, if find(x) == find(y).