Skip to main content
Log in

Parallel integer sorting using small operations

  • Published:
Acta Informatica Aims and scope Submit manuscript

Abstract

We consider the problem of sortingn integers in the range [0,n c-1], wherec is a constant. It has been shown by Rajasekaran and Sen [14] that this problem can be solved “optimally” inO(logn) steps on an EREW PRAM withO(n) n -bit operations, for any constant ∈>O. Though the number of operations is optimal, each operation is very large. In this paper, we show thatn integers in the range [0,n c-1] can be sorted inO(logn) time withO(nlogn)O(1)-bit operations andO(n) O(logn)-bit operations. The model used is a non-standard variant of an EREW PRAMtthat permits processors to have word-sizes ofO(1)-bits and Θ(logn)-bits. Clearly, the speed of the proposed algorithm is optimal. Considering that the input to the problem consists ofO (n logn) bits, the proposed algorithm performs an optimal amount of work, measured at the bit level.

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

Access this article

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

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. Aho, A. V., Hopcroft, J.E., Ullman, J.D.: The Design and Analysis of Computer Algorithms. Reading, MA: Addison-Wesley 1974

    Google Scholar 

  2. Ajtai, M., Komlós, J., Szemerédi, E.: Sorting inc logn parallel steps. Combinatorica3(1), 1–19 (1983)

    Google Scholar 

  3. Albers, S., Hagerup, T.: Improved parallel integers sorting without concurrent writing. Proc. 3rd ACMSIAM Symposium on Discrete Algorithms, pp. 463–472 (1992)

  4. Anderson, R.J., Miller, G.L.: Deterministic parallel list ranking. Proc. 3rd Aegean Workshop on Comput. (Lect. Notes Comput. Sci. vol. 319, pp. 81–90) Berlin, Heidelberg, New York: Springer 1988

    Google Scholar 

  5. Bhatt, P.C.P., Diks, K., Hagerup, T., Prasad, V.C., Radzik, T., Saxena, S.: Improved deterministic parallel integer sorting. Inf. Comput.94, 29–47 (1991)

    Google Scholar 

  6. Cole, R.: Parallel Merge Sort. SIAM J. Comput.17, 770–785 (1988)

    Google Scholar 

  7. Cook, S., Dwork, C., Reischuk, R.: Upper and lower time bounds for parallel random access machines without simultaneous writes. SIAM J. Comput.15, 87–97 (1986)

    Google Scholar 

  8. Hagerup, T.: Towards optimal parallel bucket sorting. Inf. Comput.75, 39–51 (1987)

    Google Scholar 

  9. Hagerup, T.: Constant time parallel integer sorting. Proc. 23rd Annual ACM Symposium on Theory of Computing, pp. 299–306 (1991)

  10. Kruskal, C. P., Rudolph, L., Snir, M.: The power of parallel prefix. IEEE Trans. Comput.34, 965–968 (1985)

    Google Scholar 

  11. Leighton, T.: Tight bounds on the complexity of parallel sorting. IEEE Trans. Comput.34, 344–354 (1985)

    Google Scholar 

  12. Mathias, Y., Vishkin, U.: On parallel hashing and integer sorting. J. Algorithms.12, 573–606 (1991)

    Google Scholar 

  13. Rajasekaran, S., Reif, J.H.: Optimal and sublogarithmic time randomized parallel sorting algorithms. SIAM J. Comput.18, 594–607 (1989)

    Google Scholar 

  14. Rajasekaran, S., Sen, S.: On parallel integer sorting. Acta Inf.29, 1–15 (1992)

    Google Scholar 

  15. Reif, J.H.: An optimal parallel algorithm for integer sorting. Proc. 16th Annual ACM Symposium on Theory of Computing, pp. 496–504 (1984)

  16. Thompson, C.D.: The VLSI complexity of sorting. IEEE Trans. Comput.32, 1171–1184 (1983)

    Google Scholar 

  17. Vaidyanathan, R.: Sorting on PRAMs with reconfigurable buses. Inf. Process. Lett.42, 203–208 (1992)

    Google Scholar 

  18. Vaidyanathan, R., Hartmann, C.R.P., Varshney, P.K.: Running ASCEND, DESCEND and PIPELINE algorithms in parallel using small processors. Inf. Process. Lett.46, 31–36 (1993)

    Google Scholar 

  19. Vaidyanathan, R., Hartmann, C.R.P., Varshney, P.K.: Towards optimal parallel radix sorting. Proc. 7th Int. Parallel Proc. Symposium, p. 193–197 (1993)

Download references

Author information

Authors and Affiliations

Authors

Additional information

This work was partially supported by The Northeast Parallel Architectures Center (NPAC) at Syracuse University, Syracuse, NY 13244 and The Rome Air Development Center, under contract F30602-88-D-0027.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Vaidyanathan, R., Hartmann, C.R.P. & Varshney, P.K. Parallel integer sorting using small operations. Acta Informatica 32, 79–92 (1995). https://doi.org/10.1007/BF01185406

Download citation

  • Received:

  • Issue Date:

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

Keywords