English

Pushing Blocks by Sweeping Lines

Combinatorics 2023-10-16 v3 Discrete Mathematics

Abstract

We investigate the reconfiguration of nn blocks, or "tokens", in the square grid using "line pushes". A line push is performed from one of the four cardinal directions and pushes all tokens that are maximum in that direction to the opposite direction. Tokens that are in the way of other tokens are displaced in the same direction, as well. Similar models of manipulating objects using uniform external forces match the mechanics of existing games and puzzles, such as Mega Maze, 2048 and Labyrinth, and have also been investigated in the context of self-assembly, programmable matter and robotic motion planning. The problem of obtaining a given shape from a starting configuration is know to be NP-complete. We show that, for every nn, there are "sparse" initial configurations of nn tokens (i.e., where no two tokens are in the same row or column) that can be rearranged into any a×ba\times b box such that ab=nab=n. However, only 1×k1\times k, 2×k2\times k and 3×33\times 3 boxes are obtainable from any arbitrary sparse configuration with a matching number of tokens. We also study the problem of rearranging labeled tokens into a configuration of the same shape, but with permuted tokens. For every initial "compact" configuration of the tokens, we provide a complete characterization of what other configurations can be obtained by means of line pushes.

Keywords

Cite

@article{arxiv.2202.12045,
  title  = {Pushing Blocks by Sweeping Lines},
  author = {Hugo A. Akitaya and Maarten Löffler and Giovanni Viglietta},
  journal= {arXiv preprint arXiv:2202.12045},
  year   = {2023}
}

Comments

26 pages, 23 figures

R2 v1 2026-06-24T09:52:24.195Z