I am trying to work out how to estimate the cost in bits for encoding a bitmask using arithmetic encoding.
For example, I have an array of 4096 bits. Only 30 of which can be set at any given time, so the probability table looks like the following...
| flag | states | probability |
|---|---|---|
| 0 | 4066 | 0.993 |
| 1 | 30 | 0.007 |
Assuming a non adaptive model how does one estimate the cost in bits of encoding the above array?
I have searched for the last couple of days and haven't found a way to do this.