Skip to main content
Log in

On the construction of weighted time-optimal B-trees

  • Part I Computer Science
  • Published:
BIT Aims and scope Submit manuscript

Abstract

B-trees have been popular data structures since their definition. Their success is due to the fact that a B-tree containingn keys is “balanced” with a height ofO(logn). However, for a given set of elements and their access frequencies, one can construct many B-trees (possibly with different heights). The average access costs of these trees may vary significantly. An algorithm to construct a weighted time-optimal B-tree is presented. A weighted time-optimal B-tree is one in which the weighted access cost is minimized. A dynamic programming algorithm is used to construct a weighted time-optimal B-tree givenn elements and their weights. The algorithm runs in timeO(mn 3 logn) and has a storage requirement ofO(mn 2 logn) wherem is the order of the B-tree andn is the number of keys.

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

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. J. Bitner and S. Huang,Key comparison optimal 2–3trees with maximum storage utilization, SIAM J. Comput. 10 (3), 1981, 558–570.

    Article  MATH  MathSciNet  Google Scholar 

  2. L. Gotlieb,Optimal multiway search trees, SIAM J. Comput. 10 (3), 1981, 422–433.

    Article  MATH  MathSciNet  Google Scholar 

  3. L. Gotlieb and D. Wood,The construction of optimal multiway search trees and the monotonicity principle, Internat. J. Comput. Math. 9, 1981, 17–24.

    Article  MATH  MathSciNet  Google Scholar 

  4. J. H. Hester, D. S. Hirschberg, S.-H. S. Huang and C. K. Wong,Faster construction of binary split trees, J. Algorithms 7, 1986, 412–424.

    Article  MATH  MathSciNet  Google Scholar 

  5. D. E. Knuth,Optimal binary search trees, Acta Informatica 1, 1971, 14–25.

    Article  MATH  Google Scholar 

  6. D. E. Knuth,The Art of Computer Programming, Vol 3, Addison-Wesley, Reading, Mass., 1973.

    Google Scholar 

  7. S.-H. S. Huang and C. K. Wong,Generalized binary split trees, Acta Informatica 21, 1984, 113–123.

    Article  MATH  MathSciNet  Google Scholar 

  8. S.-H. S. Huang and V. Viswanathan,On the construction of optimal 2–3trees, Nineteenth Southestern International Conference on Combinatorics, Graph Theory and Computing, Baton Rouge, Louisiana, Feb. 1988.

  9. A. L. Rosenberg and L. Snyder,Minimal-comparison 2–3trees, SIAM J. Comput. 7,(4), 1978, 465–480.

    Article  MATH  MathSciNet  Google Scholar 

  10. A. L. Rosenberg and L. Snyder,Time- and space-optimality in B-trees, ACM Trans. Database Syst., 6, (1), 1981, 174–193.

    Article  MATH  MathSciNet  Google Scholar 

  11. F. F. Yao,Efficient dynamic programming using quadrangle inequalities, Proceedings of 12th Annual ACM Symposium on Theory of Computing, 1980, 426–435.

Download references

Author information

Authors and Affiliations

Authors

Additional information

This research was supported in part by Texas Advanced Research Grant 1080 and NASA Grant NAG 5–739.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Huang, SH.S., Viswanathan, V. On the construction of weighted time-optimal B-trees. BIT 30, 207–215 (1990). https://doi.org/10.1007/BF02017342

Download citation

  • Received:

  • Revised:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF02017342

CR Category descriptors

Additional key words

Navigation