Representing a Maze
Assume Maze is represented by a 2D binary array.
1 1 1 1 1 1 1 1
1 0 0 0 0 0 0 1
1 0 1 1 0 1 0 1
1 0 1 1 1 1 0 1
1 0 1 0 0 0 0 1
1 0 1 0 1 1 1 1
1 0 1 0 0 0 0 1
1 1 1 1 1 1 1 1
0 = start 0 = goal
Previous slide
Next slide
Back to first slide
View graphic version