Fast Stable Merging and Sorting in Constant Extra Space

In an earlier research paper 9 , we presented a novel, yet straightforward linear-time algorithm for merging two sorted list in a fixed amount of additional space. Constant of proportionality estimates and empirical testing reveal that this procedure is reasonably competitive with merge routines free to squander unbounded additional memory, making it particularly attractive whenever space is a critical resource. In this paper, we divise a relatively simple strategy by which this efficient merge can be made stable, and extend our results in a nontrivial way to the problem of stable sorting by merging

[1]  Krzysztof Dudzinski,et al.  On a Stable Minimum Storage Merging Algorithm , 1981, Inf. Process. Lett..

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

[3]  S. Dvorák,et al.  Merging by Decomposition Revisited , 1988, Comput. J..

[4]  Edward C. Horvath,et al.  Stable Sorting in Asymptotically Optimal Time and Extra Space , 1978, JACM.

[5]  S. Dvorák,et al.  Towards an Efficient Merging , 1986, MFCS.

[6]  Peter J. Denning,et al.  Operating Systems Theory , 1973 .

[7]  Michael A. Langston,et al.  Time-Space Optimal Parallel Merging and Sorting , 1991, IEEE Trans. Computers.

[8]  S. Dvorák,et al.  Stable Linear Time Sublinear Space Merging , 1987, Comput. J..

[9]  Jeffrey S. Salowe,et al.  Simplified Stable Merging Tasks , 1987, J. Algorithms.

[10]  Jin Kiu Wong Some simple in-place merging algorithms , 1981, BIT Comput. Sci. Sect..

[11]  Michael A. Langston,et al.  Stable set and multiset operations in optimal time and space , 1988, PODS '88.

[12]  Heikki Mannila,et al.  A Simple Linear-Time Algorithm for in Situ Merging , 1984, Inf. Process. Lett..

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

[14]  Franco P. Preparata Corrigendum: A Fast Stable Sorting Algorithm with Absolutely Minimum Storage , 1976, Theor. Comput. Sci..

[15]  Svante Carlsson,et al.  Splitmerge - A Fast Stable Merging Algorithm , 1986, Inf. Process. Lett..

[16]  Donald E. Knuth,et al.  The art of computer programming: sorting and searching (volume 3) , 1973 .