News for hackers. Stuff that matters.
Re:Historic Algorithms Help Unlock Shortest-Path Problem Bre... by heavenlyblue on Saturday August 26, 2023 @05:14PM (#37276967)
> 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)

Re:Historic Algorithms Help Unlock Shortest-Path Problem Bre... by klyrs on Saturday August 26, 2023 @05:21PM (#37277028)
I use regenerative braking as a driving application -- you gain energy by going downhill. A negative cycle would look like an Escher drawing.