Diagram of arithmetic encoding decoding. There are 4 symbols, with probabilities 0.6, 0.2, 0.1, and 0.1. The circular point represents the encoded message and decodes to the first symbol, followed by the third, followed by the fourth (which in this case serves as a termination character). The first line shows the complete interval, and then we successively zoom in on subranges which are subdivided in the same proportions. It's based on text in <a href="https://en.wikipedia.org/wiki/Arithmetic_encoding" class="extiw" title="en:Arithmetic encoding">en:Arithmetic encoding</a>.
<a href="//commons.wikimedia.org/wiki/User:Dcoetzee" title="User:Dcoetzee">Dcoetzee</a>
<span class="int-own-work" lang="en">Own work</span>