All directions
A mazing problem. How to solve the maze problem?
Using the information provided in the text, write a complete
program to search a maze. Print out the entrance to exit path if
successful.
short maze[MAX_ROW][MAX_COL] = {
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
{1,START_POINT,1,0,0,0,1,1,0,0,0,1,1,1,1,1,1},
{1,1,0,0,0,1,1,0,1,1,1,0,0,1,1,1,1},
{1,0,1,1,0,0,0,0,1,1,1,1,0,0,1,1,1},
{1,1,1,0,1,1,1,1,0,1,1,0,1,1,0,0,1},
{1,1,1,0,1,0,0,1,0,1,1,1,1,1,1,1,1},
{1,0,0,1,1,0,1,1,1,0,1,0,0,1,0,1,1},
{1,0,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1},
{1,0,0,1,1,0,1,1,0,1,1,1,1,1,0,1,1},
{1,1,1,0,0,0,1,1,0,1,1,0,0,0,0,0,1},
{1,0,0,1,1,1,1,1,0,0,0,1,1,1,1,0,1},
{1,0,1,0,0,1,1,1,1,1,0,1,1,1,1,END_POINT,1},
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}
} ;
All directions A mazing problem. How to solve the maze problem? Using the information provided in the text, write a comp
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
All directions A mazing problem. How to solve the maze problem? Using the information provided in the text, write a comp
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!