Chapter 9
Chapter 9
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
Section 9.1
Section Summary
Relations and Functions
Properties of Relations
Reflexive Relations
Symmetric and Antisymmetric Relations
Transitive Relations
Combining Relations
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 from a set A to a set B
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 or a relation from A to A.
Example:
Suppose that A = {a,b,c}. Then R = {(a,a),(a,b), (a,c)} is
a relation on A.
Let A = {1, 2, 3, 4}. The ordered pairs in the relation
R = {(a,b) | a divides b} are
(1,1), (1, 2), (1,3), (1, 4), (2, 2), (2, 4), (3, 3), and (4, 4).
Binary Relation on a Set (cont.)
Question: How many relations are there on a set A?
(1,1), (1, 2), (2, 1), (1, −1), and (2, 2)?
R1∘ R2 = {(b,D),(b,B)}
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)
Section 9.5
Section Summary
Equivalence Relations
Equivalence Classes
Equivalence Classes and Partitions
Equivalence Relations
Definition 1: A relation on a set A is called an
equivalence relation if it is reflexive, symmetric, and
transitive.
A Partition of a Set
An Equivalence Relation Partitions
a Set
Let R be an equivalence relation on a set A. The union
of all the equivalence classes of R is all of A, since an
element a of A is in its own equivalence class [a]R. In
other words,
These properties all follow from the order axioms for the integers.
(See Appendix 1).
Partial Orderings (continued)
Example 2: Show that the divisibility relation (∣) is a
partial ordering on the set of integers.
Reflexivity: a ∣ a for all integers a. (see Example 9 in
Section 9.1)
Antisymmetry: If a and b are positive integers with a | b
and b | a, then a = b. (see Example 12 in Section 9.1)
Transitivity: Suppose that a divides b and b divides c.
Then there are positive integers k and l such that b = ak
and c = bl. Hence, c = a(kl), so a divides c. Therefore, the
relation is transitive.
(Z+, ∣) is a poset.
Partial Orderings (continued)
Example 3: Show that the inclusion relation (⊆) is a
partial ordering on the power set of a set S.
Reflexivity: A ⊆ A whenever A is a subset of S.
Antisymmetry: If A and B are positive integers with
A ⊆ B and B ⊆ A, then A = B.
Transitivity: If A ⊆ B and B ⊆ C, then A ⊆ C.