Assignment-6 (20 October 2015)

Understanding Backtracking strategy

Represent a maze M by a boolean m X n array. Starting from a start point, one can move to adjacent points in the same row or the same column. If M[i,j] is true then you can pass through (i,j); if M[i,j] is false, you cannot pass through the cell. Implement a backtracking algorithm that finds a path, if one exists, from (0,0) to (m-1,n-1).

Test Data Set