Bellman–Ford algorithm
Algorithm for finding single-source shortest paths in graphs, allowing some edge weights to be negative
The Bellman–Ford algorithm is an algorithm that computes shortest paths from a single source vertex to all of the other vertices in a weighted digraph. It is slower than Dijkstra's algorithm for the same problem, but more versatile, as it is capable of handling graphs in which some of the edge weights are negative numbers.
Nº Q816022 ★★
Uncommon · Knowledge
Bellman–Ford algorithm
Algorithm for finding single-source shortest paths in graphs, allowing some edge weights to be negative
The Bellman–Ford algorithm is an algorithm that computes shortest paths from a single source vertex to all of the other vertices in a weighted digraph. It is slower than Dijkstra's algorithm for the same problem, but more versatile, as it is capable of handling graphs in which some of the edge weights are negative numbers.
Last price
—
Floor price
—
7-day median
—
30-day sales
0
30-day range
—
In circulation
0
Price history
median
low – high
sales
No sales in this period
Show table
| Date | median | Low | High | sales |
|---|
Sales history
- Last sale
- —
- 30-day average
- —
- 30-day low
- —
- 30-day high
- —
- Sales 7d
- 0
- Sales 30d
- 0
No sales yet.
Anonymous sales: no buyer or seller shown. Figures count player-to-player sales only.
From Wikipedia
The Bellman–Ford algorithm is an algorithm that computes shortest paths from a single source vertex to all of the other vertices in a weighted digraph. It is slower than Dijkstra's algorithm for the same problem, but more versatile, as it is capable of handling graphs in which some of the edge weights are negative numbers. The algorithm was first proposed by Alfonso Shimbel (1955), but is instead named after Richard Bellman and Lester Ford Jr., who published it in 1958 and 1956, respectively. Edward F. Moore also published a variation of the algorithm in 1959, and for this reason it is also sometimes called the Bellman–Ford–Moore algorithm. Negative edge weights are found in various applications of graphs. This is why this algorithm is useful. If a graph contains a "negative cycle" (i.e. a cycle whose edges sum to a negative value) that is reachable from the source, then there is no cheapest path: any path that has a point on the negative cycle can be made cheaper by one more walk around the negative cycle. In such a case, the Bellman–Ford algorithm can detect and report the negative cycle.
Text: Wikipédia, CC BY-SA 4.0. · Image: Michel Bakni (CC BY-SA 4.0) ·
Related cards
-
J
Johnson's algorithm
Algorithm to find shortest paths between all pairs of vertices in a sparse, edge-weighted (possibly negatively), directed graph; uses the Bellman–Ford algorithm to remove negative weights and Dijkstra’s algorithm on the rest
Nº Q2345824 ★
Not listed
-
R
Richard Bellman
American mathematician (1920–1984)
Nº Q441199 ★
Not listed
-
Needleman–Wunsch algorithm
Algorithm
Nº Q583546 ★
Not listed
-
Ford–Fulkerson algorithm
Algorithm
Nº Q284695 ★
Not listed
-
Floyd–Steinberg dithering
Image dithering algorithm
Nº Q1324107 ★
Not listed
-
L
Lanczos algorithm
Numerical method for find eigenvalues
Nº Q366640 ★★
Not listed