Skip to main content
construction release_alert
Scholars@Duke will be undergoing maintenance April 11-15. Some features may be unavailable during this time.
cancel
Journal cover image

A comparison of sorting algorithms for the connection machine CM-2

Publication ,  Conference
Bielloch, GE; Leiserson, CE; Maggs, BM; Plaxton, CG; Smith, SJ; Zagha, M
Published in: Proceedings of the 3rd Annual ACM Symposium on Parallel Algorithms and Architectures, SPAA 1991
June 1, 1991

We have implemented three parallel sorting algorithms on the Connection Machine Supercomputer model CM-2: Batcher's bitonic sort, a parallel radix sort, and a sample sort similar to Reif and Valiant's flashsort. We have also evaluated the implementation of many other sorting algorithms proposed in the literature. Our computational experiments show that the sample sort algorithm, which is a theoretically efficient "randomized" algorithm, is the fastest of the three algorithms on large data sets. On a 64K-processor CM-2, our sample sort implementation can sort 32 × 106 64-bit keys in 5.1 seconds, which is over 10 times faster than the CM-2 library sort. Our implementation of radix sort, although not as fast on large data sets, is deterministic, much simpler to code, stable, faster with small keys, and faster on small data sets (few elements per processor). Our implementation of bitonic sort, which is pipelined to use all the hypercube wires simultaneously, is the least efficient of the three on large data sets, but is the most efficient on small data sets, and is considerably more space efficient. This paper analyzes the three algorithms in detail and discusses many practical issues that led us to the particular implementations.

Duke Scholars

Altmetric Attention Stats
Dimensions Citation Stats

Published In

Proceedings of the 3rd Annual ACM Symposium on Parallel Algorithms and Architectures, SPAA 1991

DOI

ISBN

9780897914383

Publication Date

June 1, 1991

Start / End Page

3 / 16
 

Citation

APA
Chicago
ICMJE
MLA
NLM
Bielloch, G. E., Leiserson, C. E., Maggs, B. M., Plaxton, C. G., Smith, S. J., & Zagha, M. (1991). A comparison of sorting algorithms for the connection machine CM-2. In Proceedings of the 3rd Annual ACM Symposium on Parallel Algorithms and Architectures, SPAA 1991 (pp. 3–16). https://doi.org/10.1145/113379.113380
Bielloch, G. E., C. E. Leiserson, B. M. Maggs, C. G. Plaxton, S. J. Smith, and M. Zagha. “A comparison of sorting algorithms for the connection machine CM-2.” In Proceedings of the 3rd Annual ACM Symposium on Parallel Algorithms and Architectures, SPAA 1991, 3–16, 1991. https://doi.org/10.1145/113379.113380.
Bielloch GE, Leiserson CE, Maggs BM, Plaxton CG, Smith SJ, Zagha M. A comparison of sorting algorithms for the connection machine CM-2. In: Proceedings of the 3rd Annual ACM Symposium on Parallel Algorithms and Architectures, SPAA 1991. 1991. p. 3–16.
Bielloch, G. E., et al. “A comparison of sorting algorithms for the connection machine CM-2.” Proceedings of the 3rd Annual ACM Symposium on Parallel Algorithms and Architectures, SPAA 1991, 1991, pp. 3–16. Scopus, doi:10.1145/113379.113380.
Bielloch GE, Leiserson CE, Maggs BM, Plaxton CG, Smith SJ, Zagha M. A comparison of sorting algorithms for the connection machine CM-2. Proceedings of the 3rd Annual ACM Symposium on Parallel Algorithms and Architectures, SPAA 1991. 1991. p. 3–16.
Journal cover image

Published In

Proceedings of the 3rd Annual ACM Symposium on Parallel Algorithms and Architectures, SPAA 1991

DOI

ISBN

9780897914383

Publication Date

June 1, 1991

Start / End Page

3 / 16