Properties of Relations

(関係の性質)

Discrete Mathematics I

10th lecture, December 2, 2022

https://www.sw.it.aoyama.ac.jp/2022/Math1/lecture10.html

Martin J. Dürst

AGU

© 2005-22 Martin J. Dürst Aoyama Gakuin University

 

Today's Schedule

 

Leftovers from Last Lecture

 

Summary of Last Lecture

 

Last Week's Homework
Examples of Relations

Comment: As always, homework can be submitted in Japanese

Describe three relations from the real world that can be expressed as mathematical relations.
For each relation, describe the sets used (including their size), the conditions for a tuple to be a member of the relation, the size of the Cartesian product, and the size of the relation, and give three examples of tuples belonging to the relation.

  1. A binary relation on a single set.

    Example solution: Relation on set of train stations (size ~1'000 for Kanto region), tuples of stations that can be reached from each other without changing trains, size of Cartesian product: ~1'000'000, size of relation ~50'000.
    Examples of tuples: (Fuchinobe, Nagatsuta), (Nagatsuta, Shibuya), (Hashimoto, Shinjuku); counterexample: (Fuchinobe, Shibuya)

  2. A binary relation between two different sets.

    Example solution: Relation between Sumo wrestler and stable (heya); size of set of wrestlers: ~600, size of set of stables: ~40; Cartesian product is ~25·103, size of relation is ~600
    Examples of tuples: (Terunofuji, Isegahama), (Abi, Shikoroyama), (Tobizaru, Oitekaze)

  3. A relation between more than two sets.

    Example solution: Baseball: Relation between a set of teams (~100), a set of players (~10000), a set of positions (9), and a set of numbers in batting order (9), size of Cartesian product is ~81'000'000, size of relation is ~900
    Example (outdated): (Miami Marlins, Ichiro Suzuki, right field, 1st),...

 

Properties of Relations

A binary relation on a set A can be:

  1. Reflexive
  2. Symmetric
  3. Antisymmetric
  4. Transitive

 

Reflexive Relation

1 ? ? ?
? 1 ? ?
? ? 1 ?
? ? ? 1

 

Symmetric Relation

? 1 0 1
1 ? 1 0
0 1 ? 0
1 0 0 ?

 

Antisymmetric Relation

? 0 ? ?
? ? 0 1
0 ? ? ?
0 1 0 ?

 

Row/Column Reordering

Divisibility,
before reordering
4 12 3 6 2
4 1 0 0 0 1
12 1 1 1 1 1
3 0 0 1 0 0
6 0 0 1 1 1
2 0 0 0 0 1
Divisibility,
after reordering
2 3 4 6 12
2 1 0 0 0 0
3 0 1 0 0 0
4 1 0 1 0 0
6 1 1 0 1 0
12 1 1 1 1 1

 

Antisymmetric and Asymmetric Relations

? 0 0 0
0 ? 0 0
0 0 ? 0
0 0 0 ?

 

Transitive Relation

Exercise: Which of the following relations are transitive?

1 1 1
0 0 0
0 1 0
1 1 1
1 1 0
0 0 0
1 1 1
0 1 0
0 1 1
1 1 1
0 1 1
0 0 0

 

Properties of Relations (Summary)

A binary relation on A can be:

  1. Reflexive: ∀xA: xRx; ∀xA: (x, x) ∈ R
  2. Symmetric: ∀x, yA: xRyyRx;
    x, yA: (x, y) ∈ R ⇔ (y, x) ∈ R
  3. Antisymmetric: ∀x, yA: xRyyRxx=y
  4. Transitive: ∀x, y, zA: xRyyRzxRz

 

Idempotent Relations

Exercise: Which of the following relations are idempotent/reflexive/transitive?

1 1 1
0 0 0
0 1 0
1 1 1
1 1 0
0 0 0
1 1 1
0 1 0
0 1 1
1 1 1
0 1 1
0 0 0

 

Transitive Closure

int change = 1;
while (change) {
    change = 0;
    /* process data */
    if (/* data changed */)
        change = 1;
}

 

Cautions about Transitive Closure

Calculating the transitive closure of a relation may not be possible.

The result of calculating a transitive closure, if it exists, is called a fixpoint.

Of all 16 relations on sets of size 2:

R 
0 1
1 0
R2
1 0
0 1
R3
0 1
1 0
R4
1 0
0 1
R5
0 1
1 0

 

Equivalence Relation

 

Equivalence Class

 

Partition

 

Equivalence Relations in Matrix Representation

Remainder modulo 3
1 4 2 5 3
1 1 1 0 0 0
4 1 1 0 0 0
2 0 0 1 1 0
5 0 0 1 1 0
3 0 0 0 0 1

A relation on a set A is an equivalence relation if and only if after suitable row/column reordering:

 

Partial Order

 

Examples of Order Relations

Some examples need a careful definition:

 

Order Relations in Matrix Representation

Divisibility
2 3 4 6 12
2 1 0 0 0 0
3 0 1 0 0 0
4 1 0 1 0 0
6 1 1 0 1 0
12 1 1 1 1 1

A relation on a set A is an order relation if only if after suitable row/column reordering:

 

Hasse Diagram

An order relation can be represented by a Hasse diagram.

How to convert a directed graph of an order relation to a Hasse diagram:

  1. Remove arrows that indicate reflexivity
  2. Rearange the vertices of the graph so that all arrows point upwards (or downwards)
  3. Remove the arrows that can be reconstructed using transitive closure
  4. Remove the arrowheads

Example: The relation "divisible by" on the set {12, 6, 4, 3, 2, 1}

 

Total Order

If for all elements b and c in a set A,

if either bc or cb, then

≥ is a total order (relation) or linear order (relation)

(≥ is a total order on A ⇔ ∀b, cA: bccb)

The Hasse diagram of a total order is a single line, without branches

Examples: ≥ for integers or rational; dates or time; order of words in a dictionary

 

Summary

 

This Week's Homework

(no need to submit)

Investigate all combinations of the four properties of relations introduced in this lecture (reflexive, symmetric, antisymmetric, transitive). For each combination, try to find an example relation (actual real-world data or small example expressed as a matrix).

Hint: Two combinations are impossible. Can you explain why?

 

Glossary

reflexive relation
反射的関係
(main) diagonal
(主) 対角線
symmetric relation
対称的関係
(matrix) transposition
(行列) 転置
sibling
兄弟 (姉妹も含む)
antisymmetric relation
反対称的関係
opposite
反対
asymmetric relation
非対称的関係
transitive relation
推移的関係
descendant
子孫
anchestor
先祖
transitive closure
推移的閉包
converge
収束
fixpoint
不動点
equivalence relation
同値関係
equivalence class
同値類
representative (element)
代表元
partition
分割
partial order
半順序
partial order relation
半順序関係
order relation
順序関係
partially ordered set
半順序集合
ordered set
順序集合
mutually exclusive
相互排他的な
Hasse diagram
ハッセ図
vertex (plural vertices)
(グラフの) 節、頂点
reconstruct
復元する
square
正方形
overlap
重なる、重複する
total order (relation)
全順序 (関係)、線形順序 (関係)