Cache Oblivious Search Trees via Binary Trees of Small Height
Authors:
- Gerth Stølting BrodalGBGerth Stølting Brodal
- Rolf FagerbergRFRolf Fagerberg
- Riko JacobRJRiko Jacob
Open Access
- 6 September 2001
- journal article
- Published by Det Kgl. Bibliotek/Royal Danish Library in BRICS Report Series
- Vol. 8 (36)
Abstract
We propose a version of cache oblivious search trees which is simpler than the previous proposal of Bender, Demaine and Farach-Colton and has the same complexity bounds. In particular, our data structure avoids the use of weight balanced B-trees, and can be implemented as just a single array of data elements, without the use of pointers. The structure also improves space utilization. For storing n elements, our proposal uses (1+epsilon)n times the element size of memory, and performs searches in worst case O(log_B n) memory transfers, updates in amortized O((log^2 n)/(epsilon B)) memory transfers, and range queries in worst case O(log_B n + k/B) memory transfers, where k is the size of the output. The basic idea of our data structure is to maintain a dynamic binary tree of height log n + O(1) using existing methods, embed this tree in a static binary tree, which in turn is embedded in an array in a cache oblivious fashion, using the van Emde Boas layout of Prokop. We also investigate the practicality of cache obliviousness in the area of search trees, by providing an empirical comparison of different methods for laying out a search tree in memory. The source code of the programs, our scripts and tools, and the data we present here are available online under ftp.brics.dk/RS/01/36/Experiments/.Keywords
This publication has 9 references indexed in Scilit:
- A General Schema for Constructing One-Point Bases in the Lambda CalculusBRICS Report Series, 2001
- The influence of caches on the performance of heapsACM Journal of Experimental Algorithmics, 1996
- LEDA: a platform for combinatorial and geometric computingCommunications of the ACM, 1995
- An implicit data structure for searching a multikey table in logarithmic timeJournal of Computer and System Sciences, 1991
- An implicit data structure supporting insertion, deletion, and search in Olog2n) timeJournal of Computer and System Sciences, 1986
- An empirical comparison of priority-queue and event-set implementationsCommunications of the ACM, 1986
- Design and implementation of an efficient priority queueTheory of Computing Systems, 1976
- Organization and maintenance of large ordered indexesActa Informatica, 1972
- Algorithm 232: HeapsortCommunications of the ACM, 1964