Lably
Skip to content

Floyd–Warshall algorithm

Algorithm in graph theory

  • 10 min read
  • 9 chapters

Related on Lably

Through Computer science, Algorithm and Recursion

History and naming

The Floyd–Warshall algorithm is an example of dynamic programming, and 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, and is closely related to Kleene's algorithm (published in 1956) for converting a deterministic finite automaton into a regular expression, with the difference being the use of a min-plus semiring. The modern formulation of the algorithm as three nested for-loops was first described by Peter Ingerman, also in 1962.

Sign in to keep reading

8 more chapters are free with a Lably account.

More in Discrete mathematics