期刊文献+

利用跳点搜索算法加速A*寻路 被引量:15

Speed-up of A* pathfinding with jump point search algorithm
下载PDF
导出
摘要 介绍广泛应用于游戏寻路中的标准A*算法,指出跳点搜索(JPS)算法使A*生成并扩展的节点数量很少,而且到达目标的速度很快.因为跳点搜索能够消除路径间的对称性,通过在直线和对角线方向上修剪节点来识别后继,在搜索时跳过了大量可能会添加到open列表和closed列表中的中间节点以及其他计算,这使搜索速度有了很大提升.在5个基准网格地图上测试A*+JPS对A*的相对加速比,实验结果表明:跳点搜索可将标准A*搜索的速度提高一个数量级甚至更多,并且速度收益的程度取决于基础网格地图的地貌,对于大的开放区域,跳点搜索更加高效.另外,跳点搜索对A*在节点扩展数量上的改进甚至比搜索时间的改进更加显著.无论从搜索时间还是从节点扩展数量上,A*+JPS都明显优于A*,利用跳点搜索算法可显著加速A*寻路. Standard A^* algorithm widely employed in game pathfinding is presented and it is pointed out that jump point search(JPS)algorithm will make the quantity of nodes very small for both A^*generation and expansion and also make the speed very high to reach the goal.Because the jump point search can eliminate symmetry of paths and identify their successors by pruning nodes straight and diagonally,therefore a bunch of nodes,which would be added to the open list and closed list,will be jumped over and a lot of calculations can be avoided,so that the searching speed will be improved greatly.By measuring the relative speedup ratio of A^*+JPS to A^*on five benchmark grid maps,it is shown by this experimental results that jump point search can improve the search time performance of A^*by an order of magnitude or more,and the magnitude of the speed gains will be dependent on the topography of the benchmark grid map,and for large open areas,jump point search will be highly effective.Moreover,jump point search can make the improvement on the total expanded number of nodes even more noticeable than the improvement on the search time.As concerning whether the search time or the number of expanded nodes,A^*+JPS is superior to A^*obviously,and the A^*pathfinding can be speeded up more noticeably with the jump point search algorithm.
作者 邱磊
出处 《兰州理工大学学报》 CAS 北大核心 2015年第3期102-107,共6页 Journal of Lanzhou University of Technology
基金 湖北省自然科学基金(2012FFB4102) 湖北省教育厅科学技术研究计划指导性项目(B2014202)
关键词 A^*寻路 跳点搜索 网格 游戏 A* pathfinding jump point search grid game
  • 相关文献

参考文献8

  • 1PATEL A. Variants of A* [EB/OL]. (2013-07-18)[2013-11- 01]. http..//theory, stanford, edu/- amitp/GamePmgram- mng/Variations, html.
  • 2PODHRASKI T. How to speed up A" pathfinding with the jump point search algorithm [EB/OL]. (2013-03-12) [2013- 11-01]. http://gamedev, tutsplus, com/tutorials/implementa- tion/speed-up-a-star-pathflnding-with-t he-j ump-point-search- algorithm.
  • 3邱磊.基于在线图修剪的网格地图寻路[J].贵州大学学报(自然科学版),2014,31(1):84-87. 被引量:2
  • 4WITMER N. Jump point search explained [EB/OL]. (2013- 05-05) [2013-11-01]. http://zerowidth, com/2013/05/05/ jump-point-search-explained, html.
  • 5邱磊.基于打破对称性的快速寻路算法[J].宁夏大学学报(自然科学版),2014,35(3):216-220. 被引量:3
  • 6XU X. Pathfinding visual [EB/OL]. [ 2013-11-01]. http:// qiao. github, io/PathFinding, is/visual.
  • 7HARABOR D, GRASTIEN A. Online graph pruning for path- finding on grid" maps [C]//Proceedings of the 25th National Conference on Artificial Intelligence (AAAI). San Franciseo: Cs. n. 3,2011.
  • 8HARABOR D, GRASTIEN A. The JPS pathfinding system [C]//Proeeedings of the 5th Symposium on Combinatorial Search (SoCS). Niagara Falls: [s. n. ], 2012.

二级参考文献23

  • 1Pochter N, Zohar A, Rosenschein J S, et al. Search space reduc- tion using swamp hierarchies [ C ] //Proceedings of the Twenty- Fourth AAAI Conference on Artificial lntelligenee, Atlanta, Geor- gia : AAAI Press,2010 : 155 - 160.
  • 2Botea A, Mailer M, Schaeffer J. Near optimal hierarchical path- finding[ J]. Journal of Game Development, 2004,1 ( 1 ) :7 - 28.
  • 3Harabor D, Grastien A. Online Graph Pruning for Pathfinding on Grid Maps [ C ] //Proceedings of the Twenty-Filth AAAI Conference on Artificial Intelligence. San Francisco, California, USA: AAAI Press,2011 : 1114 - 1119.
  • 4Harabor D, Grastien A. The JPS Pathfinding System [ C ] //Pro- ceedings of the Fifth Annual Symposium on Combinatorial Search. Niagara Falls, Ontario, Canada: AAA1 Press,2012:207 - 208.
  • 5Podhraski T. How to Speed Up A * Pathfinding With the Jump Point Search Algorithm [ EB/OL J. ( 2013 - 03 - ! 2 ) [ 2013 - 09 - 22 ]. http://gamedev, tutsplus, corn/tutorials/implementation/ speed-up-a-star-pathfinding-with-the-jump-point-search-algorithm.
  • 6Witmer N. Jump Point Search Explained[ EB/OL]. (2013 -05 - 05 ) [ 2013 - 09 - 22 J. http ://zeruwidth. com/2013/05/05/jump- point-search-explained, html.
  • 7Xu X. Pathfinding Visual [ EB/OL ]. [ 2013 - 09 - 22 ~. http :// qiao. github, io/PathFinding, js/visual.
  • 8Tanner B. Jump Point Search Analysis[ EB/OL~. [2013 -09 - 22]. http://www, cs. fsu. edu/- cop4601p/projeet/stndents/bry- an-tanner/JumpPointSearch_tanner, pdf.
  • 9BOTEA A, MULLER M, SCHAEFFER J. Near op- timal hierarchical path-finding[J]. Journal of Game Development, 2004,1 (1) : 7-28.
  • 10BJORNSSON Y, HALLDARSSON K. Improved heu- ristics for optimal path-finding on game maps[C]// Proceedings of the Second Artificial Intelligence and Interactive Digital Entertainment Conference. Marina del Rey, California, USA: The AAAI Press, 2006:9-14.

共引文献3

同被引文献139

引证文献15

二级引证文献143

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部