Mazes

The Wikipedia page on mazes tells you about some algorithms for solving them. The most useful ones for your robot are

The right hand rule is easy to implement. but will not explore all of some mazes.

Random searching will eventually search all of a maze, but can take a long time.

Depth first search will search all of a maze and do it efficiently, but presents hardware and software challenges:

DFS using recursion: depthfirst.c

DFS using a stack instead of recursion: depthfirst2.c

This page has many more maze algorithms that you might want to consider.

Mazes (last edited 2008-05-05 18:24:42 by TimLambert)