Graph Theory37 sections · 1633 units
Open in CourseQuiz: Bounded Relaxation
Knowledge check
Check Your Understanding
You are solving "cheapest flights within stops" using Bellman-Ford. You run iterations but forget to copy the distance array before each iteration. What goes wrong?
- A.The algorithm becomes slower than
- B.The algorithm detects a false negative cycle
- C.Nothing goes wrong. The copy is an unnecessary optimization
- D.You might use paths with more than stops because updates within one iteration chain together