演算法›Ch4 圖論演算法
第 75 題/共 111 題
◀ AL 75/111
75. Floyd-Warshall、All-Pairs Shortest Path
#AL-04-075易Floyd-WarshallAll-Pairs Shortest Path

The Floyd-Warshall algorithm can solve the all-pairs shortest-paths problem on a directed graph G=(V,E)G = (V, E). Let dij(k)d_{ij}^{(k)} be the weight of a shortest path from vertex ii to vertex jj for which all intermediate vertices are in the set {1,2,…,k}\{1, 2, \ldots, k\} and D(k)=(dij(k))D^{(k)} = \left(d_{ij}^{(k)}\right) be a n×nn \times n matrix. Floyd-Warshall algorithm computes D(k)D^{(k)} from D(k−1)D^{(k-1)} as the following formula.

dij(k)=d_{ij}^{(k)} = ______

Please complete the above formula.

📄 成大114
跳轉到第題
▤完整推導請見《WH 資工筆記 · 演算法》Ch4 圖論演算法
本章題號 · 61–80 / 111