Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

For those who are good with Djikstra or graph problems

TremereTremere Posts: 8Member
I have an assignment dealing with a graph problem that contains counties delivering surplus electricity to other counties that have a negative surplus. To add to that, my program has to run within a certain time and also the total transfers between the counties must be at a minimum. My question for now is: after I find a county with excess and a county with a deficit, what algorithm is there to find a the shortest path from start to end? I currently know of Djikstra's only, but that only finds the short path from a vertex to ALL other vertices. What I need is from one to another. Any ideas would be great! Thanks.

Oh yeah, if you do know of a way to solve the problem, it'd be great if you could explain as much as possible, since this program is also under a time constraint and due in a few days. I need all the time and help I can get.
Sign In or Register to comment.