3 ms·
My "Introduction to Data Compression (5th Edition) 2017" from Khalid Sayood has a section named "Comparison of Huffman and Arithmetic Coding" and the conclusio
by belter 5y ago
My "Introduction to Data Compression (5th Edition) 2017" from Khalid Sayood has a section named
"Comparison of Huffman and Arithmetic Coding" and the conclusion is around the following lines:
"...This means that for most sources we can get rates closer to the entropy using arithmetic coding than by using Huffman coding. The exceptions are sources whose probabilities are powers of two. In these cases, the single-letter Huffman code achieves the entropy; and we cannot do any better
with arithmetic coding, no matter how long a sequence we pick..."
"...for Huffman codes, we are guaranteed to obtain rates within 0.086 + pmax of the entropy, where pmax is the probability of the most probable letter in the alphabet. If the alphabet size is relatively large and the probabilities are not too skewed, the maximum probability pmax is generally small. In these cases, the advantage of arithmetic coding
over Huffman coding is small; and it might not be worth the extra complexity to use arithmetic coding rather than Huffman coding. However, there are many sources, such as facsimile, in which the alphabet size is small; and the probabilities are highly unbalanced. In these cases, the use of arithmetic coding is generally worth the added complexity...."
- omegalulw 5y agoSo practically, yes :) Arithmetic coding is dope.