random
timeit
- In this project, the concept of backtracking is used.
- The project is done in python.
- User has to provide the size of the matrix that is the
number of rowsandnumber of columns. - The matrix will be generated automatically using the
randomlibrary of python. - The matrix will only contain values
1and0in it. - There is a condition that we can move to the neighboring cell only if that cell has value
1in it. - If there is
0in the neighboring cell, it means that we cannot pass through that cell and, we have to take another route. - Here, another route means any neighboring cell which has value
1. - Following this algorithm, we have to calculate the number of all possible paths from the first cell to the last column.
- To find the efficiency of the program, we have used another library called
timeit. - We have to find all possible paths from the first cell
array[0][0]to the last column of the matrixarray[x][n]. - Also, we have to print some of the sample paths.
- Install Python
- Check python version
python --version

