Cache-aware and cache-oblivious adaptive sorting

  • Authors:
  • Gerth Stølting Brodal;Rolf Fagerberg;Gabriel Moruz

  • Affiliations:
  • BRICS, Department of Computer Science, University of Aarhus, Århus N, Denmark;Department of Mathematics and Computer Science, University of Southern Denmark, Odense M, Denmark;BRICS, Department of Computer Science, University of Aarhus, Århus N, Denmark

  • Venue:
  • ICALP'05 Proceedings of the 32nd international conference on Automata, Languages and Programming
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

Two new adaptive sorting algorithms are introduced which perform an optimal number of comparisons with respect to the number of inversions in the input. The first algorithm is based on a new linear time reduction to (non-adaptive) sorting. The second algorithm is based on a new division protocol for the GenericSort algorithm by Estivill-Castro and Wood. From both algorithms we derive I/O-optimal cache-aware and cache-oblivious adaptive sorting algorithms. These are the first I/O-optimal adaptive sorting algorithms.