演算法›Ch4 圖論演算法第 89 題/共 111 題
89. Floyd-Warshall、All-Pairs Shortest Path
#AL-04-089中Floyd-WarshallAll-Pairs Shortest Path
(10%) Consider the given directed graph.
The Floyd-Warshall algorithm can solve the all-pairs shortest-paths problem on a directed graph . Answer the following questions.
(1) (2%) What is the time complexity of Floyd-Warshall algorithm?
(2) (3%) Let be the weight of a shortest path from vertex to vertex for which all intermediate vertices are in the set and be a matrix. Floyd-Warshall algorithm computes from as the following formula.
________________
Please complete the above formula.
(3) (5%) Let be the length of the shortest path from node to node . What is ?

📄 成大110
▤完整推導請見《WH 資工筆記 · 演算法》Ch4 圖論演算法