Muliple shortest Path Problem

Let's talk about algorithms!

Moderator: Board moderators

Post Reply
shaikat
New poster
Posts: 8
Joined: Mon Jul 21, 2003 7:55 am

Muliple shortest Path Problem

Post 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.
makbet
New poster
Posts: 44
Joined: Tue Nov 26, 2002 11:01 pm
Location: Wejherowo

Post 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
shaikat
New poster
Posts: 8
Joined: Mon Jul 21, 2003 7:55 am

Thanks to Makbet

Post 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.
Last edited by shaikat on Wed Jul 30, 2003 11:32 am, edited 2 times in total.
kamrul
New poster
Posts: 9
Joined: Sat Aug 24, 2002 11:21 am
Location: Dhaka, Bangladesh

Re: hello cow

Post by kamrul »

:lol:
shaikat wrote:all are cows
shaikat
New poster
Posts: 8
Joined: Mon Jul 21, 2003 7:55 am

Hacking!!!

Post by shaikat »

dear all visitors,

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

-shaikat.
Post Reply

Return to “Algorithms”