TOPICS
Search

Kraft Inequality


The Kraft inequality states that the lengths l_1,l_2,... of the codewords of a D-ary prefix-free code, where D>=2, satisfy

 sum_(i)D^(-l_i)<=1.

Conversely, every finite or countable sequence of positive integer lengths satisfying this inequality is the sequence of lengths of some D-ary prefix-free code. The inequality follows by associating codewords with disjoint cylinders in the infinite D-ary tree.


See also

Codeword, Prefix-Free Code

Explore with Wolfram|Alpha

References

Cover, T. M. and Thomas, J. A. Elements of Information Theory, 2nd ed. Hoboken, NJ: Wiley, 2006.

Cite this as:

Weisstein, Eric W. "Kraft Inequality." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/KraftInequality.html

Subject classifications