Authors
Anthony LaMarca, Richard E Ladner
Publication date
1999/4/1
Journal
Journal of Algorithms
Volume
31
Issue
1
Pages
66-104
Publisher
Academic Press
Description
We investigate the effect that caches have on the performance of sorting algorithms both experimentally and analytically. To address the performance problems that high cache miss penalties introduce we restructure mergesort, quicksort, and heapsort in order to improve their cache locality. For all three algorithms the improvement in cache performance leads to a reduction in total execution time. We also investigate the performance of radix sort. Despite the extremely low instruction count incurred by this linear time sorting algorithm, its relatively poor cache performance results in worse overall performance than the efficient comparison based sorting algorithms. For each algorithm we provide an analysis that closely predicts the number of cache misses incurred by the algorithm.
Total citations
19981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023102516914161612918161014125876125664793
Scholar articles