在用这种算法解迷宫时,只需要把左手一直放在左边的墙上(或者把右手一直放在右边的墙上),然后沿着墙走,直到走出迷宫。
All you do to solve a maze using this algorithm is keep your left hand on the left wall (or your right hand on the right wall) and just follow it along until you exit the maze.
沿墙走是一种简单的解迷宫算法,您可能在小时候就学过了。
Wall-following is a simple maze algorithm you might have learned as a child.
在现有的几种解迷宫算法中,有两种常用算法使用固定数量的内存,而与迷宫的大小无关。
Of the several existing maze-solving algorithms, two commonly used ones consume a constant amount of memory regardless of the maze's size.
应用推荐