Re: Shortest path with intermediate nodes algorithm
- From: Patricia Shanahan <pats@xxxxxxx>
- Date: Sat, 26 Aug 2006 02:09:42 GMT
acamposr@xxxxxxxxx wrote:
All of them or some of them?...And if more than one of them, is the order fixed?
A.L.
All of them in any order (the shortest order).
In that case, isn't it equivalent to traveling salesman?
First calculate the shortest paths between each pair of mentioned nodes,
using e.g. an all-pairs shortest paths algorithm.
Construct a new graph that just contains A, B, N1, N2, ..., with edges
connecting all vertices, (X,Y) edge weight equal to the cost of the
shortest path from X to Y in the original graph.
Then use any traveling salesman heuristic to solve the new problem.
Patricia
.
- Follow-Ups:
- Re: Shortest path with intermediate nodes algorithm
- From: acamposr
- 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
- Shortest path with intermediate nodes algorithm
- Prev by Date: Re: Shortest path with intermediate nodes algorithm
- Next by Date: Re: basic query regarding NP Complete...
- Previous by thread: Re: Shortest path with intermediate nodes algorithm
- Next by thread: Re: Shortest path with intermediate nodes algorithm
- Index(es):