AllPairsShortestPaths(W): D = W for i=1 to s do D = MatMin(D, D) return D
We can reduce n matrix multiplications to log n square computations!