HF RL Explorer

construct/mc all interval

construct/mc all interval: a task in MathConstructOptimize-Envs-harbor (Harbor dataset). An all-interval series of size 28 is a permutation x 0..27 of 0..27 such that the absolute differences d i = x i+1 - x i (i = 0..26) form a permutation of 1..27.

The task

An all-interval series of size 28 is a permutation x[0..27] of 0..27 such that the absolute differences d[i] = |x[i+1] - x[i]| (i = 0..26) form a permutation of 1..27.

Part of amphora/MathConstructOptimize-Envs-harbor.