Implementation of dynamic trees with in-subtree operations

  • Authors:
  • Tomasz Radzik

  • Affiliations:
  • King's College, London

  • Venue:
  • Journal of Experimental Algorithmics (JEA)
  • Year:
  • 1998

Quantified Score

Hi-index 0.00

Visualization

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. (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 do.