What is the most efficient way of finding a path through a small world graph?

前端 未结 7 1225
隐瞒了意图╮
隐瞒了意图╮ 2020-12-25 08:47

I have a sea of weighted nodes with edges linking clusters of nodes together. This graph follows the typical small world layout.

I wish to find a path finding algori

7条回答
  •  眼角桃花
    2020-12-25 09:09

    The most commonly used algorithm for this problem is A* (A Star), which is a generalized Dijkstra's algorithm search with added heuristics - the purpose of the heuristics is to direct the search towards the search goal so that typical searches finish faster.

    This algorithm has many variants, derived versions and improvements, Google search or the Wikipedia page should be a good starting point.

提交回复
热议问题