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

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.

主站蜘蛛池模板: 汤阴县| 故城县| 湘乡市| 怀仁县| 东乡| 阳朔县| 镶黄旗| 南木林县| 永寿县| 阳信县| 买车| 双牌县| 平和县| 禄劝| 杭州市| 泌阳县| 西峡县| 阿克苏市| 湖州市| 瑞安市| 屯昌县| 灌云县| 临武县| 砚山县| 洛浦县| 收藏| 沙河市| 扶风县| 凯里市| 璧山县| 红原县| 容城县| 玉门市| 革吉县| 内江市| 巫山县| 洪泽县| 托里县| 屯门区| 大悟县| 长宁区|