Skip to main content

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

  • Conference paper
STACS 2005 (STACS 2005)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 3404))

Included in the following conference series:

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(n 1 + ε) 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 chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Franceschini, G., Geffert, V.: An In-Place Sorting with O(nlogn) Comparisons and O(n) Moves. In: Proceedings of the 44th Annual IEEE Symposium on Foundations of Computer Science, FOCS (2003)

    Google Scholar 

  2. Franceschini, G., Grossi, R.: Optimal cache-oblivious implicit dictionaries. In: Baeten, J.C.M., Lenstra, J.K., Parrow, J., Woeginger, G.J. (eds.) ICALP 2003. LNCS, vol. 2719. Springer, Heidelberg (2003)

    Chapter  Google Scholar 

  3. Hoare, C.A.R.: Quicksort. The Computer Journal 5(1), 10–16 (1962)

    Article  MATH  MathSciNet  Google Scholar 

  4. Katajainen, J., Pasanen, T.: Sorting multisets stably in minimum space. In: Nurmi, O., Ukkonen, E. (eds.) SWAT 1992. LNCS, vol. 621, pp. 410–421. Springer, Heidelberg (1992)

    Google Scholar 

  5. Katajainen, J., Pasanen, T.: Stable minimum space partitioning in linear time. BIT 32(4), 580–585 (1992)

    Article  MATH  MathSciNet  Google Scholar 

  6. Katajainen, J., Pasanen, T.: In-place sorting with fewer moves. Inform. Process. Lett. 70, 31–37 (1999)

    Article  MATH  MathSciNet  Google Scholar 

  7. Knuth, D.E.: The Art of Computer Programming. Sorting and Searching, vol. 3. Addison-Wesley, Reading (1973)

    Google Scholar 

  8. Kronrod, M.A.: Optimal ordering algorithm without operational field. Soviet Math. Dokl. 10, 744–746 (1969)

    MATH  Google Scholar 

  9. Lai, T.W., Wood, D.: Implicit selection. In: Karlsson, R., Lingas, A. (eds.) SWAT 1988. LNCS, vol. 318, pp. 14–23. Springer, Heidelberg (1988)

    Google Scholar 

  10. Munro, J.I.: An implicit data structure supporting insertion, deletion, and search in O(log2 n) time. J. Comput. System Sci. 33, 66–74 (1986)

    Article  MATH  MathSciNet  Google Scholar 

  11. Munro, J.I., Raman, V.: Sorting with minimum data movement. J. Algorithms 13, 374–393 (1992)

    Article  MATH  MathSciNet  Google Scholar 

  12. Munro, J.I., Raman, V.: Fast stable in-place sorting with O(n) data moves. Algorithmica 16, 151–160 (1996)

    MATH  MathSciNet  Google Scholar 

  13. Munro, J.I., Raman, V.: Selection from read-only memory and sorting with minimum data movement. Theoret. Comput. Sci. 165, 311–323 (1996)

    Article  MATH  MathSciNet  Google Scholar 

  14. Pardo, L.T.: Stable sorting and merging with optimal space and time bounds. SIAM Journal on Computing 6(2), 351–372 (1977)

    Article  MATH  MathSciNet  Google Scholar 

  15. Salowe, J., Steiger, W.: Simplified stable merging tasks. Journal of Algorithms 8(4), 557–571 (1987)

    Article  MATH  MathSciNet  Google Scholar 

  16. Williams, J.W.J.: Heapsort (Algorithm 232). Comm. Assoc. Comput. Mach. 7, 347–348 (1964)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2005 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Franceschini, G. (2005). Sorting Stably, In-Place, with O(n log n) Comparisons and O(n) Moves. In: Diekert, V., Durand, B. (eds) STACS 2005. STACS 2005. Lecture Notes in Computer Science, vol 3404. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-31856-9_52

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-31856-9_52

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-24998-6

  • Online ISBN: 978-3-540-31856-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics