In-place sorting

  • Authors:
  • Viliam Geffert;Jozef Gajdoš

  • Affiliations:
  • Department of Computer Science, P. J. Šafárik University, Košice, Slovakia;College of International Business ISM Slovakia in Prešov, Prešov, Slovakia

  • Venue:
  • SOFSEM'11 Proceedings of the 37th international conference on Current trends in theory and practice of computer science
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present an algorithm for asymptotically efficient sorting. Our algorithm sorts the given array A by the use of nċ lg n + O(nċlg lg n) comparisons and O(n) element moves. Moreover, this algorithm works in-place, using only a constant auxiliary workspace. This shrinks the gap between the known information-theoretic lower bound and the existing algorithms to O(nċlg lg n) comparisons, even if we require the algorithm to use only a constant auxiliary memory and a linear number of moves.