Back to Search Start Over

Efficient and Compact Representations of Prefix Codes.

Authors :
Gagie, Travis
Navarro, Gonzalo
Nekrich, Yakov
Ordonez, Alberto
Source :
IEEE Transactions on Information Theory; Sep2015, Vol. 61 Issue 9, p4999-5011, 13p
Publication Year :
2015

Abstract

Most of the attention in statistical compression is given to the space used by the compressed sequence, a problem completely solved with optimal prefix codes. However, in many applications, the storage space used to represent the prefix code itself can be an issue. In this paper, we introduce and compare several techniques to store prefix codes. Let N be the sequence length and n be the alphabet size. Then, a naive storage of an optimal prefix code uses \mathcal O \hspace -.5ex \left ( n\log n \right ) bits. Our first technique shows how to use \mathcal O \hspace -.5ex \left ( n\log \log (N/n) \right ) bits to store the optimal prefix code. Then, we introduce an approximate technique that, for any 0<\epsilon <1/2 , takes {\mathcal {O} \hspace {-.5ex} \left ({ {n \log \log (1 / \epsilon )} }\right )} bits to store a prefix code with an average codeword length within an additive \epsilon of the minimum. Finally, a second approximation takes, for any constant c > 1 , \vphantom {\sum ^{R^{R}}}\mathcal {O}(n^{1 / c} \log n) bits to store a prefix code with an average codeword length at most c$ times the minimum. In all cases, our data structures allow encoding and decoding of any symbol in {\mathcal {O} \hspace {-.5ex} \left ({ {1} }\right )} time. We experimentally compare our new techniques with the state of the art, showing that we achieve sixfold-to-eightfold space reductions, at the price of a slower encoding (2.5–8 times slower) and decoding (12–24 times slower). The approximations further reduce this space and improve the time significantly, up to recovering the speed of classical implementations, for a moderate penalty in the average code length. As a byproduct, we compare various heuristic, approximate, and optimal algorithms to generate length-restricted codes, showing that the optimal ones are clearly superior and practical enough to be implemented. [ABSTRACT FROM PUBLISHER]

Details

Language :
English
ISSN :
00189448
Volume :
61
Issue :
9
Database :
Complementary Index
Journal :
IEEE Transactions on Information Theory
Publication Type :
Academic Journal
Accession number :
108970805
Full Text :
https://doi.org/10.1109/TIT.2015.2452252