Re: Shortest path with intermediate nodes algorithm
- From: acamposr@xxxxxxxxx
- Date: 28 Aug 2006 04:30:50 -0700
Well, Dijkstra's algorithm gives you back a shortest path tree. So, you
only need to run it once per intermediate node.
But... to run a TSP algorithm I'd need to get the shortest path from
each node to all the other ones so I get a full graph.
And if I run and all-pairs shortest path algorithm, I will get the
shortest path from each node from all the other ones in the graph (not
only the intermediate nodes)... so I could run taht algorithm only once
and store that distances: Distance[V,W] for all pair of vertices V,W.
But do you really recommend me that in a road map with thousands of
vertices?
Please, don't hesitate to tell me if I am saying something stupid and
thank-you very much for your answers.
.
- Follow-Ups:
- Re: Shortest path with intermediate nodes algorithm
- From: Patricia Shanahan
- Re: Shortest path with intermediate nodes algorithm
- References:
- Shortest path with intermediate nodes algorithm
- From: acamposr
- Re: Shortest path with intermediate nodes algorithm
- From: A . L .
- Re: Shortest path with intermediate nodes algorithm
- From: Patricia Shanahan
- Re: Shortest path with intermediate nodes algorithm
- From: acamposr
- Re: Shortest path with intermediate nodes algorithm
- From: Patricia Shanahan
- Re: Shortest path with intermediate nodes algorithm
- From: acamposr
- Re: Shortest path with intermediate nodes algorithm
- From: Luis Quesada
- Shortest path with intermediate nodes algorithm
- Prev by Date: Re: A graph theory terminology challenge
- Next by Date: Re: Shortest path with intermediate nodes algorithm
- Previous by thread: Re: Shortest path with intermediate nodes algorithm
- Next by thread: Re: Shortest path with intermediate nodes algorithm
- Index(es):
Relevant Pages
|