Abstract
Two new linear-time algorithms for in-place merging are presented. Both algorithms perform at most (1 + t)m + n/2 2 + o(m) element comparisons, where m and n are the sizes of the input sequences, m ⩽ n, and t = ILlog 2(n/m)⌋. The first algorithm is for unstable merging and it carries out no more than 4(m + n) + o(n) element moves. The second algorithm is for stable merging and it accomplishes at most 15m + 13n + o(n) moves.
Financially supported by the Graduate School of Turku Centre for Computer Science.
This is a preview of subscription content, log in via an institution.
Preview
Unable to display preview. Download preview PDF.
References
Dudziński K., Dydek A., “On stable minimum storage merging algorithm”, Information Processing Letters 12 (1981) 5–8
Dvořák S., Ďurian B., “Towards an efficient merging”, Proc. of the 12th Symposium on Mathematical Foundations of Computer Science (1986) 290–298
Huang B-C., Langston M. A., “Practical in-place merging”, Communications of the ACM 31 (1988) 348–352
Huang B-C., Langston M. A., “Fast stable merging and sorting in constant extra space”, Proc. of the 1st International Conference on Computing and Information (1989) 71–79
Hwang F. K., Lin S., “A simple algorithm for merging two disjoint linearly ordered sets”, SIAM Journal on Computing 1 (1972) 31–39
Katajainen J., Pasanen T., Teuhola J., “Practical in-place mergesort”, TR 94/1, Department of Computer Science, University of Copenhagen, Denmark (1994)
Knuth D. E., The Art of Computer Programming Vol. 3: Sorting and Searching, 2nd Printing, Addison-Wesley (1975)
Kronrod M. A., “Optimal ordering algorithm without operational field”, Soviet Math. Dokl. 10 (1969) 744–746
Mannila H., Ukkonen E., “A simple linear-time algorithm for in situ merging”, Information Processing Letters 18 (1984) 203–208
Munro J. I., Raman V., “Sorting with minimum data movement”, Journal of Algorithms 13 (1992) 374–393
Pardo L. T., “Stable sorting and merging with optimal space and time bounds”, SIAM Journal on Computing 6 (1977) 351–372
Pasanen T., “Lajittelu minimitilassa”, M.Sc. Thesis T-93-3, Department of Computer Science, University of Turku, Finland (1993)
Raman V., “Sorting in-place with minimum data movement”, Ph.D. Thesis CS-91-12, Computer Science Department, University of Waterloo, Ontario (1991)
Salowe J. S., Steiger W. L., “Simplified stable merging tasks”, Journal of Algorithms 8 (1987) 557–571
Symvonis A., “Optimal Stable Merging”, Proc. of the 6th International Conference on Computing and Information (1994) 124–143
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1995 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Katajainen, J., Pasanen, T., Titan, G. (1995). Asymptotically efficient in-place merging. In: Wiedermann, J., Hájek, P. (eds) Mathematical Foundations of Computer Science 1995. MFCS 1995. Lecture Notes in Computer Science, vol 969. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-60246-1_127
Download citation
DOI: https://doi.org/10.1007/3-540-60246-1_127
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-60246-0
Online ISBN: 978-3-540-44768-9
eBook Packages: Springer Book Archive