Archive for the 'Algorithm' Category

My friends had an algorithm project: Finding a way to get out of a maze.
Maze is a 10×10 matrix, and 1 is wall, 0 is a route.
How can a program find the exit?
1. Easy way.
Create a temporary matrix(called array in programming), and record where the program has been.
When it needs to come back to it’s [...]