Skip to main content

Parallelizing Merge Sort onto Distributed Memory Parallel Computers

  • Conference paper
  • First Online:

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 2327))

Abstract

Merge sort is useful in sorting a great number of data progressively, especially when they can be partitioned and easily collected to a few processors. Merge sort can be parallelized, however, conventional algorithms using distributed memory computers have poor performance due to the successive reduction of the number of participating processors by a half, up to one in the last merging stage.

This paper presents load-balanced parallel merge sort where all processors do the merging throughout the computation. Data are evenly distributed to all processors, and every processor is forced to work in all merging phases. An analysis shows the upper bound of the speedup of the merge time as (P- 1)/log P where P is the number of processors. We have reached a speedup of 8.2 (upper bound is 10.5) on 32-processor Cray T3E in sorting of 4M 32-bit integers.

This research was supported by KRF grant (no. KRF-99-041-E00287).

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

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. K. Batcher, “Sorting networks and their applications,” Proceedings of the AFIPS Spring Joint Computer Conference 32, Reston, VA, 1968, pp. 307–314.

    Google Scholar 

  2. R. Cole, “Parallel merge sort,” SIAM Journal of Computing, vol. 17, no. 4, 1998, pp. 770–785.

    Article  Google Scholar 

  3. A. C. Dusseau, D. E. Culler, K. E. Schauser, and R. P. Martin, “Fast parallel sorting under LogP: experience with the CM-5”, IEEE Trans. Computers, Vol. 7, Aug. 1996.

    Google Scholar 

  4. R. Hockney, “Performance parameters and benchmarking of supercomputers”, Parallel Computing, Dec. 1991, Vol. 17, No. 10 & 11, pp. 1111–1130.

    Article  Google Scholar 

  5. J. S. Huang and Y. C. Chow, “Parallel sorting and data partitioning by sampling”, Proc. 7th Computer Software and Applications Conf., Nov. 1983, pp. 627–631.

    Google Scholar 

  6. Y. Kim, M. Jeon, D. Kim, and A. Sohn, “Communication-Efficient Bitonic Sort on a Distributed Memory Parallel Computer”, Int’l Conf. Parallel and Distributed Systems (ICPADS’2001), June 26–29, 2001.

    Google Scholar 

  7. S. J. Lee, M. Jeon, D. Kim, and A. Sohn, “Partitioned Parallel Radix Sort,” J. of Parallel and Distributed Computing, Academic Press, (to appear) 2002.

    Google Scholar 

  8. A. Sohn and Yuetsu Kodama, “Load Balanced Parallel Radix Sort,” Proceedings of the 12th ACM International Conference on Supercomputing, July 1998.

    Google Scholar 

  9. R. Xiong and T. Brown, “Parallel Median Splitting and k-Splitting with Application to Merging and Sorting,” IEEE Transactions on Parallel and Distributed Systems, Vol. 4, No. 5, May 1993, pp. 559–565.

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2002 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Jeon, M., Kim, D. (2002). Parallelizing Merge Sort onto Distributed Memory Parallel Computers. In: Zima, H.P., Joe, K., Sato, M., Seo, Y., Shimasaki, M. (eds) High Performance Computing. ISHPC 2002. Lecture Notes in Computer Science, vol 2327. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-47847-7_5

Download citation

  • DOI: https://doi.org/10.1007/3-540-47847-7_5

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-43674-4

  • Online ISBN: 978-3-540-47847-8

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics