Chapter 9 Relations
Chapter 9 Relations
Chapter 9 Relations
Definition:
Definition:
In other words, a relation on a set A is a subset of A
× A.
Soluti
on: The pair is in ;
is in ;
is in ;
is in ;
and finally, is in .
Properties of Relations
In some relations an element is always related to itself. For instance, let
R be the relation on the set of all people consisting of pairs where x and
y have the same mother and the same father. Then for every person x.
Definition:
Example:
Consider the following relation on {1, 2, 3,
4}:
. Reflexive
𝑅 2={ ( 𝟏 , 𝟏 ) , ( 1, 2 ) , ( 2 ,1 ) , ( 3 , 4 ) , ( 4 ,1 ) , ( 4 , 4 ) } . Not reflexive
Example:
Consider the following relations on {1, 2, 3,
4}:
Soluti The relations because they both contain all pairs of the
on: form (a, a), namely, (1, 1), (2, 2), (3, 3), and (4, 4).
In particular, because (3, 3) is not in any of these
relations.
Example:
Consider these relations on the set of integers:
Remark:
Using quantifiers, we see that the relation R on the set A is
symmetric if Similarly, the relation R on the set A is
antisymmetric if
Example:
Consider the following relations on {1, 2, 3,
4}, which of these are antisymmetric?:
Soluti
on: is not antisymmetric because (1,2) belongs to R and
(2,1) belongs to R, but .
The relation
Soluti • The relations , because in each case . For , the only thing to
on: check is that both (2, 1) and (1, 2) are in the relation. For , it
is necessary to check that both (1, 2) and (2, 1) belong to
the relation, and (1, 4) and (4, 1) belong to the relation
• . For each of these relations there is such that both (a, b) and (b, a)
belong to the relation. The reader should verify that none of the other
relations is antisymmetric. This is done by finding a pair (a, b) with a =
b such that (a, b) and (b, a) are both in the relation.
Remark:
Using quantifiers, we see that the relation R on a set A is
transitive if we have
Examp
le: { }
𝑹= ( 𝟏,𝟏) , ( 𝟏,𝟐) , ( 𝟏,𝟒 ) , ( 𝟐,𝟏) , ( 𝟐,𝟐) , ( 𝟐,𝟒 ) , ( 𝟑,𝟑) , ( 𝟒,𝟏) , ( 𝟒,𝟐 ) , ( 𝟒,𝟒 ) .
𝟏 ) ∧ (𝟏 , 𝟐)⟶ (𝟏 , 𝟐)
( 𝟐 ,(𝟏 𝟏 ),∧ (𝟏 , 𝟏)⟶ (𝟒 , 𝟐 (𝟏 ) ∧, (𝟐 𝟏) , 𝟏) ⟶ (𝟒
𝟏 ) ∧ (𝟏 , 𝟒) ⟶ 𝟒)
( 𝟐 , 𝟏 ) ∧ (𝟏 , 𝟐)⟶ (𝟒 , 𝟐 (𝟐 ) ∧, (𝟐 𝟐) , 𝟐) ⟶ (𝟒
𝟐 ) ∧ (𝟐 , 𝟏)⟶ (𝟏 , 𝟏)
( 𝟐 , 𝟏 ) ∧ (𝟏 , 𝟒)( 𝟒 ⟶ ,𝟐 (𝟐 ) ∧, (𝟐 𝟒) , 𝟒)⟶ ( 𝟒
𝟐 ) ∧ (𝟐 , 𝟐)⟶ (𝟏 , 𝟐) ( 𝟒 (𝟐 ,𝟒 ) ∧ (𝟒 , 𝟏)⟶ (𝟒
( 𝟐 , 𝟐 ) ∧(𝟐 , 𝟏)⟶ , 𝟏)
𝟒 ) ∧ (𝟒 , 𝟏)⟶ (( 𝟐 𝟏, ,𝟐𝟏) ) ∧(𝟐 , 𝟒) ⟶(𝟐 ( 𝟒 , 𝟒, 𝟒) ) ∧ (𝟒 , 𝟐)⟶ (𝟒
𝟒 ) ∧ (𝟒 , 𝟐)⟶ ( 𝟒 ,(𝟏 𝟏) ,∧ 𝟐) (𝟏 , 𝟏) ⟶ (𝟒 , 𝟏) Tran
𝟏 , 𝟒 ) ∧ (𝟒 , 𝟒)⟶ (𝟒 (𝟏, ,𝟏 𝟒)) ∧ (𝟏 , 𝟐) ⟶ (𝟒 , 𝟐) sitiv
( 𝟒 , 𝟏 ) ∧ (𝟏 , 𝟏) ⟶ (𝟒 , 𝟏) e
Example:
Consider the following relations on {1, 2, 3,
4}:
Soluti
on:
. For each of these relations, we can show that it is transitive by verifying
that if (a, b) and (b, c) belong to this relation, then (a, c) also does. For
instance, R4 is transitive, because (3, 2) and (2, 1), (4, 2) and (2, 1), (4, 3)
and (3, 1), and (4, 3) and (3, 2) are the only such sets of pairs, and (3, 1),
(4, 1), and (4, 2) belong to R4. The reader should verify that R5 and R6
are transitive.
. R1 is not transitive because (3, 4) and (4, 1) belong to R1, but (3, 1)
does not. R2 is not transitive because (2, 1) and (1, 2) belong to R2, but
(2, 2) does not. R3 is not transitive because (4, 1) and (1, 2) belong to R3,
but (4, 2) does not.
Example:
Consider these relations on the set of integers:
Example:
Let . The relations and can be combined to obtain:
Definition:
Example:
What is the composite of the relations R and S, where R is the relation
from {1, 2, 3} to {1, 2, 3, 4} with and S is the relation from {1, 2, 3, 4}
to {0, 1, 2} with
Example:
Let Find the powers
𝟎 1 𝟎
𝑴 𝑹=
2 𝟏 𝟎
3 𝟏 𝟏
𝟎 𝟎
𝑴 𝑹=𝟏 𝟎
𝟏 𝟏
Example:
Let and Which ordered pairs are in the relation R represented by the
matrix:
𝒃
𝒃
𝒃𝒃
𝒃𝟏
𝟐
𝟑𝟒
𝟓
𝒂 𝟏
𝒂 𝟐
𝒂 𝟑
Soluti Because all the diagonal elements of this matrix are equal to
on: 1, R is . Moreover, because MR is , it follows that R is
symmetric. It is also easy to see that R is because .
Example:
Suppose that the relations R1 and R2 on a set A are represented by the
matrices
Soluti
on:
Representing Relations Using
Digraphs
Example:
The directed graph with vertices a, b, c, and d, and edges (a, b), (a, d),
(b, b), (b, d), (c, a), (c, b), and (d, b) is displayed in the following figure.
Example:
The directed graph of the relation R = {(1, 1), (1, 3), (2, 1), (2, 3), (2,
4), (3, 1), (3, 2), (4, 1)} on the set {1, 2, 3, 4} is shown in Figure
Exercises
Represent each of these relations on {1, 2, 3, 4} with a matrix