Given a connected, undirected, simple graph $G = (V, E)$ and $p \le |V|$ pebbles labeled $1,..., p$, a configuration of these $p$ pebbles is an injective map assigning the pebbles to vertices of $G$. Let $S$ and $D$ be two such configurations. From a configuration, pebbles can move on $G$ as follows: In each step, at most one pebble may move from the vertex it currently occupies to an adjacent unoccupied vertex, yielding a new configuration. A natural question in this setting is the following: Is configuration $D$ reachable from $S$ and if so, how? We show that the feasibility of this problem can be decided in time $O(|V| + |E|)$.
[1]
Mimmo Parente,et al.
A Linear-Time Algorithm for the Feasibility of Pebble Motion on Trees
,
1999,
Algorithmica.
[2]
Refael Hassin,et al.
Multi-Color Pebble Motion on Graphs
,
2009,
Algorithmica.
[3]
Richard M. Wilson,et al.
Graph puzzles, homotopy, and the alternating group☆
,
1974
.
[4]
Paul G. Spirakis,et al.
Coordinating Pebble Motion on Graphs, the Diameter of Permutation Groups, and Applications
,
2015,
FOCS.
[5]
Robert E. Tarjan,et al.
Depth-First Search and Linear Graph Algorithms
,
1972,
SIAM J. Comput..
[6]
Samuel Loyd,et al.
Mathematical Puzzles of Sam Loyd
,
1959
.