Re: shortest path algorithm
Re: shortest path algorithm
sory for late reply..
tq dglienna..i already take look at that link..
but now i encounter another problem regarding shortest path problem..
there are 4 category of shortest path problem.my prob is regarding single destination shortest path problem.
the single destination shortest path problem is equivalent to single source shortest problem.but all direction reversed.
can i still used dijkstra algorithm in solving this problem?
or is there any other algorithm which is more suitable that this one?
need some help..i'm really appreciate it..!
tq!
Re: shortest path algorithm
Quote:
Originally Posted by idyll09
...
the single destination shortest path problem is equivalent to single source shortest problem.but all direction reversed.
can i still used dijkstra algorithm in solving this problem?
or is there any other algorithm which is more suitable that this one?
Yes, as long as the weights of the edges in your graph are non-negative, Dijkstra will do just fine for the single-source shortest-path and/or the single-destination shortest-path problem.