Pushing Blocks by Sweeping Lines

Authors

  • Hugo Akitaya University of Massachusetts Lowell
  • Maarten Löffler Utrecht University and Tulane University
  • Giovanni Viglietta University of Aizu

DOI:

https://doi.org/10.57717/cgt.v2i1.31

Abstract

We investigate the reconfiguration of n 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 by one unit. 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 known to be NP-complete.

We show that, for every n, there are "sparse" initial configurations of n tokens (i.e., where no two tokens are in the same row or column) that can be rearranged into any a x b box such that ab = n. However, only 1 x k, 2 x k and 3 x 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.

Downloads

Published

2023-10-13

How to Cite

Akitaya, H., Löffler, M., & Viglietta, G. (2023). Pushing Blocks by Sweeping Lines. Computing in Geometry and Topology, 2(1), 6:1–6:28. https://doi.org/10.57717/cgt.v2i1.31

Issue

Section

Original Research Articles

Categories