A linear-time algorithm for the feasibility of pebble motion on trees

被引:45
作者
Auletta, V [1 ]
Monti, A
Parente, M
Persiano, P
机构
[1] Univ Salerno, Dipartimento Informat & Applicaz, I-84081 Baronissi, Italy
[2] Univ Roma 1, Dipartimento Sci Informaz, Rome, Italy
关键词
tree; permutations; feasibility; pebble motion; robot motion planning;
D O I
10.1007/PL00009259
中图分类号
TP31 [计算机软件];
学科分类号
081202 [计算机软件与理论]; 0835 [软件工程];
摘要
We consider the following pebble motion problem. We are given a tree T with n vertices and two arrangements R and 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 S reachable from 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.
引用
收藏
页码:223 / 245
页数:23
相关论文
共 7 条
[1]
REVERSING TRAINS - A TURN OF THE CENTURY SORTING PROBLEM [J].
AMATO, N ;
BLUM, M ;
IRANI, S ;
RUBINFELD, R .
JOURNAL OF ALGORITHMS, 1989, 10 (03) :413-428
[2]
AULETTA V, 1996, P 4 EUR S ALG ESA BA
[3]
Kornhauser D., 1984, P 25 ANN S FDN COMP, P241
[4]
LOYD S, 1959, MATH PUZZLES S LOYD
[5]
Papadimitriou C. H., 1994, Proceedings. 35th Annual Symposium on Foundations of Computer Science (Cat. No.94CH35717), P511, DOI 10.1109/SFCS.1994.365740
[6]
THE (N2-1)-PUZZLE AND RELATED RELOCATION PROBLEMS [J].
RATNER, D ;
WARMUTH, M .
JOURNAL OF SYMBOLIC COMPUTATION, 1990, 10 (02) :111-137
[7]
Wilson R.M., 1974, J. Comb. Theory, Ser. B, V16, P86, DOI [DOI 10.1016/0095-8956(74)90098-7, /10.1016/0095-8956(74)90098-7]