On large graphs like 2M node road network, dijkstra can not solve shortest path problem in suitable time. We need to shortest path query execution time under 1 second and I am implementing arc flag way to make dijkstra fast. Is there anybody know about how to implement arc flags preprocessing and query. Preprocessing of arc flags has some different algorithm I need fast one.
+1
A:
Have you tried A*? It's a refinement of Dijkstra's algorithm that typically performs better; moreover, you can tune it to prefer search speed over optimality if that is an option.
Rafe
2010-09-16 23:54:26
So A* could guarantee optimality? News to me :O
Marcus Johansson
2010-09-20 09:11:39
Sure, A* is just Dijkstra with best first. If you use an admissible heuristic optimality is guaranteed.
Rafe
2010-09-20 23:38:12