@inproceedings{53746f452ad54973acbc395e1b0a0b29,
title = "Compacting Squares: Input-Sensitive In-Place Reconfiguration of Sliding Squares",
abstract = "Edge-connected configurations of square modules, which can reconfigure through so-called sliding moves, are a well-established theoretical model for modular robots in two dimensions. Dumitrescu and Pach [Graphs and Combinatorics, 2006] proved that it is always possible to reconfigure one edge-connected configuration of n squares into any other using at most O(n2) sliding moves, while keeping the configuration connected at all times. For certain pairs of configurations, reconfiguration may require ω(n2) sliding moves. However, significantly fewer moves may be sufficient. We prove that it is NP-hard to minimize the number of sliding moves for a given pair of edge-connected configurations. On the positive side we present Gather&Compact, an input-sensitive in-place algorithm that requires only O( Pn) sliding moves to transform one configuration into the other, where P is the maximum perimeter of the two bounding boxes. The squares move within the bounding boxes only, with the exception of at most one square at a time which may move through the positions adjacent to the bounding boxes. The O( Pn) bound never exceeds O(n2), and is optimal (up to constant factors) among all bounds parameterized by just n and P. Our algorithm is built on the basic principle that well-connected components of modular robots can be transformed efficiently. Hence we iteratively increase the connectivity within a configuration, to finally arrive at a single solid xy-monotone component. We implemented Gather&Compact and compared it experimentally to the in-place modification by Moreno and Sacrist{\'a}n [EuroCG 2020] of the Dumitrescu and Pach algorithm (MSDP). Our experiments show that Gather&Compact consistently outperforms MSDP by a significant margin, on all types of square configurations.",
keywords = "Modular robots, NP-hardness, Reconfiguration, Sliding cubes",
author = "Akitaya, {Hugo A.} and Demaine, {Erik D.} and Matias Korman and Irina Kostitsyna and Irene Parada and Willem Sonke and Bettina Speckmann and Ryuhei Uehara and Jules Wulms",
note = "DBLP License: DBLP's bibliographic metadata records provided through http://dblp.org/ are distributed under a Creative Commons CC0 1.0 Universal Public Domain Dedication. Although the bibliographic metadata records are provided consistent with CC0 1.0 Dedication, the content described by the metadata records is not. Content may be subject to copyright, rights of privacy, rights of publicity and other restrictions.",
year = "2022",
month = jun,
day = "1",
doi = "10.4230/LIPIcs.SWAT.2022.4",
language = "English",
series = "Leibniz International Proceedings in Informatics, LIPIcs",
pages = "4:1--4:19",
editor = "Artur Czumaj and Qin Xin",
booktitle = "18th Scandinavian Symposium and Workshops on Algorithm Theory (SWAT 2022)",
}