by sitkack · 3y ago · 0 comments
I think @DropPanda gave a great example of regenerative charging in an EV.
In the video the author does use cost/price-function terminology.
Djikstra doesn't handle negative weights, Bellman-Ford is optimal for positive edge only. This apparently is also easier to parallelize.
The Quanta article mentioned below is excellent https://www.quantamagazine.org/finally-a-fast-algorithm-for-...
???
CLRS says it takes negative weight edges (just no negative cycles) and does it in O(VE). I have no idea where you're getting this from
What do you mean “optimal”? The Bellman-Ford algorithm gives you the shortest path, period.