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.
Similar content being viewed by others
References
Aho, A. V., Hopcroft, J.E., Ullman, J.D.: The Design and Analysis of Computer Algorithms. Reading, MA: Addison-Wesley 1974
Ajtai, M., Komlós, J., Szemerédi, E.: Sorting inc logn parallel steps. Combinatorica3(1), 1–19 (1983)
Albers, S., Hagerup, T.: Improved parallel integers sorting without concurrent writing. Proc. 3rd ACMSIAM Symposium on Discrete Algorithms, pp. 463–472 (1992)
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
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)
Cole, R.: Parallel Merge Sort. SIAM J. Comput.17, 770–785 (1988)
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)
Hagerup, T.: Towards optimal parallel bucket sorting. Inf. Comput.75, 39–51 (1987)
Hagerup, T.: Constant time parallel integer sorting. Proc. 23rd Annual ACM Symposium on Theory of Computing, pp. 299–306 (1991)
Kruskal, C. P., Rudolph, L., Snir, M.: The power of parallel prefix. IEEE Trans. Comput.34, 965–968 (1985)
Leighton, T.: Tight bounds on the complexity of parallel sorting. IEEE Trans. Comput.34, 344–354 (1985)
Mathias, Y., Vishkin, U.: On parallel hashing and integer sorting. J. Algorithms.12, 573–606 (1991)
Rajasekaran, S., Reif, J.H.: Optimal and sublogarithmic time randomized parallel sorting algorithms. SIAM J. Comput.18, 594–607 (1989)
Rajasekaran, S., Sen, S.: On parallel integer sorting. Acta Inf.29, 1–15 (1992)
Reif, J.H.: An optimal parallel algorithm for integer sorting. Proc. 16th Annual ACM Symposium on Theory of Computing, pp. 496–504 (1984)
Thompson, C.D.: The VLSI complexity of sorting. IEEE Trans. Comput.32, 1171–1184 (1983)
Vaidyanathan, R.: Sorting on PRAMs with reconfigurable buses. Inf. Process. Lett.42, 203–208 (1992)
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)
Vaidyanathan, R., Hartmann, C.R.P., Varshney, P.K.: Towards optimal parallel radix sorting. Proc. 7th Int. Parallel Proc. Symposium, p. 193–197 (1993)
Author information
Authors and Affiliations
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
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
Received:
Issue Date:
DOI: https://doi.org/10.1007/BF01185406