首页> 外文会议>International Conference on Electrical Engineering and Computer Science >Comparison of A? and Iterative Deepening A? algorithms for non-player character in Role Playing Game
【24h】

Comparison of A? and Iterative Deepening A? algorithms for non-player character in Role Playing Game

机译:比较a?和迭代深化a?角色在角色播放游戏中的非玩家角色的算法

获取原文

摘要

Role Playing Game (RPG) needs realistic Artificial Intelligence, pathfinding is one of the requirements to achieve it. One of the popular algorithm for pathfinding is A*, but A* still has problem about its memory usage. Iterative Deepening A* (IDA*) is an algorithm like A* that uses Depth First Search to prevent the large memory usage. This research develops a game that implements pathfinding method to enemy character using A* and IDA* algorithms to compare their memory and time usages for pathfinding. Heuristic function that used is Manhattan Distance. This research uses 3 different types of map (without obstacle, simple obstacle, and complex obstacle) with 3 different samples in each type of map as tool for comparing the memory and time usage by A* and IDA*. The conclusion of this research are memory and time usage for A* and IDA* is affected by the size of map (node quantity), position of the obstacles on map, and the obstacle quantity. Then, IDA* Algorithm is generally better than A* in case of memory and time usage especially if the map doesn't have any obstacle, but IDA* can be worse if the enemy character and player are at the parallel position that covered by obstacle.
机译:角色扮演游戏(RPG)需要现实的人工智能,Pathfinding是实现它的要求之一。 Pathfinding的流行算法之一是*,但是A *仍然存在关于其内存使用情况的问题。迭代深化A *(IDA *)是一种算法,如a *,它使用深度首先搜索来防止大的内存使用情况。这项研究开发了一个游戏,将路径突出方法使用*和IDA *算法实现敌人字符,以比较他们的内存和时间用法来进行路径限写。使用的启发式功能是曼哈顿距离。该研究使用3种不同类型的地图(没有障碍物,简单的障碍物和复杂的障碍物),每种类型的地图中的3种不同的样品作为用于比较A *和IDA *的存储器和时间使用的工具。该研究的结论是* *和IDA *的记忆和时间使用受到地图(节点数量)的大小,地图上障碍物的位置和障碍物的影响。然后,在内存和时间使用情况下,IDA *算法通常比a *更好,特别是如果地图没有任何障碍物,但如果敌人字符和播放器处于障碍物覆盖的并行位置,则IDA *可能更糟糕。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号