[EN] Exhaustive deterministic backtracking algorithm for solving any maze which will be a nxn matrix (For this example I have used the maze from below but it could be easily modified at main). I have used the marking technique -it make sense in this kind of problem. I have assumed that the starting point is (0,0) but this can be easily modified with solution[0] at main.
[SP] Algoritmo determinista exhaustivo de backtracking para resolver cualquier laberinto representado con una matriz nxn (he usado para este ejemplo el laberinto de abajo pero esto es fácilmente modificable en el main) He usado técnica de marqueo -tendría sentido para este tipo de problemas. He asumido que el punto de inicio es (0,0) pero esto podría ser fácilmente modificado en solution[0] en el main.
Laberinto del Ejemplo: