by WithinReason · 4y ago · 0 comments
https://upload.wikimedia.org/wikipedia/commons/8/81/Arithmet...
It's from here:
https://en.wikipedia.org/wiki/Arithmetic_coding
The ANS algorithm mentioned in the article has the theoretically-close-to-optimal compression ratio of arithmetic coding and the speed of Huffman coding (https://en.wikipedia.org/wiki/Huffman_coding)
If I'm not mistaken, that graphic demonstrates optimal prefix codes in general as opposed to what is unique about arithmetic coding.
Admittedly, I have not looked into arithmetic coding, but the graphic reminded me of huffman coding exercises in grad school to teach prefix coding.