官术网_书友最值得收藏!

IDA* Pathfinding

IDA* star stands for iterative deepening A*. It is a depth-first permutation of A* with a lower overall memory cost, but is generally considered costlier in terms of time. Whereas A* keeps multiple nodes in memory at a time, IDA* does not since it is a depth-first search. For this reason, IDA* may visit the same node multiple times, leading to a higher time cost. Either solution will give you the shortest path between two nodes.

In instances where the graph is too big for A* in terms of memory, IDA* is preferable, but it is generally accepted that A* is good enough for most use cases in games. That said, we'll explore both solutions in Chapter 4, Finding Your Way, so you can arrive at your own conclusion and pick the right pathfinding algorithm for your game.

主站蜘蛛池模板: 特克斯县| 镇赉县| 崇仁县| 龙州县| 文登市| 贵阳市| 博爱县| 灵寿县| 洪湖市| 渭源县| 常德市| 子洲县| 镇江市| 尉犁县| 建宁县| 南充市| 鄂托克前旗| 合作市| 朔州市| 沈丘县| 富裕县| 江阴市| 伊川县| 乐业县| 留坝县| 佛学| 卢龙县| 嘉定区| 封丘县| 南靖县| 汾阳市| 靖江市| 平谷区| 东兰县| 普陀区| 海盐县| 金塔县| 沐川县| 金坛市| 察隅县| 仲巴县|