Hi,
I think you have not understood the question correctly. We need to find here the number of bins which will have less number of comparisons.
In the question there are 20 objects given. So the possible number of equal size bins are 1, 2, 4, 5, 10, 20 and the corresponding size of bins will be 20, 10, 5, 4, 2, 1 respectively.
We can exclude the bin sizes of 1 (will have 20 elements which is actually question itself) and 20 (in this case there will be only one element per bin so there will not be possible any comparisons).
So now we have bins : 2, 4, 5, 10 and their size (elements) : 10, 5, 4, 2.
So no of comparisons will be 90, 40, 30 and 10 for bins 2, 4, 5 and 10 respectively.
So, clearly for bin of 10 there are10 comparisons which least among them. So the answer will be 10.
Regards,
Deepak
IITM Online Degree Team