Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
article
Free access

Average case selection

Published: 01 April 1989 Publication History

Abstract

It is shown that n + k - O(1) comparisons are necessary, on average, to find the kth smallest of n numbers (kn/2). This lower bound matches the behavior of the technique of Floyd and Rivest to within a lower-order term. 7n/4 ± o(n) comparisons, on average, are shown to be necessary and sufficient to find the maximum and median of a set. An upper bound of 9n/4 ± o(n) and a lower bound of 2n - o(n) are shown for the max-min-median problem.

References

[1]
BENT, S. W., AND JOHN, J.W. Finding the median requires 2n comparisons. In Proceedings of the 17th Annual ACM Symposium on Theory of Computation (Providence, R.I., May 6-8). ACM, New York, 1985, pp. 213-216.
[2]
BLUM, M., FLOYD, R., PRATT, V., RrVEST, R., AND TARJAN, R. Time bounds for selection. J. Comput. Syst. Sci. 7, 1973, 448-461.
[3]
FLOYD, R., AND RIVEST, R. Bounds on the expected time for median computations. In Courant Computer Science Symposium, vol. 9, Randall Rustin, ed. Algorithmic Press, New York, pp. 69- 76, (conference January i 972, proceedings appeared i 973). A revised and improved version appears as Expected time bounds for selection. Commun. ACM 18, 3 (Mar. 1975), 165-172 and Algorithm 489, The algorithm SELECT--for finding the ith smallest of n elements. Commun. ACM 18, 3 t~w.-,l, l~la 1to.
[4]
HOARE, C. A.R. Algorithms 64 PARTITION and Algorithm 65 FIND. Commun. ACM 4 (1961), 321.
[5]
POHL, I. A sorting problem and its complexity. Commum. ACM 15,6 (June 1972), 462-464.
[6]
POHL, I. Minimean optimality in sorting algorithms. In Proceedings of the 16th Annual Symposium on Switching and Automata Theory (Berkeley, Calif.). IEEE, New York, 1975, pp. 71-74.
[7]
POSTMUS, J. T., RINNOOY KAN, A. H. G., AND TIMMER, G. T. An efficient dynamic selection method. Commun. ACM 26, I I (Nov. 1983), 878-881.
[8]
YAO, A., AND YAO, F. On the average-case complexity of selecting the kth best. SIAM J. Comput. 11, 3 (1982), 428-447.

Cited By

View all

Recommendations

Reviews

Don Goelman

The authors examine the problem of selecting the kth smallest element from a list of n elements. Special cases of this problem include determining the median, the maximum, and the minimum; also of interest are various combinations of these cases and the general kth value. The authors present and discuss upper and lower bounds, including some lower-order terms, for worst and average cases. In general, the selection algorithms take a random sample of specified size and then compare elements (at large) to strategic values obtained from the sample. In deriving their bounds, the authors use various interesting methods that include studying the effect of an algorithm on input permutations which differ only on a specific comparison, developing (in the case of lower bounds) estimates of path lengths in the tree program that models the algorithm's execution, and solving the linear program that represents a bound under examination. The authors omit the details when the derivations are tedious or repetitive. The methods of proof presented in the paper, and the results themselves, will interest those engaged in the research or study of sorting and selection algorithms, and the bibliography is appropriate.

Access critical reviews of Computing literature here

Become a reviewer for Computing Reviews.

Comments

Information & Contributors

Information

Published In

cover image Journal of the ACM
Journal of the ACM  Volume 36, Issue 2
April 1989
225 pages
ISSN:0004-5411
EISSN:1557-735X
DOI:10.1145/62044
Issue’s Table of Contents

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 01 April 1989
Published in JACM Volume 36, Issue 2

Permissions

Request permissions for this article.

Check for updates

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)96
  • Downloads (Last 6 weeks)17
Reflects downloads up to 04 Oct 2024

Other Metrics

Citations

Cited By

View all

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Get Access

Login options

Full Access

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media