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), (

Slides:



Advertisements
Similar presentations
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),
Advertisements

Chap6 Relations Def 1: Let A and B be sets. A binary relation from A
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.
Discrete Structures Chapter 5 Relations Nurul Amelina Nasharuddin Multimedia Department.
CSE115/ENGR160 Discrete Mathematics 04/24/12 Ming-Hsuan Yang UC Merced 1.
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.
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.
1 Relations and Their Properties Epp, section ??? CS 202 Aaron Bloomfield.
Relations (1) Rosen 6 th ed., ch. 8. Binary Relations Let A, B be any two sets. A binary relation R from A to B, written (with signature) R:A↔B, is a.
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.
Unit Unit 04 Relations IT DisiciplineITD1111 Discrete Mathematics & Statistics STDTLP1 Unit 4 Relations.
Relations and Their Properties
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.
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.
Properties and Mental Computation p. 80. Math talk What are some math properties that we use? Why do you think we have them? Do you ever use them?
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Relations.
Discrete Mathematics Relation.
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.)
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.
RelationsCSCE 235, Spring Introduction A relation between elements of two sets is a subset of their Cartesian products (set of all ordered pairs.
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.
Chap. 7 Relations: The Second Time Around
Advanced Digital Designs Jung H. Kim. Chapter 1. Sets, Relations, and Lattices.
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.
Equivalence Relations and Classes
Relations Chapter 9 Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill.
Relations and Their Properties
Citra Noviyasari, S.Si, MT
CSE 2813 Discrete Structures
Relations and Their Properties
Partial Orders.
Relations Chapter 9.
Partial Orderings.
Representing Relations
Relations and Their Properties
Applied Discrete Mathematics Week 9: 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
Introduction to Relations and Functions
Formal Definition and Examples
Lesson 4-1 Using Properties Designed by Skip Tyler, Varina High School
Discrete Math (2) Haiming Chen Associate Professor, PhD
Basics of Relations.
Agenda Lecture Content: Relations (Relasi)
Lecture # 16 Inverse of Relations
Ø Let the universe set U={1,2,3,...,10}.
Presentation transcript:

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), ( 0, b), ( 1, a), ( 2, b)} is a relation from A to B We can represent relations graphically or using a table: Relations are more general than functions. A function is a relation where exactly one element of B is related to each element of A.

Binary Relation on a Set Definition: A binary relation R on a set A is a subset of A × A It is a relation from A to itself Examples: Let A = {a,b,c}. Then R = {(a,a), (a,b), (a,c)} is a relation on A Let A = { 1, 2, 3, 4 }. Then R = {(a,b) | a divides b} is a relation on A consisting of the ordered pairs : (1, 1), (1, 2), (1, 3), (1, 4), (2, 2), (2, 4), (3, 3), (4, 4)

Binary Relations on a Set Examples: Consider these relations on the set Z: R 1 = {(a,b) | a ≤ b}, R 4 = {(a,b) | a = b}, R 2 = {(a,b) | a > b}, R 5 = {(a,b) | a = b + 1}, R 3 = {(a,b) | a = b or a = −b}, R 6 = {(a,b) | a + b ≤ 3}. Which of these relations contain each of the pairs: (1, 1), (1, 2), (2, 1), (1, −1), (2, 2)

Reflexive Relations Definition: R is reflexive iff (a,a) ∊ R for every element a ∊ A Formally: ∀ a [ a ∊ A ⟶ ( a,a ) ∊ R ] Examples: R 1 = {(a,b) | a ≤ b} R 3 = {(a,b) | a = b or a =−b} R 4 = {(a,b) | a = b} The following relations are not reflexive: R 2 = {(a,b) | a > b} ( e.g. 3 ≯ 3) R 5 = {(a,b) | a = b + 1} ( e.g. 3 ≠ 3 + 1) R 6 = {(a,b) | a + b ≤ 3} ( e.g ≰ 3)

Symmetric Relations Definition: R is symmetric iff (b,a) ∊ R whenever (a,b) ∊ R for all a,b ∊ A Formally: ∀ a ∀ b [( a,b ) ∊ R ⟶ ( b,a ) ∊ R ] Examples: R 3 = {(a,b) | a = b or a =−b} R 4 = {(a,b) | a = b} R 6 = {(a,b) | a + b ≤ 3} The following are not symmetric : R 1 = {(a,b) | a ≤ b} ( e.g. 3 ≤ 4, but 4 ≰ 3) R 2 = {(a,b) | a > b} ( e.g. 4 > 3, but 3 ≯ 4) R 5 = {(a,b) | a = b + 1} (e.g. 4 = 3 + 1, but 3 ≠ 4 + 1)

Antisymmetric Relations Definition: R is antisymmetric iff, for all a,b ∊ A, if (a,b) ∊ R and (b,a) ∊ R, then a = b. Formally: ∀ a ∀ b [( a,b ) ∊ R ∧ ( b,a ) ∊ R ⟶ a = b ] Examples: R 1 = {(a,b) | a ≤ b} R 2 = {(a,b) | a > b} R 4 = {(a,b) | a = b} R 5 = {(a,b) | a = b + 1} The following relations are not antisymmetric: R 3 = {(a,b) | a = b or a = −b} (both (1,−1) and (−1,1) belong to R 3 ) R 6 = {(a,b) | a + b ≤ 3} (both (1,2) and (2,1) belong to R 6 ) Note: symmetric and antisymmetric are not opposites!

Transitive Relations Definition: R is transitive if whenever (a,b) ∊ R and (b,c) ∊ R, then (a,c) ∊ R, for all a,b,c ∊ A. Formally: ∀a∀ b ∀ c [( a, b ) ∊ R ∧ ( b, c ) ∊ R ⟶ ( a, c ) ∊ R ] Examples: R 1 = {(a,b) | a ≤ b} R 2 = {(a,b) | a > b} R 3 = {(a,b) | a = b or a = −b} R 4 = {(a,b) | a = b} The following are not transitive: R 5 = {(a,b) | a = b + 1} ( both (3,2) and (4,3) belong to R 5, but not (3,3)) R 6 = {(a,b) | a + b ≤ 3} ( both (2,1) and (1,2) belong to R 6, but not (2,2))

Combining Relations Two relations R 1 and R 2 can be combined using basic set operations, such as R 1 ∪ R 2, R 1 ∩ R 2, R 1 − R 2, and R 2 − R 1 Example: Let A = { 1,2,3 }, B = { 1,2,3,4 } R 1 = {( 1,1 ),( 2,2 ),( 3,3 )}, R 2 = {( 1,1 ),( 1,2 ),( 1,3 ),( 1,4 )} Then: R 1 ∪ R 2 = {( 1,1 ),( 1,2 ),( 1,3 ),( 1,4 ),( 2,2 ),( 3,3 )} R 1 ∩ R 2 = {( 1,1 )} R 1 − R 2 = {( 2,2 ),( 3,3 )} R 2 − R 1 = {( 1,2 ),( 1,3 ),( 1,4 )}

Composition Definition: Assume that R 1 is a relation from a set A to a set B R 2 is a relation from B to a set C The composition of R 2 with R 1 is a relation from A to C such that, if (x,y) ∊ R 1 and (y,z) ∊ R 2, then (x,z) ∊ R 2 ∘ R 1 Example: R 2 ∘ R 1 = {(b,x),(b,z)}

Powers of a Relation Definition: Let R be a binary relation on A. Then the powers R n of the relation R is defined inductively by: Basis Step: R 1 = R Inductive Step: R n+ 1 = R n ∘ R Example: Assume R = {(1, 1), (2, 1), (3, 2), (4, 3)} R 1 = R R 2 = R 1 ∘ R = {(1, 1), (2, 1), (3, 1), (4, 2)} R 3 = R 2 ∘ R = {(1, 1), (2, 1), (3, 1), (4, 1)}