Let's say I have a hash table of 10 buckets where each bucket is of a number of bits. However each bucket doesn't have to have the same number of bits. Is it possible to achieve this? Or does it require padding every entry?
For example:
Index 0 has 12 bits. Index 6 has 5 bits. Index 1-5, 7-9 are empty.
Does this imply I must have an array of size 12 * 10 = 120 bits, just so that I can modulus into a specific bucket? Or is it possible to store the above in something that is much smaller, ie 17 bits?