Assume I have a 6 sided dice with the probability rule: for each dice value (1 to 6) the chances of getting the value $x$ on a dice roll is $\frac{x}{21}$, e.g the chances to get 6 is $\frac{6}{21}$, 5 is $\frac{5}{21}$....
I know that the entropy of the cube is 2.3983. so this sets the lower boundary of the mean amount of yes/no questions to 2.3983 (correct me if i am wrong).
given a secret cube, what is the best set of yes/no questions to ask so that the mean questions amount is minimal?
one solution i thought of is first question: is the value even? if yes then start asking about even values in decreasing order until I hit the right number (so 6 then 4 and then i am done), same manner if the answer to the first question is no (meaning odd).
Asking for the optimal set of yes/no questions is the same as asking for the best prefix-free binary code. And the answer is given by the Huffman code.
In our case I get (there are other alternatives, but all have the same $L$)
This give an average length $L=2.42857 > 2.3983$
In words, this would correspond to:
Your proposal amounts to
which is not bad, but suboptimal: $L=2.47619$