HF RL Explorer

construct/rlve grid parity construction

construct/rlve grid parity construction: a task in MathConstructOptimize-Envs-harbor (Harbor dataset). Construct an 18 x 18 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 18 x 18 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).

Part of amphora/MathConstructOptimize-Envs-harbor.