Math 2.0

Combinatorics Concept

Floyd–Warshall algorithm

Summary

The Floyd–Warshall algorithm computes the shortest path lengths between all pairs of vertices of a weighted directed graph. It is a dynamic programming method that allows the vertices 1,…,k1, \dots, k as intermediate stops, one more at each stage. It accepts negative edge weights as long as there is no negative cycle, and it runs in time O(n3)O(n^3) on nn vertices.

Further reading

  1. Web https://en.wikipedia.org/wiki/Floyd%E2%80%93Warshall_algorithm
About this page
TagH8T4X0KXE1
URIm2://H8T4X0KXE1
Kindconcept
WritingW0 stub
MSC05C85, 90C35, 68W40
SpecializesDynamic programming
Same as
Changed3 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

Definitions