Uniform-source Huffman length distribution
ID: uniform-source-huffman-length-distribution
For equiprobable symbols, the maximum codeword length of a binary Huffman code is . Exactly codewords have length and have length . The balancing exchange for a uniform optimal prefix code restricts the depths to these two levels; counting leaves and using equality in the Kraft inequality determine the numbers.
// Target: probability-and-statistics.bigb
New to topics? Read the docs here!