1. Shur complement
The Shur complement method is an asymptotically better way to calculate the
all points shortest path matrix.
- Partition the graph into 2 sets of nodes {S,T}
There will be 4 kinds of edges:
| = M As an example, B contains all edges from T to S
- compute A* (all internal connections in T)
- F = D+CA*B
- F*
Form the matrix:
M* = ( |
| )
This matrix is the all shortest path matrix.
Proof: Consider each possible path in terms of combinations of A,B,C,D and think about
which entries these will include.
(CA*B)ij = shortest path form i to j using only vertices in T.
1.1 Timing analyses
T(n) = 2T(n/2)+cn3 = cn3+2c(n/2)3+... = O(n3) This is better than the all points shortest path calculated by rings method.
File translated from TEX by TTH, version 1.30.
|