Parallel Merge Sort with Load Balancing

  • Authors:
  • Minsoo Jeon;Dongseung Kim

  • Affiliations:
  • Department of Electrical Engineering, Korea University, Seoul, 136-701, Korea. msjeon@classic.korea.ac.kr;Department of Electrical Engineering, Korea University, Seoul, 136-701, Korea. dkim@classic.korea.ac.kr

  • Venue:
  • International Journal of Parallel Programming
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

Parallel merge sort is useful for sorting a large quantity of data progressively. The merge sort should be parallelized carefully since the conventional algorithm has poor performance due to the successive reduction of the number of participating processors by half, and down to one in the last merging stage. The proposed load-balanced merge sort utilizes all processors throughout the computation. It evenly distributes data to all processors in each stage. Thus every processor is forced to work in all phases. Significant performance enhancement has been achieved up to a speedup of (P−1)/log P where P is the number of processors. Experimental results demonstrate a speedup of 9.6 (upper bound of 10.7) on 32-processor Cray T3E when sorting 4M 32-bit integers, and a speed up of 2.3 (upper bound of 2.8) on an 8-node PC cluster.