Which term refers to an algorithm that computes shortest paths from a single source vertex in a graph, even with negative edge weights?
- A. Bellman-Ford algorithm ✓
- B. Space complexity
- C. Amortized analysis
- D. Selection sort
Correct answer
A. Bellman-Ford algorithm
Explanation
Bellman-Ford algorithm refers to an algorithm that computes shortest paths from a single source vertex in a graph, even with negative edge weights.