]> git.tdb.fi Git - r2c2.git/commit
Add a distance metric to turn the routing into an A* search
authorMikko Rasa <tdb@tdb.fi>
Sun, 30 Mar 2014 17:22:31 +0000 (20:22 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 30 Mar 2014 17:22:31 +0000 (20:22 +0300)
commitd578d036656c0e89fe9dca5aefd1f81d2777a69e
treed97ad3c3c5507f7172a44d353f90ae959bd02cf9
parentb42a312323d36775ab550630b3ee818c3b948bf6
Add a distance metric to turn the routing into an A* search

The original straightforward implementation exploded in complexity much
sooner than I expected.  The reasons are not entirely clear, but the
inability to converge states and drop those where the same position was
already reached through a faster path may have something to do with it.
source/libr2c2/trainroutemetric.cpp [new file with mode: 0644]
source/libr2c2/trainroutemetric.h [new file with mode: 0644]
source/libr2c2/trainrouteplanner.cpp
source/libr2c2/trainrouteplanner.h
source/libr2c2/trainrouter.cpp
source/libr2c2/trainrouter.h