construct/rlve grid parity construction
construct/rlve grid parity construction: a task in MathConstructOptimize-Envs-harbor (Harbor dataset). Construct an 8 x 5 binary matrix G (entries 0/1) whose parity matrix equals P below. The parity of cell (i, j) is the XOR of G i j and its up/down/left/right neighbours inside the grid (cells…
The task
Construct an 8 x 5 binary matrix G (entries 0/1) whose parity matrix equals P below. The parity of cell (i, j) is the XOR of G[i][j] and its up/down/left/right neighbours inside the grid (cells outside the grid count as 0).