Teaching > Parallélisme et Distribution >
The goal of this project is to implement an all-pairs shortest path using the Floyd-Warshall algorithm. The result is the shortest path (number of hops) between any pair of vertices in a graph.
Overview of the project :
The algorithm works as follows :
Example :
Matrix A
0 1 2 0 0 0 0 1 0 3 0 6 0 0 0 0
Matrix W
0 1 2 +inf +inf 0 +inf 1 +inf 3 0 6 +inf +inf +inf 0
W^2 (and later W^4)
0 1 2 2 +inf 0 +inf 1 +inf 3 0 4 +inf +inf +inf 0
Using this matrix, we can see the cost from D toward any other vertex is +inf because there is no path from D. The cost from A to D is 2.
The individual project is to be submitted through a GitHub private repository (invite fabricehuet) and have the following: