Re:Algorithms Every Programmer Should Know: Reservoir Sampling
by edc117 on Friday March 06, 2015 @01:39PM
(#9158651)
Do you have to make sure to address the scenario where a generated index may possibly not exist in a table (deletion, whatever)? It says nothing about the index being contiguous. This can potentially end up with your algorithm returning less than #{X} if your generated indices don't exist.
[ Parent
| on HN ]