Fast stable in-place sorting withO(n) data moves

Until recently, it was not known whether it was possible to sortstably (i.e., keeping equal elements in their initial order) an array ofn elements using onlyO(n) data moves andO(1) extra space. In [13] an algorithm was given to perform this task inO(n2) comparisons in the worst case. Here, we develop a new algorithm for the problem that performs onlyO(n1+ε) comparisons (0<ε<1 is any fixed constant) in the worst case. This bound on the number of comparisons matches (asymptotically) the best known bound for the same problem with the stability constraint dropped.

[1]  Venkatesh Raman,et al.  Sorting Multisets and Vectors In-Place , 1991, WADS.

[2]  Venkatesh Raman,et al.  Selection from Read-Only Memory and Sorting with Optimum Data Movement , 1992, FSTTCS.

[3]  Venkatesh Raman Sorting in-place with minimum data movement , 1992 .

[4]  Venkatesh Raman,et al.  Fast Sorting In-Place Sorting with O(n) Data , 1991, FSTTCS.

[5]  Derick Wood,et al.  Implicit Selection , 1988, SWAT.

[6]  Michael A. Langston,et al.  Practical in-place merging , 1987, CACM.

[7]  Venkatesh Raman,et al.  Stable in situ sorting and minimum data movement , 1990, BIT.

[8]  J. Ian Munro,et al.  Implicit Data Structures for Fast Search and Update , 1980, J. Comput. Syst. Sci..

[9]  J. Wrench Table errata: The art of computer programming, Vol. 2: Seminumerical algorithms (Addison-Wesley, Reading, Mass., 1969) by Donald E. Knuth , 1970 .

[10]  Michael A. Langston,et al.  Fast Stable Merging and Sorting in Constant Extra Space , 1992, Comput. J..

[11]  J. IAN MUNRO,et al.  An Implicit Data Structure Supporting Insertion, Deletion, and Search in O(log² n) Time , 1986, J. Comput. Syst. Sci..

[12]  Venkatesh Raman,et al.  Sorting with Minimum Data Movement , 1992, J. Algorithms.

[13]  Jyrki Katajainen,et al.  Sorting Multisets Stably in Minimum Space , 1992, SWAT.

[14]  Edward H. Friend,et al.  Sorting on Electronic Computer Systems , 1956, JACM.

[15]  David Thomas,et al.  The Art in Computer Programming , 2001 .

[16]  Luis I. Trabb-Pardo Stable sorting and merging with optimal space and time bounds. , 1974 .