Graph Theory37 sections · 1633 units
Open in CourseQuiz: Cycle Reconstruction
Knowledge check
Check Your Understanding
When reconstructing a negative cycle, you find a node that gets relaxed on the -th iteration. You follow parent pointers from exactly times. Why times?
- A.It guarantees you land inside the cycle, not on a path leading to it
- B.Because the cycle has exactly nodes
- C.Because the parent array has exactly entries
- D.Because Bellman-Ford always finds cycles of length