Floyd Warshall
Floyd-Warshall is an all-pairs shortest path algorithm which runs in
time. It is a very simple algorithm, requiring only four or five lines in most implementations. It requires a matrix for the distances between two points, so an adjacency matrix is a good choice here. It works by considering optimal paths through a middle vertex. Quite remarkably, if the iteration is done in the correct order, only one iteration is required.
page_revision: 2, last_edited: 1195698657|%e %b %Y, %H:%M %Z (%O ago)





