Bellman-Ford Algorithm for Single Source Shortest Path
After watching the simulation, why does the algorithm need exactly V-1 iterations?
In the simulation, when an edge is highlighted during relaxation, what is the algorithm doing?
During the simulation, you notice a vertex's distance value changes from 15 to 12. What does this indicate?
If you observe in the simulation that no distance values change during an entire iteration, what can you conclude?
Based on the simulation, what happens during the relaxation of edge A→B with weight 3, if distance[A] = 5 and distance[B] = 7?
In the simulation, you see that after V-1 iterations, running one more iteration still updates a distance value. What does this mean?
Watching the simulation with edges: S→A (4), S→B (5), A→B (-6), with distances after iteration 1 being S=0, A=4, B=5. After iteration 2, what will distance[B] become?
Consider a graph shown in the simulation: A→B (2), B→C (3), C→A (-8), with source A. What is the final output of Bellman-Ford on this graph?
In the simulation, edges are processed in order: E1, E2, E3, E4. If you change the order to E4, E3, E2, E1, what happens to the final result?
After using the simulation, you understand that Bellman-Ford is preferred over Dijkstra when:
A delivery company wants the cheapest routes from one source city to all other cities, and some routes have toll rebates (negative costs). Which algorithm should they use and why?
In currency exchange, how can Bellman-Ford be used to detect arbitrage opportunities?