Skip to main content
QUICK REVIEW

[Paper Review] A Linear Time Algorithm for the Feasibility of Pebble Motion on Graphs

Jingjin Yu|arXiv (Cornell University)|Jan 10, 2013
Data Management and AlgorithmsComputer Science5 references12 citations
TL;DR

This paper presents a linear-time algorithm to determine the feasibility of moving labeled pebbles on a connected, undirected graph from an initial configuration to a target configuration, using a novel reduction to tree-based pebble motion. The method leverages structural properties of graphs with maximal tree-embedded components (MTECs), transforming them into edges while preserving reachability, enabling a feasibility decision in O(|V| + |E|) time—optimal for the problem.

ABSTRACT

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|)$.

Motivation & Objective

  • To determine whether a target configuration of labeled pebbles is reachable from an initial configuration on a connected undirected graph.
  • To address the computational inefficiency of existing algorithms that may require exponential time on infeasible instances.
  • To generalize prior linear-time feasibility results for trees to arbitrary connected graphs.
  • To provide a practical, efficient feasibility test to avoid unnecessary computation in applications like multi-robot path planning and network deflection routing.

Proposed method

  • The algorithm reduces the original graph by collapsing maximal tree-embedded components (MTECs) into single edges, preserving the reachability structure.
  • It uses a transformation that combines pebbles on MTECs into composite pebbles, maintaining equivalence classes under valid moves.
  • The method ensures that MTECs are never fully occupied unless a pebble must pass through, minimizing structural complexity.
  • It applies known linear-time pebble permutation techniques from Auletta et al. (2002) to the reduced tree structure.
  • The reduction is proven to preserve feasibility via case analysis on move types: exit, entry, and passage through MTECs.
  • The final feasibility test is performed on the reduced tree using equivalence class grouping in linear time.

Experimental results

Research questions

  • RQ1Can the feasibility of pebble motion on arbitrary connected graphs be determined in linear time?
  • RQ2How can the structural complexity of non-tree graphs be reduced while preserving reachability properties?
  • RQ3What conditions allow MTECs to be collapsed into single edges without altering the feasibility of a pebble motion instance?
  • RQ4Is there a way to generalize the linear-time feasibility test for trees to general graphs?
  • RQ5What invariants or equivalence classes govern the reachability of pebble configurations in graphs with cycles?

Key findings

  • The feasibility of pebble motion on any connected, undirected graph can be decided in O(|V| + |E|) time, matching the optimal complexity for graph traversal.
  • The algorithm reduces graphs with maximal tree-embedded components (MTECs) into equivalent trees by collapsing MTECs into edges with composite pebbles.
  • The reduction preserves reachability, as proven through case analysis on move types: exit, entry, and passage through MTECs.
  • When the number of pebbles is at least |V| - 2 or at most |V|_M - 3, feasibility is determined by known results; the remaining cases are reduced to tree-based feasibility.
  • The method avoids exponential computation on infeasible instances by enabling early feasibility checks, significantly improving efficiency in practical applications.
  • The approach outperforms prior methods by avoiding graph expansion and maintaining a minimal, equivalent structure throughout the computation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.