next up previous contents
Next: The GenerateObstacleArray() Method: Up: Adding Graphics Capability to Previous: The New Graph Path

Generating Obstacle Arrays:

It is interesting to apply our ideas to finding optimal paths through rectangular obstacle arrays. We add a GenerateObstacleArray() and ReadObstacleArray() method to the DP class as follows:



 

Jim Peterson
1999-04-13