演算法›Ch4 圖論演算法第 17 題/共 111 題
17. Floyd-Warshall、空間複雜度
#AL-04-017易Floyd-Warshall空間複雜度
Given a graph with the adjacent matrix with an matrix. The following algorithm can compute the All-Pairs Shortest Path of .
FLOYD-WARSHALL'(W) 1 D = W 2 for k = 1,2,...,n 3 for i = 1,2,...,n 4 for j = 1,2,...,n 5
What is the SPACE complexity of this algorithm?
📄 台大111
▤完整推導請見《WH 資工筆記 · 演算法》Ch4 圖論演算法