Shortest path with intermediate nodes algorithm



Hello. I am looking for a shortest path algorithm with the restriction
of passing through several intermediate nodes.

That is:

INPUT: First Node A, Destination Node B, and a list of intermediate
nodes N1,N2...Nk.
OUTPUT: heuristic aproximation of the shortest path which goes through
A,N1,N2...Nk,B.

What I really am looking for is an algorithm to plan routes in a road
map with several stops.

Thanks in advance!

.



Relevant Pages

  • Re: A question about Dijkstras algorithm
    ... >Given a directed acyclic graph with all edges have negative weights. ... >Can we modify dijkstra's shortest path algorithm to find the shortest ...
    (comp.theory)
  • Re: A question about Dijkstras algorithm
    ... > Can we modify dijkstra's shortest path algorithm to find the shortest ... > path in a direct acyclic graph with all edges have positive weights? ... In fact, findind the longest path in a graph is an NP-Complete problem, ...
    (comp.theory)
  • Re: Whats up with Oblivion? [Spoilers alert]
    ... used the shortest path algorithm without any mods. ... That's nuts. ... A basic technique for searching nodes is to use recursion. ...
    (comp.sys.ibm.pc.games.rpg)
  • Re: Whats up with Oblivion? [Spoilers alert]
    ... used the shortest path algorithm without any mods. ... That's nuts. ... I agree with your specific criticism that characters waltzing ...
    (comp.sys.ibm.pc.games.rpg)
  • Re: Whats up with Oblivion? [Spoilers alert]
    ... used the shortest path algorithm without any mods. ... That's nuts. ... Remember that the game is segmented into cells, ...
    (comp.sys.ibm.pc.games.rpg)