Fast priority queues for cached memory
- 31 December 2000
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Journal of Experimental Algorithmics
Abstract
The cache hierarchy prevalent in todays high performance processors has to be taken into account in order to design algorithms that perform well in practice. This paper advocates the adaption of external memory algorithms to this purpose. This idea and the practical issues involved are exemplified by engineering a fast priority queue suited to external memory and cached memory that is based on k-way merging. It improves previous external memory algorithms by constant factors crucial for transferring it to cached memory. Running in the cache hierarchy of a workstation the algorithm is at least two times faster than an optimized implementation of binary heaps and 4-ary heaps for large inputs.Keywords
This publication has 7 references indexed in Scilit:
- Simple randomized mergesort on parallel disksParallel Computing, 1997
- The influence of caches on the performance of heapsACM Journal of Experimental Algorithmics, 1996
- Fishspear: a priority queue algorithmJournal of the ACM, 1994
- BOTTOM-UP-HEAPSORT, a new variant of HEAPSORT beating, on an average, QUICKSORT (if n is not very small)Theoretical Computer Science, 1993
- The external HeapsortIEEE Transactions on Software Engineering, 1989
- Calendar queues: a fast 0(1) priority queue implementation for the simulation event set problemCommunications of the ACM, 1988
- An empirical comparison of priority-queue and event-set implementationsCommunications of the ACM, 1986