Floyd–Warshall algorithm
Algorithm for finding all-pairs shortest paths in graphs, allowing some edge weights to be negative
In computer science, the Floyd–Warshall algorithm (also known as Floyd's algorithm, the Roy–Warshall algorithm, the Roy–Floyd algorithm, or the WFI algorithm) is an algorithm for finding shortest paths in a directed weighted graph with positive or negative edge weights (but with no negative cycles). A single execution of the algorithm will find the lengths (summed weights) of shortest paths between all pairs of vertices.
Nº Q1047576 ★★
Uncommon · Knowledge
Floyd–Warshall algorithm
Algorithm for finding all-pairs shortest paths in graphs, allowing some edge weights to be negative
In computer science, the Floyd–Warshall algorithm (also known as Floyd's algorithm, the Roy–Warshall algorithm, the Roy–Floyd algorithm, or the WFI algorithm) is an algorithm for finding shortest paths in a directed weighted graph with positive or negative edge weights (but with no negative cycles). A single execution of the algorithm will find the lengths (summed weights) of shortest paths between all pairs of vertices.
From Wikipedia
In computer science, the Floyd–Warshall algorithm (also known as Floyd's algorithm, the Roy–Warshall algorithm, the Roy–Floyd algorithm, or the WFI algorithm) is an algorithm for finding shortest paths in a directed weighted graph with positive or negative edge weights (but with no negative cycles). A single execution of the algorithm will find the lengths (summed weights) of shortest paths between all pairs of vertices. Although it does not return details of the paths themselves, it is possible to reconstruct the paths with simple modifications to the algorithm. Versions of the algorithm can also be used for finding the transitive closure of a relation, or (in connection with the Schulze voting system) widest paths between all pairs of vertices in a weighted graph.
Text: Wikipédia, CC BY-SA 4.0. · Image: Mablue92 (CC BY-SA 4.0) ·
Related cards
-
Dijkstra's algorithm
Graph search algorithm
Nº Q8548 ★★★★
Not listed
-
Floyd Cycle Detection Algorithm
Algorithm of cycle finding
Nº Q1588200 ★
Not listed
-
Pathfinding
Plotting, by a computer application, of the shortest route between two points
Nº Q1969601 ★
Not listed
-
B
Blossom algorithm
Algorithm for constructing maximum matchings on a graph
Nº Q1030529 ★
Not listed
-
Lloyd's algorithm
Method for creating geometric centroidal tessellations from points
Nº Q2835805 ★
Not listed
-
H
Halley's method
Method of numerically finding roots of a function
Nº Q1476051 ★
Not listed