ch7 5
ch7 5
ch7 5
5
Equivalence Relations
_________________
Definition: A relation R on a set A is an equivalence relation iff R is
• reflexive
• symmetric
• transitive
Note that { {}, {1,3}, {2} } is not a partition (it contains the empty set).
{ {1,2}, {2, 3} } is not a partition because ….
{ {1}, {2} } is not a partition of {1, 2, 3} because none of its blocks contains 3.
It is easy to recognize equivalence relations using digraphs:
• The equivalence class of a particular element forms a universal relation
(contains all possible arcs) between the elements in the equivalence class.
The (sub)digraph representing the subset is called a complete (sub)digraph,
since all arcs are present.
Example: All possible equivalence relations on a set A with 3 elements:
1. Determine whether the relations represented by these zero-one matrices
are equivalence relations. If yes, with how many equivalence classes?
1 0 1 0 1 1 1 0
1 1 1 0 1 0 1 1 1 1 0
M 0 1 1 P R
1 0 1 0 1 1 1 0
1 1 1
0 1 0 1 0 0 0 1
2. What are the equivalence classes (sets in the partition) of the integers
arising from congruence modulo 4?
Examples:
p(0)=1, since there is only one partition of the empty set:
into the empty collection of subsets
Example:
Theorem: tsr(R) is an equivalence relation.
Proof:
We need to show that tsr(R) is still symmetric and reflexive.
• Since we only add arcs vs. deleting arcs when computing closures it
must be that tsr(R) is reflexive since all loops <x, x> on the diagraph
must be present when constructing r(R).
• If there is an arc <x, y> then the symmetric closure of r(R) ensures
there is an arc <y, x>.