Kraft-McMillan inequality
[5/100%]By induction on construction, prove that for a binary Huffman code the sum in the Kraft-McMillan inequality is exactly equal to one.
We need to construct a uniquely decodable binary homomorphism from the alphabet . For certain reasons, it has been decided to use code words of lengths for the symbols respectively. It is known that the average frequencies of the symbols and are and respectively. Find the optimal lengths of the code words for and .
By induction on the construction, prove that for a binary Huffman code, the sum in the Kraft-McMillan inequality is exactly equal to one.
Prove that for any optimal binary homomorphism, the sum in the Kraft-McMillan inequality is exactly equal to one. Demonstrate that for non-binary homomorphisms this may fail.
We need to construct an unambiguous binary homomorphism from the alphabet . For certain reasons, for the symbols it has been decided to use code words of lengths respectively. It is known that the average frequencies of the symbols and are and respectively. Find the optimal lengths of the code words for and .