摘要 |
The present invention provides improved compression ratios for small data sets with only a minor impact of the compression ration of larger data sets by selecting a context model optimized for the size of the data set being processed. The size of the original data is determined. Based on the size, a context model is selected. The original data is compressed into the compressed data using the context model. Any number of context models may be defined and appropriate values chosen. To decompress, it is necessary to select a context model based on the size of the original data. Two ways of detecting the correct context model are described. First, the size of the original data is part of the compressed data. Alternatively, an indicator, identifying which context model was used to compress the original data, is part the compressed data.
|