Top "Bellman-ford" questions

The Bellman–Ford algorithm computes single-source shortest paths in a weighted digraph.

Bellman-Ford vs Dijkstra: Under what circumstances is Bellman-Ford better?

After a lot of Googling, I've found that most sources say that the Dijkstra algorithm is "more efficient" than the …

algorithm dijkstra shortest-path bellman-ford
What exactly can cause counting-to-infinity in the bellman-ford algorithm

From what I can understand, counting-to-infinity occurs when one router feeds another old information, which continues to propagate through the …

algorithm networking routing bellman-ford
Am I right about the differences between Floyd-Warshall, Dijkstra's and Bellman-Ford algorithms?

I've been studying the three and I'm stating my inferences from them below. Could someone tell me if I have …

algorithm graph-theory dijkstra floyd-warshall bellman-ford
Can we apply the Bellman-Ford algorithm to an Undirected Graph?

I know that Bellman-Ford Algorithm works for directed graphs. Will it will work for an undirected graph? It seems that …

algorithm data-structures graph graph-algorithm bellman-ford
Negative Weight Cycle Algorithm

I was thinking about the algorithm of finding a negative weight cycle in a directed graph. The Problem is: we …

algorithm graph-algorithm bellman-ford
Can Dijkstra's Single Source Shortest Path Algorithm detect an infinite cycle in a graph?

So I came to this beautiful problem that asks you to write a program that finds whether a negative infinity …

algorithm dijkstra shortest-path infinite bellman-ford
Why do we call it "Relaxing" an edge?

In Dijkstra's shortest path algorithm and others, to examine an edge to see if it offers a better path to …

dijkstra bellman-ford
Fastest algorithm to detect if there is negative cycle in a graph

I use a matrix d to present a graph. d.(i).(j) means the distance between i and j; v …

algorithm graph-theory dijkstra floyd-warshall bellman-ford