Arithmetic Coding: The Rising Star
Arithmetic Coding: The Rising Star
Arithmetic coding is especially useful when dealing with sources with small alphabets, such as binary sources, and alphabets with highly skewed probabilities. It is also a very useful approach when, for various reasons, the modeling and coding aspects of lossless compression are to be kept separate. In arithmetic coding we use a special function called Cumulative the cumulative density function can be defined as
For each a^, Txia^) will have a unique value. This value can be used as a unique tag for a^. b)tag generation for a sequenceexample-. Suppose we wish to encode the sequence 1 3 2 1. From the probability model we know that
Fx{k) = 0, k<0, F^(l) = O.8, F;,(2)=0.82, F;,(3) = 1, F^{k) = 1, k>3.
Therefore, the tag for any sequence can be computed in a sequential fashion. The only information required by the tag generation procedure is the cdf of the source, which can be obtained directly from the probability model. and the tag for the sequence 1 3 2 1 can be generated as
Example
Consider a source A that generates letters from an alphabet of size four,