top | item 11420595

(no title)

sika_grr | 10 years ago

I only see an O(n) algorithm there, there is no O(k). Am I missing something?

discuss

order

pps43|10 years ago

Wiki shows Algorithm R, this article talks about Algorithm D, both by the same author.

The former is well known, while the latter is more obscure. This is probably because the extra complexity of Algorithm D is rarely necessary. If k and n are on the same order of magnitude, there is not much difference, and if k << n then simple random sampling would work nearly as well.