Kraft–McMillan inequality

The Kraft–McMillan inequality states that codeword lengths in any uniquely decodable code over an alphabet of size r satisfy ∑ᵢ r⁻ⁿⁱ ≤ 1. The same bound characterizes lengths realizable by prefix-free codes.

Connect