Skip to main content
Log in

An efficient multiway merging algorithm

  • Published:
Science in China Series E: Technological Sciences Aims and scope Submit manuscript

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.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. Ajtai, M., Komlos, J., Steiger, W. L. et al., An O(nlogn) sorting network,Proc. Ann. ACM Symp. Theory of Computing, 1983, 1–9.

  2. Akl, S. G., Santoro, N., Optimal parallel merging and sorting without memory conflict,IEEE Trans. on Computers, 1987, 36(11): 1367.

    MathSciNet  Google Scholar 

  3. 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.

    Google Scholar 

  4. Batcher, K.E., On bitonic sorting networks,Proc. of 1990 International Conference on Parallel Processing, University Park: Pennsylvania State Univ. Press, 1990,.

    Google Scholar 

  5. Leighton, T.,Introduction to Parallel Algorithms and Architectures: Arrays. Trees. Hypercubes, San Mateo: Morgan-Kaufman, 1991.

    Google Scholar 

  6. Gao Qingshi, Liu Zhiyong, Sloping-and-shaking—Multiway merging and sorting,Science in China, Ser E, 1997, 40(3): 225.

    Google Scholar 

  7. Knuth, D. E.,The Art of Computer Programming, City: Addison-Wesley, 1973.

  8. Parker, B., Parberry, I., Constructing sorting network fromk-sorters,Information Processing Letters 1989/90, 33, 157.

    Article  MATH  MathSciNet  Google Scholar 

  9. Lee, D. L., Batcher, K. E., A multiway merge sorting network,IEEE Trans on Pdrallel and Distributed Systems 1995, 6: 211.

    Article  Google Scholar 

  10. Leighton, T., Tight bounds on the complexity of parallel sorting,IEEE Trans. on Computers, 1985, c-34(4): 344.

    Article  MATH  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

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

Reprints 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

Download citation

  • Received:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF02917030

Keywords

Navigation