Re: Bus/train timetable search algorithm



If you add dummy edges at the intermediate stages with weights of the
expected layovers, Dijkstra's algorithm should work.
For example, one could route from New Orleans to Minneapolis
vi Chicago as (with guessed-at times):

New Orleans --- 12 hrs --- Chi1 -- 4 hrs -- Chi2 -- 4 hrs -- Minn

Chi1 and Ch2 are two nodes representing Union Station arrival and
departure respectively.

john slimick
slimick@xxxxxxxx

======================================================================

On 2008-11-06, adamwatson@xxxxxxxxxxxxx <adamwatson@xxxxxxxxxxxxx> wrote:
Does anyone know of public transport routing algorithms that use a
timetable and include changing between services?

A breadth first search is easy to implement for small datasets and a
limited number of interchanges, but rapidly becomes unmanageable.

Something like Dijkstra's algorithm isn't obviously applicable because
the quickest route does not necessarily comprise of the quickest
intermediate stages.

I'm left with a depth first exhaustive search, but I feel there must
be a better way.
.



Relevant Pages

  • Re: Routing algorithm question
    ... > I assume it is some sort of least-cost routing algorithm, ... The entire USA roads are divided into classifications and each ... divide the route into 3 pieces. ...
    (sci.geo.satellite-nav)
  • Re: Garmin GPSmap 76C Review
    ... > routing algorithm. ... >>106 km route). ... > residential streets, while Bicycle does not. ...
    (sci.geo.satellite-nav)
  • Re: Garmin GPSmap 76C Review
    ... >task to determine the best route under all conditions and get an answer ... When I write "correct algorithm", then that only means that the ... mathematics and that the algorithms do not pose any extreme ... calculation time increases far more than proportional. ...
    (sci.geo.satellite-nav)
  • Routing algorithm question
    ... routing programs use? ... I assume it is some sort of least-cost routing algorithm, ... How do they pick the quickest route? ... What I am talking about is some routes may be quicker in theory, ...
    (sci.geo.satellite-nav)
  • Re: Lincoln, satnav and consternation
    ... The Vodafone satnav on my Blackberry is somewhere between the two. ... A lot depends on telling it the kind of route you want to take. ... would have taken us an hour longer than the quickest route. ... Blackberry satnav are very out of date, whereas Google Maps seems to ...
    (uk.people.silversurfers)

Loading