Content deleted Content added
Stupefaction (talk | contribs) |
|||
Line 25:
=== Adding New Contexts ===
DMC as described above is equivalent to an order-1 context model. However, it is normal to add longer contexts to improve compression. If the current context is A, and the next context B would drop bits on the left, then DMC may add (clone) a new context C from B. C represents the same context as A after appending one bit on the right as with B, but without dropping any bits on the left. The link from A will thus be moved from B to point to C. B and C will both make the same prediction, and both will point to the same pair of next states. The total count, n = n<sub>0</sub> + n<sub>1</sub> for C will be equal to the count n<sub>x</sub> for A (for input bit x), and that count will be subtracted from B.
For example, suppose that state A represents the context 11111. On input bit 0, it transitions to state B representing context 110, obtained by dropping 3 bits on the left. In context A, there have been 4 zero bits and some number of one bits. In context B, there have been 3 zeros and 7 ones (n = 10), which predicts p<sub>1</sub> = 0.7.
|