Skip to main content
Log in

Sorting Stably, in Place, with O(n log n) Comparisons and O(n) Moves

  • Published:
Theory of Computing Systems Aims and scope Submit manuscript

Abstract

We settle a long-standing open question, namely whether it is possible to sort a sequence of n elements stably (i.e., preserving the original relative order of the equal elements), using O(1) auxiliary space and performing O(n log n) comparisons and O(n) data moves. Munro and Raman stated this problem in J. Algorithms (13, 1992) and gave an in-place but unstable sorting algorithm that performs O(n) data moves and O(n1+ε) comparisons. Subsequently (Algorithmica, 16, 1996) they presented a stable algorithm with these same bounds. Recently, Franceschini and Geffert (FOCS 2003) presented an unstable sorting algorithm that matches the asymptotic lower bounds on all computational resources.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Gianni Franceschini.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Franceschini, G. Sorting Stably, in Place, with O(n log n) Comparisons and O(n) Moves. Theory Comput Syst 40, 327–353 (2007). https://doi.org/10.1007/s00224-006-1311-1

Download citation

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00224-006-1311-1

Keywords

Navigation