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 56 is a permutation x 0..55 of 0..55 such that the absolute differences d i = x i+1 - x i (i = 0..54) form a permutation of 1..55.

The task

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

Part of amphora/MathConstructOptimize-Envs-harbor.