関係 の合成 と閉包
Composition and closure 閉包 へいほう of relations 関係 かんけい
1導入 どうにゅう
1Introduction
Sometimes we do not want to check a
A
2用語 ようご と定義 ていぎ :合成 ごうせい composition
、 を
で
2Terms and definition: composition 合成 ごうせい
Let and be
This says that we can move from to by and then from to by .
3用語 ようご と定義 ていぎ :恒等関係 こうとうかんけい identity relation と逆関係 ぎゃくかんけい inverse relation
と
である。
3Terms and definitions: identity relation 恒等関係 こうとうかんけい and inverse relation 逆関係 ぎゃくかんけい
For a
The
4閉包 へいほう closure とは何 なに か
4What is closure 閉包 へいほう ?
The
The
The
5方針 ほうしん
ここで
5Strategy
When constructing a
Here a
The
Being a
6直感的 ちょっかんてき な説明 せつめい
この
6Intuitive explanation
If a
In this view, the transitive closure is the
In terms of path length, the
7例題 れいだい :推移閉包 すいいへいほう transitive closure を作 つく る
7.1問題 もんだい
7Worked example: construct a transitive closure 推移閉包 すいいへいほう
7.1Problem
Find the
7.2解説 かいせつ
かつ なので、
である。これ
7.2Explanation
Because and ,
The resulting
No further
8証明 しょうめい 補足 ほそく :推移閉包 すいいへいほう transitive closure の最小性 さいしょうせい
と
は を
さらに、 が を
8Proof supplement: minimality of the transitive closure 推移閉包 すいいへいほう
Think of the
where is the relation obtained by composing with itself times.
The relation contains . Also, if and , then for some , and . Concatenating the paths gives , so .
Finally, if is any transitive relation with , induction gives for every . Hence , so is the smallest transitive relation containing .
9見分 みわ け方 かた と関連 かんれん リンク
関係 かんけい を続 つづ けて使 つか うなら、合成 ごうせい composition を考 かんが える。足 た りない自己 じこ ループを追加 ついか するなら、反射閉包 はんしゃへいほう reflexive closure である。逆向 ぎゃくむ きの矢印 やじるし を追加 ついか するなら、対称閉包 たいしょうへいほう symmetric closure である。到達可能性 とうたつかのうせい を直接 ちょくせつ の関係 かんけい relation として記録 きろく するなら、推移閉包 すいいへいほう transitive closure である。
9How to identify it and related links
- If a relation is used repeatedly, think of
composition .合成 ごうせい - If missing self-loops are added, it is the
reflexive closure .反射閉包 はんしゃへいほう - If reverse arrows are added, it is the
symmetric closure .対称閉包 たいしょうへいほう - If reachability is recorded as a direct
relation , it is the関係 かんけい transitive closure .推移閉包 すいいへいほう