正在加载图片...
Floyd-warshall algorithm Also dynamic programming, but faster Define c, (k)= weight of a shortest path from i to i with intermediate vertices belonging to the set (1, 2,.,k Thus, 8(i,j=c (n). Also, Ciy c 2001 by Charles E Leiserson Introduction to Agorithms Day32L19.9© 2001 by Charles E. Leiserson Introduction to Algorithms Day 32 L19.9 Floyd-Warshall algorithm Also dynamic programming, but faster! Define cij(k) = weight of a shortest path from i to j with intermediate vertices belonging to the set {1, 2, …, k}. ii ≤≤kk ≤≤kk ≤≤kk ≤≤kk jj Thus, δ(i, j) = cij(n). Also, cij(0) = aij
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有