首页 | 本学科首页   官方微博 | 高级检索  
     

注水法求解迷宫最优路径
引用本文:张公敬,杨厚俊,刘征.注水法求解迷宫最优路径[J].计算机仿真,2007,24(8):171-173,208.
作者姓名:张公敬  杨厚俊  刘征
作者单位:青岛大学信息工程学院,山东,青岛,266071
基金项目:青岛大学校科研和教改项目
摘    要:根据灌溉系统的工作原理,提出注水法算法应用于求解迷宫最优路径问题.设定迷宫为一个灌溉系统,水从迷宫的入口注入,通过迷宫的通路水从迷宫的出口流出.从入口注入的水沿通路流向各个方向,在通路的各个位置记忆水流到达的时间.当迷宫出口有水流到达时,从出口到入口根据记录在通路上的时间逐步减小的原则逆向寻找入口就可找到迷宫的所有最优路径.该算法的空间复杂度和时间复杂度同迷宫的规模成线性关系.实验结果显示该算法是一种求解迷宫问题的有效算法.

关 键 词:注水法  迷宫问题  最优路径  注水法  求解  迷宫问题  最优路径  Maze  Paths  Optimal  Find  有效算法  显示  结果  实验  线性关系  规模  空间复杂度  逆向寻找  原则  记录  时间  位置记忆
文章编号:1006-9348(2007)08-0171-03
修稿时间:2006-09-112006-10-19

Using Watering Algorithm to Find the Optimal Paths of a Maze
ZHANG Gong-jing,YANG Hou-jun,LIU Zheng.Using Watering Algorithm to Find the Optimal Paths of a Maze[J].Computer Simulation,2007,24(8):171-173,208.
Authors:ZHANG Gong-jing  YANG Hou-jun  LIU Zheng
Affiliation:College of Information Engineering, Qingdao University, Qingdao, Shandong, 266071 ,China
Abstract:According to the principle of watering systems, a watering algorithm is proposed and applied to find the optimal paths of a maze in this paper. Assuming that a maze is a watering system, water fills the maze from the entrance and flows out from the outlet through passages of the maze. Water filled from the entrance spreads to each direction along the passages and the passing time of water is recorded at every spot in the maze. When water arrives at the outlet, all of the optimal paths will be found according to the recorded time based on the principle that the less time cost stems from the short path. The spatial complexity and the time complexity of the algorithm are linear with the size of a maze. The experimental results show that the watering algorithm is an efficient way to solve maze problems.
Keywords:Watering algorithm  Maze problem  Optimal path
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号