Cache-oblivious B-trees

被引:72
作者
Bender, MA [1 ]
Demaine, ED [1 ]
Farach-Colton, M [1 ]
机构
[1] SUNY Stony Brook, Dept Comp Sci, Stony Brook, NY 11794 USA
来源
41ST ANNUAL SYMPOSIUM ON FOUNDATIONS OF COMPUTER SCIENCE, PROCEEDINGS | 2000年
关键词
D O I
10.1109/SFCS.2000.892128
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We present dynamic search-tree data structures that perform well in the setting of a hierarchical memory (including various levels of cache, disk, etc.), but do not depend on the number of memory levels, the block sizes and number of blocks at each level, or the relative speeds of memory access. In particular between any pair of bevels in the memory hierarchy, where transfers between the levels are done in blocks of size B, our data structures match the optimal search bound of Theta (log(B) N) memory transfers. This bound is also achieved by the classic B-tree data structure, but only when the block size B is known, which in practice requires careful tuning on each machine platform. One of our data structures supports insertions and deletions in Theta (log(B) N) amortized memory transfers, which matches the B-tree's worst-case bounds. We augment this structure to support scans optimally in Theta (N/B) memory transfers. In this second data structure insertions and deletions require Theta (log(B) N + log(2) N/B) amortized memory transfers. Thus, we match the performance of the B-tree for B = Omega (log N log log N).
引用
收藏
页码:399 / 409
页数:11
相关论文
共 42 条
  • [1] ADELSONVELSKII GM, 1962, DOKL AKAD NAUK SSSR+, V146, P263
  • [2] THE INPUT OUTPUT COMPLEXITY OF SORTING AND RELATED PROBLEMS
    AGGARWAL, A
    VITTER, JS
    [J]. COMMUNICATIONS OF THE ACM, 1988, 31 (09) : 1116 - 1127
  • [3] AGGARWAL A, 1987, P 28 ANN IEEE S FDN, P204, DOI DOI 10.1109/SFCS.1987.31
  • [4] Aggarwal A., 1987, P 19 ANN ACM S THEOR, P305
  • [5] THE UNIFORM MEMORY-HIERARCHY MODEL OF COMPUTATION
    ALPERN, B
    CARTER, L
    FEIG, E
    SELKER, T
    [J]. ALGORITHMICA, 1994, 12 (2-3) : 72 - 109
  • [6] ANDREWS M, 1996, P 37 ANN S FDN COMP, P580
  • [7] [Anonymous], THESIS MIT CAMBRIDGE
  • [8] [Anonymous], P 40 ANN S FDN COMP
  • [9] Optimal dynamic interval management in external memory
    Arge, L
    Vitter, JS
    [J]. 37TH ANNUAL SYMPOSIUM ON FOUNDATIONS OF COMPUTER SCIENCE, PROCEEDINGS, 1996, : 560 - 569
  • [10] Arge L, 1995, LECT NOTES COMPUT SC, V955, P334