节点文献
八方向走迷宫算法
A Maze-running Algorithm with Eight Directions
【摘要】 给出了一个在具有稀疏障碍的迷宫中寻找给定两个单元之间的最短路径的走迷宫 算法,算法以“不改变方向”为预测条件,沿直线方向扩展。路径的扩展方向为8个,以水 平和竖直方向及二者相结合得出路径的扩展方向,缩减了传统的最短路径的长度和搜索范围 ,是一个高效的算法。
【Abstract】 This article presents a maze-running algorithm, which is used to fin d a shortest path between two given points in a grid with sparse polygon obstacl es. The algorithm executes the search using a "don’t change direction" heuristic along the line towards the target point. The path has eight extending direction s, which is decided by the horizontal, the vertical and the combined directions. According to the result of many contrastive on-the-fly experiments, the algorit hm reduces the length of traditional shortest path and the size of searching reg ion. It is an efficient algorithm.
【Key words】 The shortest path; Sparse obstacle; Minimum detour; Grid graph;
- 【文献出处】 计算机工程 ,Computer Engineering , 编辑部邮箱 ,2004年01期
- 【分类号】TP301.6
- 【被引频次】19
- 【下载频次】653