[Routing] A-Star meet-in-the-middle
badhill at gmail.com
Tue Nov 20 18:30:23 GMT 2007
Yeah I think that'd work. A fairly common textbook optimization of the raw
Dijkstra algorithm, the "double-tree Dijkstra", does the same thing. I don't
think there's anything about A* that invalidates the basic approach of
growing a shortest path tree from both the origin and the destination and
stopping when they meet up. There is, however, no easy way to do this with
pgrouting. You'd have to hack it yourself.
On Nov 20, 2007 8:24 AM, Robert (Jamie) Munro <rjmunro at arjam.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Is there a reason you can't route by doing 2 A-stars simultaneously, one
> from the start and one from the destination, and stop when the 2 meet?
> AFAICS, this is likely to be quicker than a normal A-star because the
> recursion will be less broad. I'm not 100% sure though.
> Robert (Jamie) Munro
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> -----END PGP SIGNATURE-----
> Routing mailing list
> Routing at openstreetmap.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Routing