April 14, 2015Applied Discrete Mathematics Week 10: Equivalence Relations 1 Properties of Relations Definition: A relation R on a set A is called transitive.

Slides:



Advertisements
Similar presentations
Functions Reading: Epp Chp 7.1, 7.2, 7.4
Advertisements

Equivalence Relations
Practice Quiz 3 Recursive Definitions Relations Basic Counting Pigeonhole Principle Permutations & Combinations Discrete Probability.
Discrete Mathematics Relations
Recursively Defined Functions
April 9, 2015Applied Discrete Mathematics Week 9: Relations 1 Solving Recurrence Relations Another Example: Give an explicit formula for the Fibonacci.
Basic Properties of Relations
Relations.
Representing Relations Using Matrices
5/16/20151 You Never Escape Your… Relations. 5/16/20152Relations If we want to describe a relationship between elements of two sets A and B, we can use.
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?
Copyright © Cengage Learning. All rights reserved. CHAPTER 1 SPEAKING MATHEMATICALLY SPEAKING MATHEMATICALLY.
CSE115/ENGR160 Discrete Mathematics 04/24/12 Ming-Hsuan Yang UC Merced 1.
Discrete Structures Chapter 5 Relations and Functions Nurul Amelina Nasharuddin Multimedia Department.
1 Section 1.8 Functions. 2 Loose Definition Mapping of each element of one set onto some element of another set –each element of 1st set must map to something,
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.
Applied Discrete Mathematics Week 10: Equivalence Relations
This section will discuss the symbolism and concepts of set theory
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.
Mathematical Induction. F(1) = 1; F(n+1) = F(n) + (2n+1) for n≥ F(n) n F(n) =n 2 for all n ≥ 1 Prove it!
CS Discrete Mathematical Structures Mehdi Ghayoumi MSB rm 132 Ofc hr: Thur, 9:30-11:30a Fall 2002KSU - Discrete Structures1.
April 10, 2002Applied Discrete Mathematics Week 10: Relations 1 Counting Relations Example: How many different reflexive relations can be defined on a.
Ordered Sets. Relations. Equivalence Relations 1.
Chapter 9. Chapter Summary Relations and Their Properties Representing Relations Equivalence Relations Partial Orderings.
March 3, 2015Applied Discrete Mathematics Week 5: Mathematical Reasoning 1Arguments Just like a rule of inference, an argument consists of one or more.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
March 10, 2015Applied Discrete Mathematics Week 6: Counting 1 Permutations and Combinations How many different sets of 3 people can we pick from a group.
Unit Unit 04 Relations IT DisiciplineITD1111 Discrete Mathematics & Statistics STDTLP1 Unit 4 Relations.
FUNCTIONS.
Chapter 1 SETS, FUNCTIONs, ELEMENTARY LOGIC & BOOLEAN ALGEBRAs BY: MISS FARAH ADIBAH ADNAN IMK.
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.
Discrete Structures1 You Never Escape Your… Relations.
Discrete Mathematics Relation.
Fall 2002CMSC Discrete Structures1 You Never Escape Your… Relations.
Mathematical Preliminaries
Lecture on Relations 1Developed by CSE Dept., CIST Bhopal.
CS 103 Discrete Structures Lecture 13 Induction and Recursion (1)
Relation. Combining Relations Because relations from A to B are subsets of A x B, two relations from A to B can be combined in any way two sets can be.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
Sets Definition: A set is an unordered collection of objects, called elements or members of the set. A set is said to contain its elements. We write a.
Chapter Relations and Their Properties
FUNCTIONS COSC-1321 Discrete Structures 1. Function. Definition Let X and Y be sets. A function f from X to Y is a relation from X to Y with the property.
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.
MAT 2720 Discrete Mathematics Section 3.3 Relations
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), (
1 Lecture 5 Functions. 2 Functions in real applications Curve of a bridge can be described by a function Converting Celsius to Fahrenheit.
“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.
Section 9.1. Section Summary Relations and Functions Properties of Relations Reflexive Relations Symmetric and Antisymmetric Relations Transitive Relations.
Representing Relations Using Digraphs
Discrete Mathematical
Relations.
Relations and Functions
Applied Discrete Mathematics Week 10: Relations
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.
Applied Discrete Mathematics Week 9: Equivalence Relations
Applied Discrete Mathematics Week 10: Equivalence Relations
8.5 Equivalence Relations
CSE15 Discrete Mathematics 04/26/17
Applied Discrete Mathematics Week 5: Boolean Algebra
Applied Discrete Mathematics Week 2: Proofs
Applied Discrete Mathematics Week 6: Relations/Digraphs
Relations and their Properties
Applied Discrete Mathematics Week 9: Integer Properties
Properties of Relations
9.5 Equivalence Relations
Chapter 8 (Part 2): Relations
Agenda Lecture Content: Relations (Relasi)
Presentation transcript:

April 14, 2015Applied Discrete Mathematics Week 10: Equivalence Relations 1 Properties of Relations Definition: A relation R on a set A is called transitive if whenever (a, b)  R and (b, c)  R, then (a, c)  R for a, b, c  A. Are the following relations on {1, 2, 3, 4} transitive? R = {(1, 1), (1, 2), (2, 2), (2, 1), (3, 3)} Yes. R = {(1, 3), (3, 2), (2, 1)} No. R = {(2, 4), (4, 3), (2, 3), (4, 1)} No.

April 14, 2015Applied Discrete Mathematics Week 10: Equivalence Relations 2 Counting Relations Example: How many different reflexive relations can be defined on a set A containing n elements? Solution: Relations on R are subsets of A  A, which contains n 2 elements. Therefore, different relations on A can be generated by choosing different subsets out of these n 2 elements, so there are 2 n 2 relations. A reflexive relation, however, must contain the n elements (a, a) for every a  A. Consequently, we can only choose among n 2 – n = n(n – 1) elements to generate reflexive relations, so there are 2 n(n – 1) of them.

April 14, 2015Applied Discrete Mathematics Week 10: Equivalence Relations 3 Combining Relations Relations are sets, and therefore, we can apply the usual set operations to them. If we have two relations R 1 and R 2, and both of them are from a set A to a set B, then we can combine them to R 1  R 2, R 1  R 2, or R 1 – R 2. In each case, the result will be another relation from A to B.

April 14, 2015Applied Discrete Mathematics Week 10: Equivalence Relations 4 Combining Relations … and there is another important way to combine relations. Definition: Let R be a relation from a set A to a set B and S a relation from B to a set C. The composite of R and S is the relation consisting of ordered pairs (a, c), where a  A, c  C, and for which there exists an element b  B such that (a, b)  R and (b, c)  S. We denote the composite of R and S by S  R. In other words, if relation R contains a pair (a, b) and relation S contains a pair (b, c), then S  R contains a pair (a, c).

April 14, 2015Applied Discrete Mathematics Week 10: Equivalence Relations 5 Combining Relations Example: Let D and S be relations on A = {1, 2, 3, 4}. D = {(a, b) | b = 5 - a} “b equals (5 – a)” S = {(a, b) | a < b} “a is smaller than b” D = {(1, 4), (2, 3), (3, 2), (4, 1)} S = {(1, 2), (1, 3), (1, 4), (2, 3), (2, 4), (3, 4)} S  D = { (2, 4), (3, 3), (3, 4), (4, 2), (4, 3), D maps an element a to the element (5 – a), and afterwards S maps (5 – a) to all elements larger than (5 – a), resulting in S  D = {(a,b) | b > 5 – a} or S  D = {(a,b) | a + b > 5}. (4, 4)}

April 14, 2015Applied Discrete Mathematics Week 10: Equivalence Relations 6 Combining Relations Another Example: Let X and Y be relations on A = {1, 2, 3, …}. X = {(a, b) | b = a + 1} “b equals a plus 1” Y = {(a, b) | b = 3a} “b equals 3 times a” X = {(1, 2), (2, 3), (3, 4), (4, 5), …} Y = {(1, 3), (2, 6), (3, 9), (4, 12), …} X  Y = { (1, 4), (2, 7), (3, 10), (4, 13), …} Y maps an element a to the element 3a, and afterwards X maps 3a to 3a + 1. X  Y = {(a,b) | b = 3a + 1}

April 14, 2015Applied Discrete Mathematics Week 10: Equivalence Relations 7 Combining Relations We already know that functions are just special cases of relations (namely those that map each element in the domain onto exactly one element in the codomain). If we formally convert two functions into relations, that is, write them down as sets of ordered pairs, the composite of these relations will be exactly the same as the composite of the functions (as defined earlier).

April 14, 2015Applied Discrete Mathematics Week 10: Equivalence Relations 8 Combining Relations Definition: Let R be a relation on the set A. The powers R n, n = 1, 2, 3, …, are defined inductively by R 1 = R R n+1 = R n  R In other words: R n = R  R  …  R (n times the letter R)

April 14, 2015Applied Discrete Mathematics Week 10: Equivalence Relations 9 Combining Relations Theorem: The relation R on a set A is transitive if and only if R n  R for all positive integers n. Remember the definition of transitivity: Definition: A relation R on a set A is called transitive if whenever (a, b)  R and (b, c)  R, then (a, c)  R for a, b, c  A. The composite of R with itself contains exactly these pairs (a, c). Therefore, for a transitive relation R, R  R does not contain any pairs that are not in R, so R  R  R. Since R  R does not introduce any pairs that are not already in R, it must also be true that (R  R)  R  R, and so on, so that R n  R.