ACM logo

The ACM Journal of Experimental Algorithmics


Volume 3, Article 9, 1998


Implementation of Dynamic Trees with In-Subtree Operations

by

Tomasz Radzik

http://www.jea.acm.org/1998/RadzikDynamic/

Abstract:

We describe an implementation of dynamic trees with "in-subtree" operations. Our implementation follows Sleator and Tarjan's framework of dynamic-tree implementations based on splay trees. We consider the following two examples of "in-subtree" operations: (a) for a given node v, find a node with the minimum key in the subtree rooted at v; and (b) for a given node v, find a random node with key X in the subtree rooted at v (value X is fixed throughout the whole computation). The first operation may provide support for edge deletions in the dynamic minimum spanning tree problem. The second one may be useful in local search methods for degree-constrained minimum spanning tree problems. We conducted experiments with our dynamic-tree implementation within these two contexts, and the results suggest that this implementation may lead to considerably faster codes than straightforward approaches.

Received
Revised
Accepted
Published
January 29, 1998
December 29, 1998
January 8, 1999
March 30, 1999

Last updated and validated March 30, 1999, by editor@jea.acm.org