Abstract
In this paper we present efficient deterministic and randomized algorithms for selection on any interconnection network when the number of input keys (n) is ≥ the number of processors (p).
Our deterministic algorithm runs on any network in time O(n/p log log p + T sp log n), where T sp is the time needed for sorting p keys using p processors (assuming that broadcast and prefix computations take time less than or equal to T sp ). As an example, our algorithm runs on a √p × √p mesh in time O(n/p log log p + √p log n), where n is the input size. This time bound is nearly optimal and significantly better than that of the best existing algorithm when n is large.
On the other hand, our randomized algorithm runs in an expected time of O((n/p + T ssparse ) log log p) on any network, where T ssparse is the time needed for collecting and sorting p 1−ε sample keys using p processors. (Here ε is a constant < 1). On a √p × √p mesh our algorithm runs in an expected O((n/p + √p) log log p) time, a significant improvement over the deterministic algorithm.
We have implemented our randomized algorithm on the Connection Machine CM2. Experimental results obtained are promising. In this paper we also report our implementation details.
This research was supported in part by an NSF Research Initiation Award CCR-92-09260.
Preview
Unable to display preview. Download preview PDF.
References
M. Blum, R. Floyd, V.R. Pratt, R. Rivest, and R. Tarjan, Time Bounds for Selection, Journal of Computer and System Science, 7(4), 1972, pp. 448–461.
R.W. Floyd, and R.L. Rivest, Expected Time Bounds for Selection, Communications of the ACM, Vol. 18, No.3, 1975, pp. 165–172.
D. Krizanc, and L. Narayanan, Optimal Algorithms for Selection on a Mesh-Connected Processor Array, Proc. Symposium on Parallel and Distributed Processing, 1992.
D. Krizanc and L. Narayanan, Multi-packet Selection on a Mesh-Connected Processor Array, in Proc. International Parallel Processing Symposium, 1992.
T. Leighton, Introduction to Parallel Algorithms and Architectures: Arrays-Trees-Hypercube, Morgan-Kaufmann Publishers, 1992.
N. Meggido, Parallel Algorithms for Finding the Maximum and the Median Almost Surely in Constant Time, Preliminary Report, CS Department, Carnegie-Mellon University, Pittsburg, PA, Oct. 1982.
C.G. Plaxton, Efficient Computation on Sparse Interconnection Networks, Ph. D. Thesis, Department of Computer Science, Stanford University, 1989.
S. Rajasekaran, Randomized Parallel Selection, Proc. Symposium on Foundations of Software Technology and Theoretical Computer Science, 1990, pp. 215–224.
S. Rajasekaran, Mesh Connected Computers with Fixed and Reconfigurable Buses: Packet Routing, Sorting, and Selection, in Proc. First Annual European Symposium on Algorithms, 1993.
S. Rajasekaran and J.H. Reif, Derivation of Randomized Sorting and Selection Algorithms, Parallel Algorithm Derivation and Program Transformation, Edited by R. Paige, J.H. Reif, and R. Wachter, Kluwer Academic Publishers, 1993, pp. 187–205.
S. Rajasekaran, and S. Sen, Random Sampling Techniques and Parallel Algorithms Design, in Synthesis of Parallel Algorithms, Editor: J.H. Reif, Morgan-Kaufman Publishers, 1993, pp. 411–451.
S. Rajasekaran and D.S.L. Wei, Selection, Routing, and Sorting on the Star Graph, in Proc. International Parallel Processing Symposium, pp. 661–665, April 1993.
R. Reischuk, Probabilistic Parallel Algorithms for Sorting and Selection, SIAM Journal of Computing, Vol. 14, No. 2, 1985, pp. 396–409.
C. Schnorr and A. Shamir, An Optimal Sorting Algorithm for Mesh-Connected Computers, in Proc. ACM Symposium on Theory of Computing, 1986, pp. 255–263.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1994 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Rajasekaran, S., Chen, W., Yooseph, S. (1994). Unifying themes for network selection. In: Du, DZ., Zhang, XS. (eds) Algorithms and Computation. ISAAC 1994. Lecture Notes in Computer Science, vol 834. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-58325-4_170
Download citation
DOI: https://doi.org/10.1007/3-540-58325-4_170
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-58325-7
Online ISBN: 978-3-540-48653-4
eBook Packages: Springer Book Archive