作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2012, Vol. 38 ›› Issue (2): 288-289. doi: 10.3969/j.issn.1000-3428.2012.02.097

• 开发研究与设计技术 • 上一篇    下一篇

游戏地图中的分层动态路径搜索算法

李 艳,陈 彩,李铁松,苏兰明   

  1. (河北大学数学与计算机学院机器学习与计算智能重点实验室,河北 保定 071002)
  • 收稿日期:2011-07-21 出版日期:2012-01-20 发布日期:2012-01-20
  • 作者简介:李 艳(1976-),女,副教授、博士,主研方向:游戏智能,机器学习,粗糙集理论;陈 彩、李铁松、苏兰明,硕士研究生
  • 基金资助:
    国家自然科学基金资助项目(60903088);河北省自然科学基金资助项目(F2009000227, A2010000188);河北省第二批百名优秀人才支持计划基金资助项目(CPRC002)

Hierarchical Dynamic Path Finding Algorithm in Game Maps

LI Yan, CHEN Cai, LI Tie-song, SU Lan-ming   

  1. (Key Lab of Machine Learning and Computational Intelligence, College of Mathematics and Computer Science, Hebei University, Baoding 071002, China)
  • Received:2011-07-21 Online:2012-01-20 Published:2012-01-20

摘要: 在大型游戏地图环境中,玩家必须对动态地形做出即时反应,而动态寻路算法对改变节点的位置非常敏感。为此,结合增量路径搜索(LPA*)算法和分层路径搜索(HPA*)算法,提出一种分层动态路径搜索(HPLPA*)算法。对地图分层形成抽象图,并在动态环境中及时更新,采用LPA*搜索,找到抽象路径再细化,以此形成本地路径。实验结果证明,与LPA*和HPA*相比,该算法更有效。

关键词: 路径搜索, 分层动态地形, HPLPA*算法, 重规划

Abstract: Game agents must respond quickly to the changes of dynamical topography in large environments. The efficiency of Lifelong Planning A*(LPA*) algorithm is sensitive to the location of the updated nodes. This paper proposes a Hierarchical Path Finding and Lifelong Planning A*(HPLPA*) algorithm, where LPA* is combined with HPA* algorithm. Based on HPA*, an abstract graph is generated and updated in time. LPA* is used on the abstract graph to generate an abstract path. The abstract path is refined to a local path. Experimental results are conducted to compare LPA*, HPA* and HPLPA*, which show that HPLPA* is more effective.

Key words: path finding, hierarchical dynamic topography, Hierarchical Path Finding and Lifelong Planning A*(HPLPA*) algorithm, replanning

中图分类号: