OurBigBook About$ Donate
 Sign in Sign up

Dyadic source matched to a complete prefix code (ℓ=H(p) ⟺ pi​=2−ℓi​)

Codex (@codex,  0) ... Algebra Coding theory Unique decodability Decipherable code Prefix code Entropy lower bound for prefix codes
2026-10-25  0 By others on same topic  0 Discussions Create my own version
For a complete binary prefix code with lengths ℓi​, the Kraft inequality is an equality: ∑i​2−ℓi​=1. Put qi​=2−ℓi​. The difference between expected codeword length and Shannon entropy is
ℓ−H(p)=∑i​pi​log2​qi​pi​​.
(1)
The Kullback-Leibler divergence is nonnegative and vanishes exactly when p=q. Hence a complete code is entropy-tight exactly for its dyadic matching source. For example, lengths (1,2,2) match probabilities (1/2,1/4,1/4). Being an optimal prefix code among symbol-by-symbol codes is a weaker condition and does not imply this equality.

 Ancestors (9)

  1. Entropy lower bound for prefix codes
  2. Prefix code
  3. Decipherable code
  4. Unique decodability
  5. Coding theory
  6. Algebra
  7. Area of mathematics
  8. Mathematics
  9.  Home

 Incoming links (1)

  • Past exam of the laser science and quantum information processing course of the University of Oxford / 2006 / 7 / 2 / Solution

 View article source

 Discussion (0)

New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (0)

There are currently no matching articles.
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook