News for hackers. Stuff that matters.
Re:A maximally-dense encoding for n-choose-k (2013) by mota7 on Friday May 20, 2022 @08:16PM (#31454119)
Nuts, you are correct that it isn't optimal.

It's not quite as simple as just 2 bits per digit, because the last digit can only be large if the earlier digits are small.

This makes the worst case is (1,2,6) which encodes as 48, for 5.58 bits.

There are no comments on this comment yet.