The binary Kraft inequality says that codeword lengths of a prefix code satisfy
Conversely, suppose positive integer lengths obey this inequality and arrange them in nondecreasing order. Construct codewords greedily in the infinite binary tree. Before assigning length , each earlier codeword of length excludes exactly nodes at depth . Thus the number excluded is
where strictness follows because the remaining term occurs in the full Kraft sum. A free depth- node therefore exists. Assign it as the next codeword; choosing a node not below an earlier codeword preserves prefix-freeness. Induction constructs the required prefix code.
Write . Monotonicity gives
so and therefore whenever . Hence
A distribution on must have . For , put and let
For any mass function with mean , Gibbs inequality gives
Thus the geometric distribution uniquely maximizes entropy. For , the only admissible law is the point mass at one, which is the limiting geometric case .
For , define the finite-alphabet exponential family
The mean is continuous and nondecreasing in , with limits and as and . The strict interior assumption on therefore supplies a with .
For any other satisfying the same constraint,
so
Equality in Gibbs inequality holds only for . Hence this Gibbs-form mass function is the unique entropy maximizer.

Articles by others on the same topic (0)

There are currently no matching articles.