Coupon collector problem
Let there be a set of
Hitting set
Uniform shuffling
The purpose of uniform shuffling is to take elements of some collection (array) and shuffle them randomly to avoid worst case orderings.
The first algorithm to achieve this is as follows:
The second algorithm relies on a different approach: