Single and bulk updates in stratified trees: an amortized and worst-case analysis

  • Authors:
  • Eljas Soisalon-Soininen;Peter Widmayer

  • Affiliations:
  • Department of Computer Science and Engineering, Helsinki University of Technology, P.O. Box 5400, FIN-02015 HUT, Finland;Institut für Theoretische Informatik, ETH Zentrum/CLW, CH-8092 Zürich, Switzerland

  • Venue:
  • Computer Science in Perspective
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

Stratified trees form a family of classes of search trees of special interest because of their generality: they include symmetric binary B-trees, half-balanced trees, and red-black trees, among others. Moreover, stratified trees can be used as a basis for relaxed rebalancing in a very elegant way. The purpose of this paper is to study the rebalancing cost of stratified trees after update operations. The operations considered are the usual insert and delete operations and also bulk insertion, in which a number of keys are inserted into the same place in the tree. Our results indicate that when insertions, deletions, and bulk insertions are applied in an arbitrary order, the amortized rebalancing cost for single insertions and deletions is constant, and for bulk insertions O(logm), where m is the size of the bulk. The latter is also a bound on the structural changes due to a bulk insertion in the worst case.