Skip to main content

Updating almost complete trees or one level makes all the difference

  • Conference paper
  • First Online:
STACS 90 (STACS 1990)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 415))

Included in the following conference series:

Abstract

An almost complete (or 2-complete) tree is a binary search tree in which any two external nodes are no more than two levels apart. While complete binary search trees have an amortized update cost of Θ(n), we demonstrate that almost complete binary search trees have an amortized update cost of O(log2 n). Thus, they are an attractive alternative for those situations that require fast retrieval, that is, log n+O(1) comparisons, and have few updates.

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

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. G. M. Adel'son-Vel'skii and E. M. Landis. An algorithm for the organization of information. Sov. Math. Dokl., 3:1259–1262, 1962.

    Google Scholar 

  2. A. Andersson. Improving partial rebuilding by using simple balance criteria. In Proceedings of the 1989 Workshop on Algorithms and Data Structures, pages 393–402. Springer-Verlag, 1989.

    Google Scholar 

  3. A. Andersson and T. W. Lai. Efficient maintenance of almost perfectly balanced trees. In preparation.

    Google Scholar 

  4. T. E. Gerasch. An insertion algorithm for a minimal internal path length binary search tree. Communications of the ACM, 31:579–585, 1988.

    Article  Google Scholar 

  5. L. J. Guibas and R. Sedgewick. A dichromatic framework for balanced trees. In Proceedings of the 19th Annual IEEE Symposium on Foundations of Computer Science, pages 8–21, 1978.

    Google Scholar 

  6. T. W. Lai and D. Wood. Updating approximately complete trees. Technical Report CS-89-57, Univ. of Waterloo, 1989.

    Google Scholar 

  7. J. Nievergelt and E. M. Reingold. Binary search trees of bounded balance. SIAM Journal on Computing, 2:33–43, 1973.

    Article  Google Scholar 

  8. M. H. Overmars. The Design of Dynamic Data Structures, volume 156 of Lecture Notes in Computer Science. Springer-Verlag, 1983.

    Google Scholar 

  9. M. H. Overmars and J. van Leeuwen. Dynamic multi-dimensional data structures based on quad-and k-d trees. Acta Informatica, 17:267–285, 1982.

    Article  Google Scholar 

  10. Q. F. Stout and B. L. Warren. Tree rebalancing in optimal time and space. Communications of the ACM, 29:902–908, 1986.

    Article  Google Scholar 

  11. J. van Leeuwen and D. Wood. Dynamization of decomposable searching problems. Information Processing Letters, 10:51–56, 1980.

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Christian Choffrut Thomas Lengauer

Rights and permissions

Reprints and permissions

Copyright information

© 1990 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Lai, T.W., Wood, D. (1990). Updating almost complete trees or one level makes all the difference. In: Choffrut, C., Lengauer, T. (eds) STACS 90. STACS 1990. Lecture Notes in Computer Science, vol 415. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-52282-4_42

Download citation

  • DOI: https://doi.org/10.1007/3-540-52282-4_42

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-52282-9

  • Online ISBN: 978-3-540-46945-2

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics