cosmos icon indicating copy to clipboard operation
cosmos copied to clipboard

Bellman Ford Modification

Open AmitMandhana opened this issue 2 years ago • 2 comments

The Bellman Ford's Algorithm finds the single source shortest path without a negative cycle but if there is negative weight cycle how can we detect it?

AmitMandhana avatar Dec 03 '23 12:12 AmitMandhana

Bellman Ford algorithm normally does n - 1 iterations. But if there is negative weight cycle, then it should relax even on the nth iteration.

berkay-top avatar Aug 07 '24 15:08 berkay-top

please assign this issue

suvendukungfu avatar Oct 23 '25 14:10 suvendukungfu