Basic Properties of Relations

Slides:



Advertisements
Similar presentations
Mathematical Induction
Advertisements

Practice Quiz 3 Recursive Definitions Relations Basic Counting Pigeonhole Principle Permutations & Combinations Discrete Probability.
Representing Relations Rosen 7.3. Using Matrices For finite sets we can use zero-one matrices. Elements of each set A and B must be listed in some particular.
Chapter 3 Elementary Number Theory and Methods of Proof.
Chapter 3 Relations. Section 3.1 Relations and Digraphs.
Verifying Segment Relations
Relations - review A binary relation on A is a subset of A×A (set of ordered pairs of elements from A) Example: A = {a,b,c,d,e} R = { (a,a),(a,b),(b,b),(b,c),
Chap6 Relations Def 1: Let A and B be sets. A binary relation from A
Basic properties of the integers
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.
Discrete Structures Chapter 5 Relations Nurul Amelina Nasharuddin Multimedia Department.
CSE115/ENGR160 Discrete Mathematics 04/24/12 Ming-Hsuan Yang UC Merced 1.
CSE115/ENGR160 Discrete Mathematics 05/03/11 Ming-Hsuan Yang UC Merced 1.
Recursive Definitions Rosen, 3.4. Recursive (or inductive) Definitions Sometimes easier to define an object in terms of itself. This process is called.
Recursive Definitions Rosen, 3.4 Recursive (or inductive) Definitions Sometimes easier to define an object in terms of itself. This process is called.
1 Representing Relations Part 2: directed graphs.
Discrete Mathematics Lecture#11.
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.
1 Relations and Their Properties Epp, section ??? CS 202 Aaron Bloomfield.
Ordered Sets. Relations. Equivalence Relations 1.
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.
Relations and Their Properties
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.
Digraphs and Relations Warm Up. The Divisibility Relation Let “|” be the binary relation on N×N such that a|b (“a divides b”) iff there is an n ∈ N such.
Sets Define sets in 2 ways  Enumeration  Set comprehension (predicate on membership), e.g., {n | n  N   k  k  N  n = 10  k  0  n  50} the set.
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.
Relations, Functions, and Matrices Mathematical Structures for Computer Science Chapter 4 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Relations, Functions.
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.
CS 103 Discrete Structures Lecture 19 Relations. Chapter 9.
Discrete Mathematics Lecture # 15 Types of Relations (contd.)
Equivalence Relations. Partial Ordering Relations 1.
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.
Lecture 4.1: Relations Basics CS 250, Discrete Structures, Fall 2012 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.
Representing Relations Using Matrices A relation between finite sets can be represented using a zero-one matrix Suppose R is a relation from A = {a 1,
Chapter Relations and Their Properties
1 RELATIONS Learning outcomes Students are able to: a. determine the properties of relations – reflexive, symmetric, transitive, and antisymmetric b. determine.
Objective: To prove and apply theorems about angles Proving Angles Congruent (2-6)
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.
ORDERED SETS. RELATIONS COSC-1321 Discrete Structures 1.
Chap. 7 Relations: The Second Time Around
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 You Never Escape Your… Relations EQUIVALENCE RELATION Presented by K.Senguttuvan, PGT Kendriya Vidyalaya, Gachibowli, Hyderabad. 2.
Lecture 4.1: Relations Basics CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
Section 9.3. Section Summary Representing Relations using Matrices Representing Relations using Digraphs.
Section 9.1. Section Summary Relations and Functions Properties of Relations Reflexive Relations Symmetric and Antisymmetric Relations Transitive Relations.
Lecture 7: Relations Dr Andrew Purkiss-Trew Cancer Research UK Mathematics for Computing.
Relations Chapter 9 Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill.
The Relation Induced by a Partition
Relations and Their Properties
Relations Chapter 9.
Representing Relations
Relations and Their Properties
CSE15 Discrete Mathematics 04/26/17
Relations and their Properties
Lesson 4-1 Using Properties Designed by Skip Tyler, Varina High School
Equivalence Relations
Verifying Segment Relationships
Lecture # 16 Inverse of Relations
Ø Let the universe set U={1,2,3,...,10}.
Presentation transcript:

Basic Properties of Relations Rosen 7.1

Binary Relations Let A and B be sets. A binary relation from A to B is a subset of A x B. A binary relation from A to B is a set R of ordered pairs where the first element of each ordered pair comes from A and the second element comes from B. If (a,b)  R, then we say a is related to b by R. This is sometimes written as a R b.

Relations on a set A relation on the set A is a relation from A to A. A relation on a set is a subset of A x A

Properties on Relations Reflexive Symmetric Antisymmetric Transitive

Reflexive A relation R on a set A is called reflexive if (a,a)  R for every element a  A.

Symmetric A relation R on a set A is called symmetric if (b,a)  R whenever (a,b)  R, for some a,b  A. A relation R on a set A such that (a,b)  R and (b,a)  R only if a = b for a,b  A is called antisymmetric. Note that antisymmetric is not the opposite of symmetric. A relation can be both. A relation R on a set A is called asymmetric if (a,b)  R  (b,a)  R.

Transitive 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.

List of Examples If R is a relation on Z where (x,y)  R when x  y. Is R reflexive? No, x = x is not included. Is R symmetric? Yes, if x  y, then y  x. Is R antisymmetric? No, x  y and y  x does not imply x = y. Is R transitive? No, (1,2)  R and (2,1)  R but (1,1)  R.

List of Examples If R is a relation on Z where (x,y)  R when xy  1 Is R reflexive? No, 0*0  1 is not true. Is R symmetric? Yes, if xy  1, then yx  1. Is R antisymmetric? No, 1*2  1 and 2*1  1, but 1  2. Is R transitive? Yes, xy  1 and yz  1 implies xz  1 (x, y and z can’t be zero and must be all positive or all negative.)

List of Examples If R is a relation on Z where (x,y) R when x = y + 1 or x = y - 1 Is R reflexive? No, (2,2)  R. 2  2+1 and 2  2-1. Is R symmetric? Yes, if (x,y)  R, x = y + 1  y = x - 1 or x = y - 1  y = x + 1. So (y,x)  R. Is R antisymmetric? No, (2,1)  R and (1,2)  R, but 1  2. Is R transitive? No, (1,2) and (2,3)  R , but (1,3)  R. 1  3 + 1 and 1  3 - 1.

List of Examples If R is a relation on Z where (x,y)  R when x  y ( mod 7). ( indicates congruence) Is R reflexive? Yes, for all x, x  x ( mod 7). Is R symmetric? Yes, if (x,y)  R, x  y ( mod 7) which is equivalent to x mod 7 = y mod 7  y mod 7 = x mod 7. So (y,x)  R. Is R antisymmetric? No, (5,12)  R and (12,5)  R , but 5  12. Is R transitive? Yes, if (x,y)  R and (y,z)  R, x  y ( mod 7) and y  z ( mod 7). So x  z ( mod 7) and (x,z)  R.

List of Examples If R is a relation on Z where (x,y)  R when x is a multiple of y. Is R reflexive? Yes, (x,x)  R for all x, because x is a multiple of itself. Is R symmetric? No, (4,2)  R, but (2,4)  R. Is R antisymmetric? No, (2,-2)  R and (-2,2)  R, but 2  -2. Is R transitive? Yes, if (x,y)  R and (y,z)  R, x = k*y and y = j*z j,k  Z. x = kj*z and kj  Z, thus x is a multiple of z and (x,z)  R.

List of Examples If R is a relation on Z where (x,y)  R when x and y are both negative or both nonnegative Is R reflexive? Yes, x has the same sign as itself so (x,x)  R for all x. Is R symmetric? Yes, if (x,y)  R then x and y are both negative or both nonnegative. It follows that y and x are as well. Is R antisymmetric? No, (99,132)  R and (132,99)  R, but 99  132. Is R transitive? Yes, if (x,y)  R and (y,z)  R, then x, y and z are all negative or all nonnegative. Thus (x,z)  R.

List of Examples If R is a relation on Z where (x,y)  R when x = y2 Is R reflexive? No, (2,2)  R. 2  22. Is R symmetric? No, (4,2)  R, but (2,4)  R. Is R antisymmetric? Yes, if (x,y)  R and (y,x)  R then x = y2 and y = x2. The only time this holds true is when x = y (and more specifically when x = y = 1 or 0). Is R transitive? No, (16,4)  R and (4,2)  R, but (16,2)  R.

List of Examples If R is a relation on Z where (x,y)  R when x  y2 Is R reflexive? No, (2,2)  R. 2 < 22. Is R symmetric? No, (10,3)  R, but (3,10)  R. Is R antisymmetric? Yes, (x,y)  R and (y,x)  R implies that x  y2 and y  x2. The only time this holds true is when x = y (=1 or 0). Is R transitive? Yes, if (x,y)  R and (y,z)  R, then x  y2 and y  z2. x  y2  (z2)2  z2. Thus (x,z)  R.

Combining Relations the composite of R and S Let R be a relation from a set A to a set B and S a relation from set 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. The composite of R and S is written S º R.

The powers of R, Rn Let R be a relation on the set A. The powers Rn, n = 1, 2, 3, …, are defined inductively by R1 = R and Rn+1 = Rn  R Thus the definition shows that: R2 = R  R R3 = R2  R = (R  R)  R and so on.

Theorem 1 Prove: The relation R on a set A is transitive if and only if Rn  R for n = 1,2,3 . . . Proof: We must prove this in two parts: 1) (R is transitive)  (Rn  R for n = 1,2,3 . . . ) 2) (Rn  R for n = 1,2,3 . . . ) (R is transitive).

The Proof – Part 1 Assume R is transitive. We must show that this implies that Rn  R for n = 1,2,3 . . . . To do this, we’ll use induction. Basis Step: R1  R is trivially true (R1 = R).

The Proof – Part 1 (continued) Inductive Step: Assume that Rn  R. We must show that this implies that Rn+1  R. Assume (a,b)  Rn+1. Then since Rn+1 = Rn  R, there is an element x in A such that (a,x)  R and (x,b)  Rn. By the inductive hypothesis, (x,b)  R. Since R is transitive and (a,x)  R and (x,b)  R, (a,b)  R. Thus Rn+1  R.

The Proof – Part 2 Now we must show that Rn  R for n = 1, 2, 3 . . .  R is transitive. Proof: Assume Rn  R for n = 1, 2, 3 . . . . In particular, R2  R. This means that if (a,b)  R and (b,c)  R, then by the definition of composition, (a,c)  R2. Since R2  R, (a,c)  R. Hence R is transitive.

Q.E.D.