On Wed, Oct 3, 2012 at 12:20 AM, Yuval Perlov <
yuval...@gmail.com> wrote:
> Seems the idea is to traverse all possible paths... what if there are a lot
> of paths? Dijkstra allows to find the best route but not the second third
> etc but all might be too complex.
Finding the shortest path involves looking at a lot of paths - think
about it, if you didn't, the shortest might be one of the ones you
didn't look at. It is the nature of the problem :)
Dijkstra in particular will find shortest paths to all reachable nodes
using some fixed starting point. Did you need multiple paths between
two fixed points instead? Then Dijkstra is not your friend.
- Lasse