I want to find the smallest set that represents a distribution of items. Say I have the following items with distributions:
A: 25%
B: 25%
C: 50%
The smallest set that accurately represents this distribution is the following:
[A,B,C,C]
That's easy to do without thinking too hard about it with this small example, but honestly I don't know how I got from input to that set, logically. If I knew the rules to get from those distributions to that set, I could theoretically do that with a larger input (which is what I need to do).
Does anyone have any advice or could at least point me in the correct direction?