9.46 Section 8.7 described the generating of mazes. Suppose we want to output the path in the maze. Assume that the maze is represented as a matrix; each cell in the matrix stores information about what walls are present (or absent). a. Write a program that computes enough information to output a path in the maze. Give output in the form SEN... (representing go south, then east, then north, etc.). b. Write a program that draws the maze and, at the press of a button, draws the path. - ![]() Solution clue: This is a single source unweighted shortest path problem. | |
| View Solution | |
| << Back | Next >> |