Skip to main content
Log in

A Linear-Time Algorithm for the Feasibility of Pebble Motion on Trees

  • Published:
Algorithmica Aims and scope Submit manuscript

Abstract.

We consider the following pebble motion problem. We are given a tree T with n vertices and two arrangements \(\cal R\) and \(\cal S\) of k<n distinct pebbles numbered 1, . . ., k on distinct vertices of the tree. Pebbles can move along edges of T provided that at any given time at most one pebble is traveling along an edge and each vertex of T contains at most one pebble. We are asked the following question:

Is arrangement \(\cal S\) reachable from \(\cal R\) ?

We present an algorithm that, on input two arrangements of k pebbles on a tree with n vertices, decides in time O(n) whether the two arrangements are reachable from one another. We also give an algorithm that, on input two reachable configurations, returns a sequence of moves that transforms one configuration into the other.

The pebble motion problem on trees has various applications including memory management in distributed systems, robot motion planning, and deflection routing.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

Author information

Authors and Affiliations

Authors

Additional information

Received August 10, 1996; revised October 1, 1997, and February 17, 1998.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Auletta, V., Monti, A., Parente, M. et al. A Linear-Time Algorithm for the Feasibility of Pebble Motion on Trees. Algorithmica 23, 223–245 (1999). https://doi.org/10.1007/PL00009259

Download citation

  • Issue Date:

  • DOI: https://doi.org/10.1007/PL00009259