Structural Origins of Cubic Complexity in Pebble Motion
Abstract
The pebble motion problem (PMP) asks whether one configuration of labeled pebbles on a graph can be transformed into another by moving pebbles to adjacent unoccupied vertices. It is a fundamental model of graph reconfiguration and is closely related to multi-agent path finding (MAPF). A central open problem since Kornhauser, Miller, and Spirakis (FOCS 1984) is to understand the origin of the classical worst-case behavior. While it is known that every feasible instance on an -vertex graph admits a solution sequence of length , it has remained unclear which instances actually require cubic complexity. In this paper, we resolve the long-standing complexity of the pebble motion problem on trees. We show that every feasible instance on an -vertex tree admits a solution sequence of length , computable by an output-sensitive algorithm. Since a lower bound of is known, this establishes that the phenomenon does not occur on trees and nearly closes the gap up to a logarithmic factor. Building on this result, we extend our approach to general graphs by applying the tree algorithm to breadth-first spanning trees. This yields an efficient framework that produces -length solution sequences for a broad class of instances, including the classical square-grid example, where we recover the bound observed by Kornhauser, Miller, and Spirakis. Finally, by analyzing the behavior of this algorithm, we obtain strong structural restrictions governing when complexity can arise. We show that such behavior is possible only under highly constrained conditions, specifically when degree-two vertices lie on cycles of length , with each cycle being the shortest containing the corresponding vertex.
Keywords
Cite
@article{arxiv.2503.20550,
title = {Structural Origins of Cubic Complexity in Pebble Motion},
author = {Tomoki Nakamigawa and Tadashi Sakuma},
journal= {arXiv preprint arXiv:2503.20550},
year = {2026}
}