Alexis Langlois-Rémillard, Mia N. Müßig, Helmut Podhaisky, Erika Roldan, Günter Rote, Maximilian Brömme, Matthes Norden, Maximilian Prietzel, Daniel Yu, and Mykhailo Lyader:

Optimal polyomino fences

Manuscript, October 2026, 50 pages, arXiv:2610.XXX.  →BibTeX

Abstract

The n-omino fence problem asks how many cells can be surrounded by placing every n-omino exactly once in the grid. We present a new dynamic programming approach for this problem, allowing us to prove optimality for the pentomino and hexomino fence and to classify all possible pentomino orders by optimal area. For the first time we also provide strong heuristic solutions and upper bounds for all fences up to n = 15, after which we even approximate the 500-omino fence with computational experiments. Finally, we generalize the problem to three dimensions, where we prove optimality for pentacubes and derive heuristic solutions for hexacubes.

  pdf file
other papers about this subject
Last update: October 22, 2026.