A* Algorithm for very large graphs, any thoughts on caching shortcuts?

前端 未结 9 1437
鱼传尺愫
鱼传尺愫 2021-01-30 12:37

I\'m writing a courier/logistics simulation on OpenStreetMap maps and have realised that the basic A* algorithm as pictured below is not going to be fast enough for large maps (

9条回答
  •  自闭症患者
    2021-01-30 12:49

    Old question, but yet:

    Try to use different heaps that "binary heap". 'Best asymptotic complexity heap' is definetly Fibonacci Heap and it's wiki page got a nice overview:

    https://en.wikipedia.org/wiki/Fibonacci_heap#Summary_of_running_times

    Note that binary heap has simpler code and it's implemented over array and traversal of array is predictable, so modern CPU executes binary heap operations much faster.

    However, given dataset big enough, other heaps will win over binary heap, because of their complexities...

    This question seems like dataset big enough.

提交回复
热议问题