§R1∪R2§R1∪R2 §R 1 ∩R 2 R1-R2R1-R2 2.4 Operations on Relations.

Slides:



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

Discussion #27 Chapter 5, Sections /15 Discussion #27 Closures & Equivalence Relations.
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?
Chapter 7 Relations : the second time around
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.
Algebraic Properties: The Rules of Algebra Be Cool - Follow The Rules!
Relations Chapter 9.
Matrix. REVIEW LAST LECTURE Keyword Parametric form Augmented Matrix Elementary Operation Gaussian Elimination Row Echelon form Reduced Row Echelon form.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
Homework Review notes Complete Worksheet #1. Homework Let A = {a,b,c,d}, B = {a,b,c,d,e}, C = {a,d}, D = {b, c} Describe any subset relationships. 1.
Properties of Addition and Multiplication. Commutative Property In the sum you can add the numbers in any order. a+b = b+a In the product you can multiply.
8.3 Representing Relations Directed Graphs –Vertex –Arc (directed edge) –Initial vertex –Terminal vertex.
Discrete Mathematics and Its Applications Sixth Edition By Kenneth Rosen Chapter 8 Relations 歐亞書局.
Rosen, Section 8.5 Equivalence Relations
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?
Properties of Real Numbers List of Properties of Real Numbers Commutative Associative Distributive Identity Inverse.
Sets, Relations, and Lattices
§ 每周五交作业,作业成绩占总成绩的 10% ; § 平时不定期的进行小测验,占总成绩的 20% ; § 期中考试成绩占总成绩的 20% ;期终考 试成绩占总成绩的 50% § 每周五下午 1 ; 00—3 : 00 ,答疑 § 地点:软件楼 301.
Reflexivity, Symmetry, and Transitivity Lecture 44 Section 10.2 Thu, Apr 7, 2005.
CSCI 171 Presentation 9 Matrix Theory. Matrix – Rectangular array –i th row, j th column, i,j element –Square matrix, diagonal –Diagonal matrix –Equality.
1 Chapter Equivalence, Order, and Inductive Proof.
1.2 Field Axioms (Properties) Notes on a Handout.
Chapter 2 … part1 Matrices Linear Algebra S 1. Ch2_2 2.1 Addition, Scalar Multiplication, and Multiplication of Matrices Definition A matrix is a rectangular.
Math 344 Winter 07 Group Theory Part 1: Basic definitions and Theorems.
Problem Statement How do we represent relationship between two related elements ?
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.
UNIT - 2.  A binary operation on a set combines two elements of the set to produce another element of the set. a*b  G,  a, b  G e.g. +, -, ,  are.
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,
Section 7.5 Equivalence Relations Longin Jan Latecki Temple University, Philadelphia
1 Section 4.1 Properties of Binary Relations A binary relation R over a set A is a subset of A  A. If (x, y)  R we also write x R y. Example. Some sample.
Functions (Mappings). Definitions A function (or mapping)  from a set A to a set B is a rule that assigns to each element a of A exactly one element.
Chapter 8: Relations. 8.1 Relations and Their Properties Binary relations: Let A and B be any two sets. A binary relation R from A to B, written R : A.
8.4 Closures of Relations Definition: The closure of a relation R with respect to property P is the relation obtained by adding the minimum number of.
Linear Algebra Chapter 2 Matrices.
8.5 Equivalence Relations
(2 + 1) + 4 = 2 + (1 + 4) Associative Property of Addition.
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.
§ 第 3 周起每周一交作业,作业成绩占总成绩的 15% ; § 平时不定期的进行小测验,占总成绩的 15% ; § 期中考试成绩占总成绩的 20% ;期终考试成绩占总成绩的 50% § 张宓
1 Closures of Relations Based on Aaron Bloomfield Modified by Longin Jan Latecki Rosen, Section 8.4.
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.
PROPERTIES. ADDITIVE IDENTITY PROPERTY BOOK DEFINITION:FOR ANY NUMBER A, A + 0 = A OWN DEFINITION: THIS PROPERTY SAYS THAT WHEN YOU ADD 0 TO ANY NUMBER.
Relations Chapter 9 Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill.
PROPERTIES.
Dr. Ameria Eldosoky Discrete mathematics
A mathematical system - that is an algebra - consists of at least
CSE115/ENGR160 Discrete Mathematics 04/28/11
Relations: Operations & Properties
Lecture 4.3: Closures and Equivalence Relations
Applied Discrete Mathematics Week 9: Equivalence Relations
Real Numbers, Algebra, and Problem Solving
2. Definition of congruent segments AB = CD 2.
CSE15 Discrete Mathematics 04/26/17
Number Properties Magic Book Foldable
PROPERTIES OF ALGEBRA.
Relations and their Properties
NAME THAT PROPERTY! For each of the equations below,
Number Properties Magic Book Foldable
2.4 Operations on Relations
Properties of Relations
Equivalence Relations
Linear Algebra Lecture 11.
Properties of Numbers Lesson 1-3.
Basics of Relations.
CSC102 - Discrete Structures (Discrete Mathematics) Set Operations
Clements MAΘ October 30th, 2014
Properties of Real Numbers
Presentation transcript:

§R1∪R2§R1∪R2 §R 1 ∩R 2 R1-R2R1-R2 2.4 Operations on Relations

§1.Inverse relation §Definition 2.13: Let R be a relation from A to B. The inverse relation of R is a relation from B to A, we write R -1, defined by R -1 ={(b,a)|(a,b)  R} §Inverse relation of “ ” §R={(1,2),(2,3),(1,3)} §R -1 ={(2,1),(3,2),(3,1)}

§Theorem 2.1 : Let R,R 1, and R 2 be relation from A to B. Then §(1)(R -1 ) -1 =R; §(2)(R 1 ∪ R 2 ) -1 =R 1 -1 ∪ R 2 -1 ; §(3)(R 1 ∩R 2 ) -1 =R 1 -1 ∩R 2 -1 ; §(4)(A×B) -1 =B×A; §(5)  -1 =  ; (7)(R 1 -R 2 ) -1 =R R 2 -1 (8)If R 1  R 2 then R 1 -1  R 2 -1

§ (6),(8) § Proof:(6) (8)If R 1  R 2,then R 1 -1  R 2 -1 。 For any (b,a)  R 1 -1,

§Theorem 2.2 : Let R be a relation on A. Then R is symmetric if only if R=R -1. §Proof: (1)If R is symmetric, then R=R -1 。 §R  R -1 and R -1  R 。 §(2)If R=R -1, then R is symmetric §For any (a,b)  R, (b,a)  ?R

§2.Composition §Definition 2.14: Let R 1 be a relation from A to B, and R 2 be a relation from B to C. The composition of R 1 and R 2, we write R 2  R 1, is a relation from A to C, and is defined R 2  R 1 ={(a,c)|there exist some b  B so that (a,b)  R 1 and (b,c)  R 2, where a  A and c  C}. §(1)R 1 is a relation from A to B, and R 2 is a relation from B to C §(2)commutative law?  §R 1 ={(a 1,b 1 ), (a 2,b 3 ), (a 1,b 2 )} §R 2 ={(b 4,a 1 ), (b 4,c 1 ), (b 2,a 2 ), (b 3,c 2 )}

§Associative law? §For R 1  A×B, R 2  B×C, and R 3  C×D §R 3  (R 2  R 1 )=?(R 3  R 2 )  R 1 §subset of A×D §For any (a,d)  R 3  (R 2  R 1 ), (a,d)  ?(R 3  R 2 )  R 1, §Similarity, (R 3  R 2 )  R 1  R 3  (R 2  R 1 ) §Theorem 2.3 : Let R 1 be a relation from A to B, R 2 be a relation from B to C, R 3 be a relation from C to D. Then R 3  (R 2  R 1 )=(R 3  R 2 )  R 1 (Associative law)

§Definition 2.15: Let R be a relation on A, and n  N. The relation R n is defined as follows. §(1)R 0 ={(a,a)|a  A}), we write I A.  (2)R n+1 =R  R n. §Theorem 2.4: Let R be a relation on A, and m,n  N. Then  (1)R m  R n =R m+n §(2)(R m ) n =R mn

§A={a 1,a 2, ,a n },B={b 1,b 2, ,b m } §R 1 and R 2 be relations from A to B. §M R1 =(x ij ), M R2 =(y ij ) §M R1 ∪ R2 =(x ij  y ij ) §M R1∩R2 =(x ij  y ij ) §  0 1  0 1 § § §Example:A={2,3,4},B={1,3,5,7} §R 1 ={(2,3),(2,5),(2,7),(3,5),(3,7),(4,5),(4,7)} §R 2 ={(2,5),(3,3),(4,1),(4,7)} §Inverse relation R -1 of R : M R -1 =M R T, M R T is the transpose of M R.

§A={a 1,a 2, ,a n },B={b 1,b 2, ,b m }, C={c 1,c 2, ,c r }, §R 1 be a relations from A to B, M R1 =(x ij ) m  n, R 2 be a relation from B to C, M R2 =(y ij ) n  r. The composition R 2  R 1 of R 1 and R 2,

§Example : R={(a,b),(b,a),(a,c)},is not symmetric §+ (c,a),  R‘={(a,b),(b,a),(a,c), (c,a)} , R’ is symmetric. §Closure

2.5 Closures of Relations §1.Introduction §Construct a new relation R‘, s.t. R  R’, §particular property, §smallest relation §closure §Definition 2.17: Let R be a relation on a set A. R' is called the reflexive(symmetric, transitive) closure of R, we write r(R)(s(R),t(R) or R + ), if there is a relation R' with reflexivity (symmetry, transitivity) containing R such that R' is a subset of every relation with reflexivity (symmetry, transitivity) containing R.

§Condition: §1)R' is reflexivity(symmetry, transitivity) §2)R  R' §3)For any reflexive(symmetric, transitive) relation R", If R  R", then R'  R" §Example : If R is symmetric, s(R)=? §If R is symmetric , then s(R)=R §Contrariwise, If s(R)=R , then R is symmetric §R is symmetric if only if s(R)=R §Theorem 2.5: Let R be a relation on a set A. Then §(1)R is reflexive if only if r(R)=R §(2)R is symmetric if only if s(R)=R §(3)R is transitive if only if t(R)=R

§Theorem 2.6: Let R 1 and R 2 be relations on A, and R 1  R 2. Then §(1)r(R 1 )  r(R 2 ) ; §(2)s(R 1 )  s(R 2 ) ; §(3)t(R 1 )  t(R 2 ) 。 §Proof: (3)R 1  R 2  t(R 1 )  t(R 2 ) §Because R 1  R 2 ,  R 1  t(R 2 ) §t(R 2 ) :transitivity

§Example:Let A={1,2,3},R={(1,2),(1,3)}. Then §2.Computing closures §Theorem 2.7: Let R be a relation on a set A, and I A be identity(diagonal) relation. Then r(R)=R ∪ I A (I A ={(a,a)|a  A}) §Proof : Let R'=R ∪ I A. §Definition of closure §(1)For any a  A, (a,a)  ?R'. §(2) R  ?R'. §(3)Suppose that R'' is reflexive and R  R'' , R'  ?R''

§Theorem 2.8 : Let R be a relation on a set A. Then s(R)=R ∪ R -1. §Proof : Let R'=R ∪ R -1 §Definition of closure §(1) s(R), symmetric? §(2) R  ?R'. §(3)Suppose that R'' is symmetric and R  R'' , R'  ?R'')

§Example : symmetric closure of “<” on the set of integers,is“≠” § , §Let A is no empty set. §The reflexive closure of empty relation on A is the identity relation on A §The symmetric closure of empty relation on A, is an empty relation.

Theorem 2.9: Let R be a relation on A. Then Theorem 2.10 : Let A be a set with |A|=n, and let R be a relation on A. Then

§Example : A={a,b,c,d},R={(a,b),(b,a), (b,c),(c,d)}, t(R)=? §Equivalence Relation, P 136, i.e 4.5 §Partial order relations,P ,i.e 6.1,6.2

§Exercise: P135 32,34 §P139 1,2,12, 21,22, §P155 2,8,12,22,24,26,27,28,29,30