I am confused about the description of Problem 2 in Assignment 2. Does “n × m rectangular grid of cells” refer to a matrix with n rows and m columns? Then why does “the third quarter of the north doors at the top of the grid” seem to be on the right of the matrix?
I have drawn a figure based on my understanding. Please help me check if it is right.
Does $P_{i,j}$ refers to the entry at the i-th row intersecting the j-th column?
Also, there is another contradiction regarding the ordering of the cells. If we follow a bottom-up then left-right order and assume $P_{i,j}$ to be the i-th column and j-th row entry, then $P_{i,j}$ should be numbered as $(i-1)m + (n-j)$.