In search of faster weighted sampling without replacement , the following question arose:
Is there an algorithm that implements random sampling without replacement with unequal selection probabilities using linear time at the input size? An O (n log n) implementation was proposed in response to this question - can this be improved?
language-agnostic algorithm random-sample
krlmlr Feb 27 '13 at 14:44 2013-02-27 14:44
source share