![]() |
The wall following algorithm The wall following algorithm is the simplest of the maze solving techniques. Basically, the mouse follows either the left or the right wall as a guide around the maze. The instructions for following the right wall would look like this:
Although there are wall following competitions for the younger students, this algorithm does not work in the IEEE maze solving competitions because those mazes are specifically designed to not be solved in this way. Take a look at the following maze:
You can see that if the mouse follows the left or right walls, it would only explore the perimeter of the maze without ever venturing into the middle section.
Summary: Don't use this algorithm. |