Skip to content
EntityQ816022· pop 30· linked from 173 articles

Bellman–Ford algorithm

Sign in to save

Also known as Bellman–Ford–Moore algorithm, Bellman-Ford equation, distance-vector routing algorithm

algorithm for finding single-source shortest paths in graphs, allowing some edge weights to be negative

In the Vinony graph

Vinony's link graph records 173 inbound references to Bellman–Ford algorithm, and connects out to shortest path problem, International Standard Book Number and algorithm.

Vinony files it under Dynamic programming, Graph algorithms and Graph distance.

Vinony links it to 29 Wikipedia language editions.

Key facts

Class
Single-source shortest path problem (for weighted directed graphs)
Data structure
Graph
Worst case performance
Θ ( | V | | E | ) {\displaystyle \Theta (|V||E|)}
Best case performance
Θ ( | E | ) {\displaystyle \Theta (|E|)}
Worst case space complexity
Θ ( | V | ) {\displaystyle \Theta (|V|)}

via Wikipedia infobox

Wikidata facts

Image
Bellman–Ford algorithm example.gif
Show 1 more fact
Commons category
Bellman–Ford algorithm
Sources (2)

via Wikidata · CC0

~16 min read

Encyclopedic overview

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.

Excerpted from Wikipedia’s “Bellman–Ford algorithm” article, available under the CC BY-SA 4.0 licence.

Connections

Categories