Huffman codes for an IID source on

alphabet:
block size b: weights are integers; p = weight / total. Words of b symbols get product probabilities.

Bits per source symbol

Huffman tree (b = )

Codewords for blocks of

bar = codeword length; blue tick = −log2 P(word)