文件名称:Floyd-Warshall-c-chengxi
介绍说明--下载内容均来自于网络,请自行研究使用
Johson算法是目前最高效的在无负环可带负权重的网络中求所有点对最短路径的算法. Johson算法是Bellman-Ford算法, Reweighting(重赋权重)和Dijkstra算法的大综合. 对每个顶点运用Dijkstra算法的时间开销决定了Johnson算法的时间开销. 每次Dijkstra算法(d堆PFS实现)的时间开销是O( E * lgd(V) ). 其中E为边数, V为顶点数, d为采用d路堆实现优先队列ADT. 所以, 此种情况下Johnson算法的时间复杂度是O( V * E * lgd(V) ).-The Johson algorithm is currently the most efficient of the network without negative ring can with negative weights seek all points of the shortest path algorithm. Johson algorithm Bellman-Ford algorithm Reweighting (re-empower the weight) and Dijkstra algorithm for the large integrated. For eachtime overhead of the vertices using Dijkstra algorithm to determine the time of the Johnson algorithm overhead each Dijkstra algorithm (d-heap PFS), time overhead is O (E* lgd (V)) where E is the number of edges, V verticesd d Lu heap priority queue the ADT. this case the Johnson algorithm time complexity is O (V* E* lgd (V)).
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Floyd-Warshall-c-chengxi.doc