Algorithms, Sampling.
is trivially: {0, 1, 2, 3, 4} # order does not matter It gets interesting when n=6. Now we have a choice, do we kick out one of the existing items in the set and replace it with the next element (i.e. 5)? What’s the property that we need to maintain? We want to make sure that if we do this sampling