cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A215476 Minimum number of comparisons needed to find the median of n elements.

Original entry on oeis.org

0, 1, 3, 4, 6, 8, 10, 12, 14, 16, 18, 20, 23
Offset: 1

Views

Author

Jeff Erickson, Aug 12 2012

Keywords

Comments

Dor and Zwick 1999 prove a(n) <= 2.95n + o(n).
Dor and Zwick 2001 prove a(n) >= (2+2^(-80))n - o(n).

References

  • D. Dor and U. Zwick, Median selection requires (2+epsilon)n comparisons, SIAM J. Discrete Math 14(3):312-325, 2001.
  • D. Dor and U. Zwick, Selecting the median, SIAM J. Comput. 28(5):1722-1758, 1999.
  • D. E. Knuth, The Art of Computer Programming, Vol. 3, 2nd edition, Sect. 5.3.2.
  • Kenneth Oksanen, Searching for selection algorithms, Elec. Notes Discrete Math. 27:77, 2006.

Crossrefs

Formula

a(n) = A360495(n,ceiling(n/2)). - Paolo Xausa, Apr 09 2023

Extensions

Added three more terms (from Kenneth Oksanen), Jeff Erickson, Aug 13 2012