English

Structural Origins of Cubic Complexity in Pebble Motion

Combinatorics 2026-04-02 v7 Computational Complexity Discrete Mathematics

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 Θ(N3)\Theta(N^3) worst-case behavior. While it is known that every feasible instance on an NN-vertex graph admits a solution sequence of length \Ord(N3)\Ord(N^3), 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 NN-vertex tree admits a solution sequence of length \Ord(N2logN)\Ord(N^2 \log N), computable by an output-sensitive algorithm. Since a lower bound of Ω(N2)\Omega(N^2) is known, this establishes that the Θ(N3)\Theta(N^3) phenomenon does not occur on trees and nearly closes the gap Ω(N2)\OPT(N)\Ord(N3)\Omega(N^2)\le \OPT(N)\le \Ord(N^3) 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 o(N3)o(N^3)-length solution sequences for a broad class of instances, including the classical square-grid example, where we recover the \Ord(N3/2)\Ord(N^{3/2}) bound observed by Kornhauser, Miller, and Spirakis. Finally, by analyzing the behavior of this algorithm, we obtain strong structural restrictions governing when Θ(N3)\Theta(N^3) complexity can arise. We show that such behavior is possible only under highly constrained conditions, specifically when Θ(N)\Theta(N) degree-two vertices lie on cycles of length Θ(N)\Theta(N), 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}
}
R2 v1 2026-06-28T22:35:10.899Z