HF RL Explorer

construct/mc ortholatin

construct/mc ortholatin: a task in MathConstructOptimize-Envs-harbor (Harbor dataset). Construct a pair of orthogonal Latin squares of order 12: two 12x12 arrays X and Y with entries in 0..11 such that every row and every column of X is a permutation of 0..11, the same holds for Y, and the 144…

The task

Construct a pair of orthogonal Latin squares of order 12: two 12x12 arrays X and Y with entries in 0..11 such that every row and every column of X is a permutation of 0..11, the same holds for Y, and the 144 ordered pairs (X[i][j], Y[i][j]) are all distinct.

Part of amphora/MathConstructOptimize-Envs-harbor.