skip to main content
article
Free access

Implementing deletion in B+-trees

Published: 01 March 1995 Publication History

Abstract

This paper describes algorithms for key deletion in B+-trees. There are published algorithms and pseudocode for searching and inserting keys, but deletion, due to its greater complexity and perceived lesser importance, is glossed over completely or left as an exercise to the reader. To remedy this situation, we provide a well documented flowchart, algorithm, and pseudo-code for deletion, their relation to search and insertion algorithms, and a reference to a freely available, complete B+-tree library written in the C programming language.

References

[1]
[AHU83] A. V. Aho, J. E. Hopcroft, and J. D. Ullman. Data Structures and Algorithms. Addison-Wesley, Reading MA, 1983.
[2]
[BM72] R. Bayer and E. McCreight. Organization and maintenance of large ordered indexes. Acts Informatica , 1:173-189, 1972.
[3]
[BY89] R. A. Baeza-Yates. Expected behaviour of B+- trees under random insertions. Acta Informatica , 26(5):439-471, 1989.
[4]
[CLR90] T. H. Cormen, C,. E. Leiserson, and R. L. Rivest. Introduction to Algorithms. MIT Press, Cambridge MA, 1990.
[5]
[Com79] D. Comer. The ubiquitous B-tree. ACM Computing Surveys, 11(2):121-137, 1979.
[6]
[EN94] R. Elmasri and S. B. Navathe. Fundamentals of Database Systems. Benjamin / Cummings, Redwood City CA, second edition, 1994.
[7]
[FZ92] M. J. Folk and B. Zoellick. File Structures. Addison-Wesley, Reading MA, second edition, 1992.
[8]
[GR93] J. Gray and A. Reuter. Transaction Processing: Concepts and Techniques. Morgan Kauffman, 1993.
[9]
[GS78] L. J. Guibas and R. Sedgewick. A dichromatic framework for balanced trees. In Proceedings of the 19th Annual Symposium on Foundations of Computer Science, pages 8-21. IEEE, 1978.
[10]
[JS89] T. Johnson and D. Shasha. Utilization of B-trees with inserts, deletes and modifies. In Proceedings of the 8th Symposium on Principles of Database Systems, pages 235-246. ACM, 1989.
[11]
[JS93a] T. Johnson and D. Shasha. B-trees with inserts and deletes: Why free-at-empty is better than merge-at-half. Journal of Computer and System Sciences, 47(1):45-76, 1993.
[12]
[JS93b] T. Johnson and D. Shasha. The performance of current B-tree algorithms. ACM Transactions on Database Systems, 18(1):51-101, 1993.
[13]
[Knu73] D. E. Knuth. The Art of Computer Programming: Volume III. Addlson-Wesley, Reading MA, 1973.
[14]
[Liv90] P. Lividas. File Structures: Theory and Practice . Prentice Hall, Englewood Cliffs NJ, 1990.
[15]
[Oli93] I. Oliver. Programming Classics: Implementing the World's Best Algorithms. Prentice Hall, Englewood Cliffs NJ, 1993.
[16]
[Sal88] B. J. Salzberg. File Structures: an Analytic Approach. Prentice Hall, Englewood Cliffs NJ, 1988.
[17]
[Wir76] N. Wirth. Algorithms + Data Structures = Programs. Prentice Hall, Englewood Cliffs NJ, 1976.
[18]
[Woo93] D. Wood. Data Structures, Algorithms, and Performance. Addison-Wesley, Reading MA, 1993.
[19]
[ZH89] B. Zhang and M. Hsu. Unsafe operations in B-trees. Acta Informatica, 26(5):421-438, 1989.

Cited By

View all

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM SIGMOD Record
ACM SIGMOD Record  Volume 24, Issue 1
March 1995
97 pages
ISSN:0163-5808
DOI:10.1145/202660
Issue’s Table of Contents

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 01 March 1995
Published in SIGMOD Volume 24, Issue 1

Check for updates

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)445
  • Downloads (Last 6 weeks)32
Reflects downloads up to 14 Sep 2024

Other Metrics

Citations

Cited By

View all

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Get Access

Login options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media