-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path68P15-GraphtheoreticRepresentationOfRelationComposition.tex
More file actions
274 lines (237 loc) · 10.8 KB
/
68P15-GraphtheoreticRepresentationOfRelationComposition.tex
File metadata and controls
274 lines (237 loc) · 10.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
\documentclass[12pt]{article}
\usepackage{pmmeta}
\pmcanonicalname{GraphtheoreticRepresentationOfRelationComposition}
\pmcreated{2013-03-22 17:50:36}
\pmmodified{2013-03-22 17:50:36}
\pmowner{Jon Awbrey}{15246}
\pmmodifier{Jon Awbrey}{15246}
\pmtitle{graph-theoretic representation of relation composition}
\pmrecord{9}{40314}
\pmprivacy{1}
\pmauthor{Jon Awbrey}{15246}
\pmtype{Example}
\pmcomment{trigger rebuild}
\pmclassification{msc}{68P15}
\pmclassification{msc}{08A02}
\pmclassification{msc}{05C65}
\pmclassification{msc}{05B30}
\pmclassification{msc}{03E20}
\pmclassification{msc}{05B20}
\pmclassification{msc}{03B10}
\pmclassification{msc}{68R01}
%\pmkeywords{bigraph}
%\pmkeywords{bipartite graph}
%\pmkeywords{binary relation}
%\pmkeywords{dyadic relation}
%\pmkeywords{graph}
%\pmkeywords{relation}
%\pmkeywords{relation composition}
\pmrelated{AlgebraicRepresentationOfRelationComposition}
\pmrelated{GeometricRepresentationOfRelationComposition}
\pmrelated{MatrixRepresentationOfRelationComposition}
\endmetadata
% this is the default PlanetMath preamble. as your knowledge
% of TeX increases, you will probably want to edit this, but
% it should be fine as is for beginners.
% almost certainly you want these
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}
% used for TeXing text within eps files
%\usepackage{psfrag}
% need this for including graphics (\includegraphics)
%\usepackage{graphicx}
% for neatly defining theorems and propositions
%\usepackage{amsthm}
% making logically defined graphics
%%%\usepackage{xypic}
% there are many more packages, add them here as you need them
% define commands here
\begin{document}
\PMlinkescapephrase{complex}
\PMlinkescapephrase{Complex}
\PMlinkescapephrase{dyadic}
\PMlinkescapephrase{Dyadic}
There is another form of representation for 2-adic relations that is useful to keep in mind, especially for its ability to render the logic of many complex formulas almost instantly understandable to the mind's eye. This is the representation in terms of \textit{\PMlinkname{bipartite graphs}{BipartiteGraph}}, or \textit{bigraphs} for short.
Here is what $G$ and $H$ look like in the bigraph picture:
\begin{quote}\begin{verbatim}
o---------------------------------------o
| . . . . . . . . . . . . . . . . . . . |
| . . 1 . 2 . 3 . 4 . 5 . 6 . 7 . . . . |
| . . o . o . o . o . o . o . o . .X. . |
| . . . . . . . ./|\. . . . . . . . . . |
| . . . . . . . / | \ . . . . . . .G. . |
| . . . . . . ./. | .\. . . . . . . . . |
| . . o . o . o . o . o . o . o . .X. . |
| . . 1 . 2 . 3 . 4 . 5 . 6 . 7 . . . . |
| . . . . . . . . . . . . . . . . . . . |
o---------------------------------------o
Figure 9. G = 4:3 + 4:4 + 4:5
\end{verbatim}\end{quote}
\begin{quote}\begin{verbatim}
o---------------------------------------o
| . . . . . . . . . . . . . . . . . . . |
| . . 1 . 2 . 3 . 4 . 5 . 6 . 7 . . . . |
| . . o . o . o . o . o . o . o . .X. . |
| . . . . . . .\. | ./. . . . . . . . . |
| . . . . . . . \ | / . . . . . . .H. . |
| . . . . . . . .\|/. . . . . . . . . . |
| . . o . o . o . o . o . o . o . .X. . |
| . . 1 . 2 . 3 . 4 . 5 . 6 . 7 . . . . |
| . . . . . . . . . . . . . . . . . . . |
o---------------------------------------o
Figure 10. H = 3:4 + 4:4 + 5:4
\end{verbatim}\end{quote}
These graphs may be read to say:
\begin{quote}
$G$ puts $4$ in relation to $3, 4, 5$.
\\
$H$ puts $3, 4, 5$ in relation to $4$.
\end{quote}
To form the \PMlinkname{composite relation}{CompositionOfRelations} $G \circ H$, one simply follows the bigraph for $G$ by the bigraph for $H$, here arranging the bigraphs in order down the page, and then treats any non-empty set of paths of length two between two nodes as being equivalent to a single directed edge between those nodes in the composite bigraph for $G \circ H$.
Here's how it looks in pictures:
\begin{quote}\begin{verbatim}
o---------------------------------------o
| . . . . . . . . . . . . . . . . . . . |
| . . 1 . 2 . 3 . 4 . 5 . 6 . 7 . . . . |
| . . o . o . o . o . o . o . o . .X. . |
| . . . . . . . ./|\. . . . . . . . . . |
| . . . . . . . / | \ . . . . . . .G. . |
| . . . . . . ./. | .\. . . . . . . . . |
| . . o . o . o . o . o . o . o . .X. . |
| . . . . . . .\. | ./. . . . . . . . . |
| . . . . . . . \ | / . . . . . . .H. . |
| . . . . . . . .\|/. . . . . . . . . . |
| . . o . o . o . o . o . o . o . .X. . |
| . . 1 . 2 . 3 . 4 . 5 . 6 . 7 . . . . |
| . . . . . . . . . . . . . . . . . . . |
o---------------------------------------o
Figure 11. G Followed By H
\end{verbatim}\end{quote}
\begin{quote}\begin{verbatim}
o---------------------------------------o
| . . . . . . . . . . . . . . . . . . . |
| . . 1 . 2 . 3 . 4 . 5 . 6 . 7 . . . . |
| . . o . o . o . o . o . o . o . .X. . |
| . . . . . . . . | . . . . . . . . . . |
| . . . . . . . . | . . . . . . .G o H. |
| . . . . . . . . | . . . . . . . . . . |
| . . o . o . o . o . o . o . o . .X. . |
| . . 1 . 2 . 3 . 4 . 5 . 6 . 7 . . . . |
| . . . . . . . . . . . . . . . . . . . |
o---------------------------------------o
Figure 12. G Composed With H
\end{verbatim}\end{quote}
Once again we find that $G \circ H$ = $4:4$.
To see the utility of the bigraph picture of 2-adic relations, let us devise a slightly more complex example of a composition problem, and use it to illustrate the logic of the matrix multiplication formula.
Keeping to the same space $X = \{ 1, 2, 3, 4, 5, 6, 7 \}$, define the 2-adic relations $M, N \subseteq X \times X$ as follows:
\begin{quote}$\begin{array}{lcccccc}
M & = & 2\mathrm{:}1 + 2\mathrm{:}2 + 2\mathrm{:}3 + 4\mathrm{:}3 & + & 4\mathrm{:}4 & + & 4\mathrm{:}5 + 6\mathrm{:}5 + 6\mathrm{:}6 + 6\mathrm{:}7 \\
N & = & 1\mathrm{:}1 + 2\mathrm{:}1 + 3\mathrm{:}3 + 4\mathrm{:}3 & & + & & 4\mathrm{:}5 + 5\mathrm{:}5 + 6\mathrm{:}7 + 7\mathrm{:}7 \\
\end{array}$\end{quote}
Here are the bigraph pictures:
\begin{quote}\begin{verbatim}
o---------------------------------------o
| . . . . . . . . . . . . . . . . . . . |
| . . 1 . 2 . 3 . 4 . 5 . 6 . 7 . . . . |
| . . o . o . o . o . o . o . o . .X. . |
| . . . ./|\. . ./|\. . ./|\. . . . . . |
| . . . / | \ . / | \ . / | \ . . .M. . |
| . . ./. | .\./. | .\./. | .\. . . . . |
| . . o . o . o . o . o . o . o . .X. . |
| . . 1 . 2 . 3 . 4 . 5 . 6 . 7 . . . . |
| . . . . . . . . . . . . . . . . . . . |
o---------------------------------------o
Figure 13. Dyadic Relation M
\end{verbatim}\end{quote}
\begin{quote}\begin{verbatim}
o---------------------------------------o
| . . . . . . . . . . . . . . . . . . . |
| . . 1 . 2 . 3 . 4 . 5 . 6 . 7 . . . . |
| . . o . o . o . o . o . o . o . .X. . |
| . . | ./. . | ./.\. | . .\. | . . . . |
| . . | / . . | / . \ | . . \ | . .N. . |
| . . |/. . . |/. . .\| . . .\| . . . . |
| . . o . o . o . o . o . o . o . .X. . |
| . . 1 . 2 . 3 . 4 . 5 . 6 . 7 . . . . |
| . . . . . . . . . . . . . . . . . . . |
o---------------------------------------o
Figure 14. Dyadic Relation N
\end{verbatim}\end{quote}
To form the composite relation $M \circ N$, one simply follows the bigraph for $M$ by the bigraph for $N$, here arranging the bigraphs in order down the page, and then counts any non-empty set of paths of length two between two nodes as being equivalent to a single directed edge between those two nodes in the composite bigraph for $M \circ N$.
Here's how it looks in pictures:
\begin{quote}\begin{verbatim}
o---------------------------------------o
| . . . . . . . . . . . . . . . . . . . |
| . . 1 . 2 . 3 . 4 . 5 . 6 . 7 . . . . |
| . . o . o . o . o . o . o . o . .X. . |
| . . . ./|\. . ./|\. . ./|\. . . . . . |
| . . . / | \ . / | \ . / | \ . . .M. . |
| . . ./. | .\./. | .\./. | .\. . . . . |
| . . o . o . o . o . o . o . o . .X. . |
| . . | ./. . | ./ \. | . .\. | . . . . |
| . . | / . . | / . \ | . . \ | . .N. . |
| . . |/. . . |/. . .\| . . .\| . . . . |
| . . o . o . o . o . o . o . o . .X. . |
| . . 1 . 2 . 3 . 4 . 5 . 6 . 7 . . . . |
| . . . . . . . . . . . . . . . . . . . |
o---------------------------------------o
Figure 15. M Followed By N
\end{verbatim}\end{quote}
\begin{quote}\begin{verbatim}
o---------------------------------------o
| . . . . . . . . . . . . . . . . . . . |
| . . 1 . 2 . 3 . 4 . 5 . 6 . 7 . . . . |
| . . o . o . o . o . o . o . o . .X. . |
| . . . ./.\. . ./.\. . ./.\. . . . . . |
| . . . / . \ . / . \ . / . \ . .M o N. |
| . . ./. . .\./. . .\./. . .\. . . . . |
| . . o . o . o . o . o . o . o . .X. . |
| . . 1 . 2 . 3 . 4 . 5 . 6 . 7 . . . . |
| . . . . . . . . . . . . . . . . . . . |
o---------------------------------------o
Figure 16. M Composed With N
\end{verbatim}\end{quote}
Let us hark back to that mysterious matrix multiplication formula, and see how it appears in the light of the bigraph representation.
The coefficient of the composition $M \circ N$ between $i$ and $j$ in $X$ is given as follows:
\begin{quote}
$(M \circ N)_{ij} = \sum_{k} M_{ik} N_{kj}.$
\end{quote}
Graphically interpreted, this is a \textit{sum over paths}. Starting at the node $i$, $M_{ik}$ being 1 indicates that there is an edge in the bigraph of $M$ from node $i$ to node $k$, and $N_{kj}$ being 1 indicates that there is an edge in the bigraph of $N$ from node $k$ to node $j$. So the $\sum_{k}$ ranges over all possible intermediaries $k$, ascending from 0 to 1 just as soon as there happens to be some path of length two between nodes $i$ and $j$.
It is instructive at this point to compute the other possible composition that can be formed from $M$ and $N$, namely, the composition $N \circ M$, that takes $M$ and $N$ in the opposite order. Here is the graphic computation:
\begin{quote}\begin{verbatim}
o---------------------------------------o
| . . . . . . . . . . . . . . . . . . . |
| . . 1 . 2 . 3 . 4 . 5 . 6 . 7 . . . . |
| . . o . o . o . o . o . o . o . .X. . |
| . . | ./. . | ./.\. | . .\. | . . . . |
| . . | / . . | / . \ | . . \ | . .N. . |
| . . |/. . . |/. . .\| . . .\| . . . . |
| . . o . o . o . o . o . o . o . .X. . |
| . . . ./|\. . ./|\. . ./|\. . . . . . |
| . . . / | \ . / | \ . / | \ . . .M. . |
| . . ./. | .\./. | .\./. | .\. . . . . |
| . . o . o . o . o . o . o . o . .X. . |
| . . 1 . 2 . 3 . 4 . 5 . 6 . 7 . . . . |
| . . . . . . . . . . . . . . . . . . . |
o---------------------------------------o
Figure 17. N Followed By M
\end{verbatim}\end{quote}
\begin{quote}\begin{verbatim}
o---------------------------------------o
| . . . . . . . . . . . . . . . . . . . |
| . . 1 . 2 . 3 . 4 . 5 . 6 . 7 . . . . |
| . . o . o . o . o . o . o . o . .X. . |
| . . . . . . . . . . . . . . . . . . . |
| . . . . . . . . . . . . . . . .N o M. |
| . . . . . . . . . . . . . . . . . . . |
| . . o . o . o . o . o . o . o . .X. . |
| . . 1 . 2 . 3 . 4 . 5 . 6 . 7 . . . . |
| . . . . . . . . . . . . . . . . . . . |
o---------------------------------------o
Figure 18. N Composed With M
\end{verbatim}\end{quote}
In sum, $N \circ M = 0$. This example affords sufficient evidence that relational composition, just like its kindred, matrix multiplication, is a non-commutative algebraic operation.
%%%%%
%%%%%
\end{document}