Page 1 of 1

Muliple shortest Path Problem

Posted: Sat Jul 26, 2003 7:35 am
by shaikat
hello everyone,

I have a problem with multiple shortest path. If there are multiple shortest path exists (form one source not all pair of shortest path) then is it possible to find out multiple shortest path using Disktra or UCS algo? If possible then how. plz explain. if not then with which algo it is polssible. :)

-shaikat.

Posted: Sun Jul 27, 2003 6:03 pm
by makbet
This can be done using dijkstra.
When you relax an edge u->v and d[v]== d[u]+ d[u->v] then you add u to a list of 'fathers' of v. When d[v]> d[u]+ d[u->v] then you do the same, but first you clean the list. Now having such lists in all vertices, you can easily build multiple paths between 2 given ones using a dfs. You have to remember though, that the amount of such paths might be exponential

Thanks to Makbet

Posted: Wed Jul 30, 2003 10:53 am
by shaikat
Dear makbet,

thank u for ur reply. Ur reply is very useful to me and i have got the right track. so, aging Thanks to u.

-shaikat.

Re: hello cow

Posted: Wed Jul 30, 2003 10:59 am
by kamrul
:lol:
shaikat wrote:all are cows

Hacking!!!

Posted: Wed Jul 30, 2003 11:44 am
by shaikat
dear all visitors,

My account was hacked for 30 minutes today.
I am extreamly sorry :( for that Quote.
thanks all.

-shaikat.