Key Idea
induction on intermediate vertex, this is a little bit different than Bellman-Ford algorithm, Bellman-Ford is induction on edge, runs for iterations, while Floyd-Warshall is induction on vertex, runs for iterations.
Definition
- : the shortest path length from vertex to vertex , considering only vertex as intermediate vertexes.
- : matrix form for
關鍵:
for more information, see Floyd–Warshall algorithm.