|
|
|
|
|
by gliptic
720 days ago
|
|
I don't see why arithmetic coding wouldn't match this if the probabilities are suitably updated after every symbol. If you encode 8 bits, 4:4 ratio, after the first bit is encoded, either 1 or 0 has a remaining count of 3, etc. And when the count of either 0 or 1 reaches 0, the rest of the bits are known. |
|
However I can also just store 1 or 0 to indicate what's stored in the first position, using only a single bit, and the next value is inferred.