Lecture3 Relation
Lecture3 Relation
Chapter 9
© 2019 McGraw-Hill Education. All rights reserved. Authorized only for instructor use in the classroom. No reproduction or further distribution permitted without the prior written consent of McGraw-Hill Education.
• Chapter Summary
Relations and Their Properties
n-ary Relations and Their Applications (not
currently included in overheads)
Representing Relations
Closures of Relations (not currently included in
overheads)
Equivalence Relations
Partial Orderings
© 2019 McGraw-Hill Education
• Relations and Their
Properties
Section 9.1
Combining Relations
Note that these relations are on an infinite set and each of these
relations is an infinite set.
Which of these relations contain each of the pairs
(1,1), (1, 2), (2, 1), (1, −1), and (2, 2)?
R4 a, b a b .
The following relations are not reflexive:
R2 a, b a b note that 3 3 ,
R5 a, b a b 1 note that 3 3 1 ,
R6 a, b a b 3 note that 4 4 ’ 3 .
© 2019 McGraw-Hill Education
• Symmetric Relations
Definition: R is symmetric iff (b,a) ∊ R whenever (a,b) ∊ R for all
a,b ∊ A. Written symbolically, R is symmetric if and only if
xy x, y R y, x R
Example: The following relations on the integers are symmetric:
R3 a, b a b or a b ,
R4 a, b a b ,
R6 a, b a b 3 .
The following are not symmetric:
R1 a, b a b note that 3 4, but 4 ’ 3 ,
R2 a, b a b note that 4 3, but 3 4 ,
R5 a, b a b 1 note that 4 3 1, but 3 4 1 .
© 2019 McGraw-Hill Education
• Antisymmetric Relations
Definition: A relation R on a set A such that for all a,b ∊ A if (a,b) ∊
R and (b,a) ∊ R, then a = b is called antisymmetric. Written
symbolically, R is antisymmetric if and only if
xy x, y R y, x R x y
Example: The following relations on the integers are antisymmetric:
R1 a, b a b , For any integer, if a a ≤ b and
R2 a, b a b , b ≤ a , then a = b.
R4 a, b a b ,
R5 a, b a b 1 .
The following relations are notantisymmetric:
R3 a, b a b or a b
note that both 1, 1 and 1,1 belongs to R ,
3
R1 R2 b, x , b, z
© 2019 McGraw-Hill Education
• Powers of a Relation
Definition: Let R be a binary relation on A. Then the
powers Rn of the relation R can be defined inductively by:
• Basis Step: R1 = R
• Inductive Step: Rn+1 = Rn ∘ R
(see the slides for Section 9.3 for further insights)
The powers of a transitive relation are subsets of the
relation. This is established by the following theorem:
Theorem 1: The relation R on a set A is transitive iff
Rn ⊆ R for n = 1,2,3 ….
(see the text for a proof via mathematical induction)
© 2019 McGraw-Hill Education
• Representing Relations
Section 9.3
0 0
M R 1 0
1 1
© 2019 McGraw-Hill Education
• Examples of Representing Relations
Using Matrices 2