eng
Schloss Dagstuhl – Leibniz-Zentrum für Informatik
Leibniz International Proceedings in Informatics
1868-8969
2019-09-06
35:1
35:14
10.4230/LIPIcs.ESA.2019.35
article
Building a Nest by an Automaton
Czyzowicz, Jurek
1
Dereniowski, Dariusz
2
https://orcid.org/0000-0003-4000-4818
Pelc, Andrzej
1
Département d'informatique, Université du Québec en Outaouais, Canada
Faculty of Electronics, Telecommunications and Informatics, Gdańsk University of Technology, Poland
A robot modeled as a deterministic finite automaton has to build a structure from material available to it. The robot navigates in the infinite oriented grid Z x Z. Some cells of the grid are full (contain a brick) and others are empty. The subgraph of the grid induced by full cells, called the field, is initially connected. The (Manhattan) distance between the farthest cells of the field is called its span. The robot starts at a full cell. It can carry at most one brick at a time. At each step it can pick a brick from a full cell, move to an adjacent cell and drop a brick at an empty cell. The aim of the robot is to construct the most compact possible structure composed of all bricks, i.e., a nest. That is, the robot has to move all bricks in such a way that the span of the resulting field be the smallest.
Our main result is the design of a deterministic finite automaton that accomplishes this task and subsequently stops, for every initially connected field, in time O(sz), where s is the span of the initial field and z is the number of bricks. We show that this complexity is optimal.
https://drops.dagstuhl.de/storage/00lipics/lipics-vol144-esa2019/LIPIcs.ESA.2019.35/LIPIcs.ESA.2019.35.pdf
finite automaton
plane
grid
construction task
brick
mobile agent
robot