Floyd–Warshall algorithm

Floyd–Warshall algorithm

Jesse Russell Ronald Cohn

     

бумажная книга



ISBN: 978-5-5149-6414-7

High Quality Content by WIKIPEDIA articles! In computer science, the Floyd–Warshall algorithm (also known as Floyd`s algorithm, Roy–Warshall algorithm, Roy–Floyd algorithm, or the WFI algorithm) is a graph analysis algorithm for finding shortest paths in a weighted graph with positive or negative edge weights (but with no negative cycles, see below) and also for finding transitive closure of a relation R. A single execution of the algorithm will find the lengths (summed weights) of the shortest paths between all pairs of vertices, though it does not return details of the paths themselves. The algorithm is an example of dynamic programming. It was published in its currently recognized form by Robert Floyd in 1962. However, it is essentially the same as algorithms previously published by Bernard Roy in 1959 and also by Stephen Warshall in 1962 for finding the transitive closure of a graph. The modern formulation of Warshall`s algorithm as three nested for-loops was first described by Peter Ingerman, also in 1962.