Re: problem on medians



On 31 May 2007 00:49:50 -0700, ak <ajinkya.coep@xxxxxxxxx> wrote:

what are the least no. of comparisons to find the medain of a set of
n integers ?
This says it is O(n), where "n" is the number of elements:
http://en.wikipedia.org/wiki/Median#Efficient_computation

http://doi.acm.org/10.1145/22145.22169
says it requires at least 2*n comparisons.
(In case you don't have access to the ACM Portal, here is the
reference:
"Proceedings of the seventeenth annual ACM symposium on Theory of
Computing", Providence, Rhode Island, United States
"Finding the median requires 2n comparisons",
Samuel W. Bent and John W. John {yes, first and last names the same}
Pages: 213 - 216 Year of Publication: 1985 ISBN:0-89791-151-2

Using Google for:
comparisons "finding the median"
gives many other references. I saw a reference giving 10*n as a
worst case performance. There is also a "random" algorithm with
good average performance but n*n worst case performance.

A K
.



Relevant Pages

  • Re: Steve Carroll proves he cannot understand what he reads. Again.
    ... referenced up until the point John wrote the term "his ... People who can comprehend what they ... where the only Mac referenced up until that point was Steve's ... So you *are* claiming to know what specific machine John was in reference ...
    (comp.sys.mac.advocacy)
  • Re: Heres another Adios - to film cameras
    ... >A good summation, John. ... full package make adding notes easy. ... site to have a significant reference library at hand. ... The paper itself contains no electronics and ...
    (rec.outdoors.rv-travel)
  • Re: St. Johns Day
    ... (as per your reference to the title 'Reverend'). ... gentlemen as Saints covers the honorific. ... they were "sworn by God and St. John by the Square and Compass and common ... The Dumfries MS calls the Lodge ...
    (soc.org.freemasonry)
  • Re: Texas TMS1232 Delta Sigma converters
    ... >John Larkin wrote: ... >> Make sure you're not picking up 50/60 Hz line noise, ... >filtering unless we *really* have to. ... the reference problem is serious. ...
    (sci.electronics.design)
  • Re: Theres just no longer any credible evidence...
    ... The Oregon petition was, and the Oregon Institute is a fraud, John, ... Even IF the Lefty Blog that you reference is correct, ... assess global warming. ...
    (alt.guitar.amps)