next up previous
Next: Arithmetic coding Up: No Title Previous: Codes

Redundancy

The individual redundancy of a source code, relative to the actual source, for sequence tex2html_wrap_inline2693 is defined as

equation95

The base of the logarithm is assumed to be 2 here. For the expected redundancy we obtain

eqnarray99

i.e. the difference between the expected codeword length tex2html_wrap_inline2735 and the entropy tex2html_wrap_inline2737 of the source sequences.

The smallest possible expected redundancy is 0.

Proof:Rewrite

equation111

where tex2html_wrap_inline2739 . The first term on the right hand side is a divergence and can not be negative (see [1] page 26). The second term is non-negative by Kraft's inequality (1). tex2html_wrap_inline2727

Note that we achieve tex2html_wrap_inline2743 only if the codeword length tex2html_wrap_inline2745 for all tex2html_wrap_inline2693 . Therefore we call such codeword lengths ideal. It is our intention to design codes that approach these ideal codeword lengths as closely as possible.

Example:Let T=2. Consider the code tex2html_wrap_inline2729 and a memoryless source with tex2html_wrap_inline2753 . The table below lists the individual redundancies for this code.

tabular130

The expected redundancy tex2html_wrap_inline2765 .


Ramesh Rao
Fri May 2 08:36:00 PDT 1997