RACSODFACFGOperations: Reg, CFPDAReductions: K, WP, CFG, NP, SATANTLR: lexical, syntacticExams  log in, register, become guest 
M: array of array of int S: array of intThe input contains the board as a matrix $M$ with $n$ rows and $n$ columns of $0$’s and $1$’s, and the sequence as an array $S$ with $n^2$ $0$’s and $1$’s. The topleft cell is the cell $(0,0)$.
path: array of array of intThe output contains the details of the path. It is a twodimensional matrix that must have size $n\times n$, with the position $(i,j)$ indicating the index in the path of the cell $(i,j)$, i.e., a value between $0$ and $n^21$. Thus, the position $(0,0)$ of path must always contain a $0$, since the path starts at the cell $(0,0)$.
