I think this is from the length property (the higher frequencies are, the lower the length of their encoding should be; can also be equal for non-powers of 2). To give you a simple example: Encoding aabbcccc should use an encoding where the length of the code word for c is half of the length of the code words for a and b.
Or maybe not.
But if it should be there, you should type it in I guess.
Hi,
I think this is from the length property (the higher frequencies are, the lower the length of their encoding should be; can also be equal for non-powers of 2). To give you a simple example: Encoding
aabbcccc
should use an encoding where the length of the code word forc
is half of the length of the code words fora
andb
.The test solutions have been sorted to account for differing methods and starting vertices