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

›› 2004, Vol. 30 ›› Issue (01): 94-.

• 论文 • 上一篇    下一篇

八方向走迷宫算法

孙巧榆,潘荫荣,胡幼华,孙强   

  1. 淮海工学院电子工程系,华东师范大学计算机科学技术系,华东师范大学计算机科学技术系,华东师范大学计算机科学技术系 连云港 222005,上 海 200062,上 海 200062,上 海 200062
  • 发布日期:2004-01-15

A Maze-running Algorithm with Eight Directions

SUN Qiaoyu1,PAN Yinrong2,HU Youhua2,SUN Qiang2   

  1. (1. Deptartment of Electronic Engineering, Huaihai Institute of Techno logy, Lianyungang 222005; 2. Deptartment of Computer Science and Technology, East China Normal Un iversity, Shanghai 200062)
  • Published:2004-01-15

摘要: 给出了一个在具有稀疏障碍的迷宫中寻找给定两个单元之间的最短路径的走迷宫 算法,算法以“不改变方向”为预测条件,沿直线方向扩展。路径的扩展方向为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.

中图分类号: