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

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.

主站蜘蛛池模板: 秦皇岛市| 枣庄市| 昔阳县| 高州市| 班玛县| 彰化县| 孙吴县| 泗阳县| 盱眙县| 铁岭县| 临城县| 河北区| 古浪县| 都昌县| 巴林右旗| 油尖旺区| 个旧市| 孟州市| 怀安县| 清镇市| 承德市| 吴川市| 石景山区| 宜昌市| 绥德县| 响水县| 揭东县| 庄浪县| 蛟河市| 武清区| 绥中县| 芦溪县| 彭泽县| 泰宁县| 湖口县| 兴化市| 沈阳市| 临安市| 克东县| 来安县| 兰考县|