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.
<br><br>-B<br><br><div class="gmail_quote">On Nov 20, 2007 8:24 AM, Robert (Jamie) Munro <<a href="mailto:rjmunro@arjam.net">rjmunro@arjam.net</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br>Is there a reason you can't route by doing 2 A-stars simultaneously, one<br>from the start and one from the destination, and stop when the 2 meet?<br><br>AFAICS, this is likely to be quicker than a normal A-star because the
<br>recursion will be less broad. I'm not 100% sure though.<br><br>Robert (Jamie) Munro<br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.4.6 (Darwin)<br>Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org" target="_blank">
http://enigmail.mozdev.org</a><br><br>iD8DBQFHQwpAz+aYVHdncI0RAvhqAJ9WQlNWFO47CTiOc61MgwgXrgoDuQCgn9+Y<br>1MLVeZXctjbxXefe+p1cp7k=<br>=BS9q<br>-----END PGP SIGNATURE-----<br><br>_______________________________________________
<br>Routing mailing list<br><a href="mailto:Routing@openstreetmap.org">Routing@openstreetmap.org</a><br><a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/routing" target="_blank">http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/routing
</a><br></blockquote></div><br>