Sampling without replacement with unequal probabilites — linear run time possible?

只谈情不闲聊 提交于 2019-12-12 10:13:35

问题


In search for a faster weighted sampling without replacement, the following question came up:

Is there an algorithm that implements random sampling without replacement with unequal selection probabilities using linear time in the size of the input? An O(n log n) implementation has been suggested in an answer to this question -- can this be improved?

来源:https://stackoverflow.com/questions/15114898/sampling-without-replacement-with-unequal-probabilites-linear-run-time-possib

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!