Sampling without replacement with unequal probabilities - is linear runtime possible?

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?

+2
language-agnostic algorithm random-sample
Feb 27 '13 at 14:44
source share

No one has answered this question yet.

See similar questions:

67
Choose k random items from the list whose items have weight
46
Fast weighted sampling without replacement

or similar:

3835
How to effectively combine socks with a bunch?
1518
Image Processing: Enhanced Coca-Cola Can Recognition Algorithm
675
Find an integer from not four billion data
284
How to implement classic sorting algorithms in modern C ++?
46
Weighted random selection with and without replacement
46
Fast weighted sampling without replacement
3
How to try without replacement and recount every time (conditional selection)?
2
Efficient sampling without replacing a multi-network
one
Weighted sampling without replacement
0
Implement a sample of Poissons in linear time



All Articles