Bellman-Ford Algorithm Quiz
Bellman-Ford Algorithm Quiz
4. In Bellman-Ford, how many iterations are required to find the shortest path?
A. Infinity
B. 1
C. Zero
D. One
8. What is the initial distance set for all nodes except the starting node?
A. Zero
B. 1
C. Infinity
D. One
A. It ignores them
B. It considers them in every iteration
C. It converts them to positive weights
D. It removes them from the graph
a) A → V
b) Z → X
c) W → X
d) X → Z
a) 9
b) 6
c) 7
d) 8
19. What does the Bellman-Ford algorithm check for after completing |V| - 1
iterations?