Content deleted Content added
→Shortest path algorithm: Rm period from caption |
→Wall follower: Period before ref. |
||
Line 12:
The wall follower, the best-known rule for traversing mazes, is also known as either the ''left-hand rule'' or the ''right-hand rule''. If the maze is [[Simply connected space|''simply connected'']], that is, all its walls are connected together or to the maze's outer boundary, then by keeping one hand in contact with one wall of the maze the player is guaranteed not to get lost and will reach a different exit if there is one; otherwise, he or she will return to the entrance.
Another perspective into why wall following works is topological. If the walls are connected, then they may be deformed into a loop or circle.<ref>http://www.youtube.com/watch?v=IIBwiGrUgzc</ref>
If the maze is not simply connected (i.e. if the start or endpoints are in the center of the structure or the pathways cross over and under each other), this method will not be guaranteed to help the goal to be reached.
|