2 ms·
> The issue with negative weighted edges is that a cycle would result in an infinite loop when finding shortest path No it "could" result in an infinite loop.
by heavenlyblue 3y ago
> The issue with negative weighted edges is that a cycle would result in an infinite loop when finding shortest path
No it "could" result in an infinite loop. For driving situations negative weights would probably never yield infinite cycles due to negative weight. For that to happen some laws of physics would need to change drastically (i.e. a longer path yielding lower energy usage the longer it gets is nonsensical in any sense that is sensical in the physical world)
- klyrs 3y agoI use regenerative braking as a driving application -- you gain energy by going downhill. A negative cycle would look like an Escher drawing.