Python: (sampling with replacement): efficient algorithm to extract the set of UNIQUE N-tuples from a set
- by Homunculus Reticulli
I have a set of items, from which I want to select DISSIMILAR tuples (more on the definition of dissimilar touples later). The set could contain potentially several thousand items, although typically, it would contain only a few hundreds.
I am trying to write a generic algorithm that will allow me to select N items to form an N-tuple, from the…