Abstract
Most traditional merging algorithms and merging-based sorting algorithms are based on 2-sorters. A newk-way merging algorithm is proposed. The aim of this algorithm is to mergek sorted lists, withm keys of each, into one, wherek can be any integer. The merging process uses onlyk sorters instead of 2 sorters. Thus,k-sorters is the primary operation of our algorithm. The time needed to mergek sorted lists is (21+([log(m/k)])t k, wheret k is the time to sortk keys.
Similar content being viewed by others
References
Ajtai, M., Komlos, J., Steiger, W. L. et al., An O(nlogn) sorting network,Proc. Ann. ACM Symp. Theory of Computing, 1983, 1–9.
Akl, S. G., Santoro, N., Optimal parallel merging and sorting without memory conflict,IEEE Trans. on Computers, 1987, 36(11): 1367.
Batcher, K. E., Sorting networks and their applications, in 1968Spring Joint Comput. Conf. AFIPS Proc., Washington D C: Thompson Book Company, 1968, 32: 307–314.
Batcher, K.E., On bitonic sorting networks,Proc. of 1990 International Conference on Parallel Processing, University Park: Pennsylvania State Univ. Press, 1990,.
Leighton, T.,Introduction to Parallel Algorithms and Architectures: Arrays. Trees. Hypercubes, San Mateo: Morgan-Kaufman, 1991.
Gao Qingshi, Liu Zhiyong, Sloping-and-shaking—Multiway merging and sorting,Science in China, Ser E, 1997, 40(3): 225.
Knuth, D. E.,The Art of Computer Programming, City: Addison-Wesley, 1973.
Parker, B., Parberry, I., Constructing sorting network fromk-sorters,Information Processing Letters 1989/90, 33, 157.
Lee, D. L., Batcher, K. E., A multiway merge sorting network,IEEE Trans on Pdrallel and Distributed Systems 1995, 6: 211.
Leighton, T., Tight bounds on the complexity of parallel sorting,IEEE Trans. on Computers, 1985, c-34(4): 344.
Author information
Authors and Affiliations
Additional information
Project partly supported by the National “863” High-Tech Programs of China and the National Natural Science Foundation of China (Grant No. 69573033).
Rights and permissions
About this article
Cite this article
Zhao, L., Liu, Z. & Gao, Q. An efficient multiway merging algorithm. Sci. China Ser. E-Technol. Sci. 41, 543–551 (1998). https://doi.org/10.1007/BF02917030
Received:
Issue Date:
DOI: https://doi.org/10.1007/BF02917030