Boosting Text Compression with Word-Based Statistical Encoding
- 29 September 2011
- journal article
- research article
- Published by Oxford University Press (OUP) in The Computer Journal
- Vol. 55 (1) , 111-131
Abstract
Semistatic word-based byte-oriented compressors are known to be attractive alternatives to compress natural language texts. With compression ratios around 30–35%, they allow fast direct searching of compressed text. In this article, we reveal that these compressors have even more benefits. We show that most of the state-of-the-art compressors benefit from compressing not the original text, but the compressed representation obtained by a word-based byte-oriented statistical compressor. For example, p7zip with a dense-coding preprocessing achieves even better compression ratios and much faster compression than p7zip alone. We reach compression ratios below 17% in typical large English texts, which was obtained only by the slow prediction by partial matching compressors. Furthermore, searches perform much faster if the final compressor operates over word-based compressed text. We show that typical self-indexes also profit from our preprocessing step. They achieve much better space and time performance when indexing is preceded by a compression step. Apart from using the well-known Tagged Huffman code, we present a new suffix-free Dense-Code-based compressor that compresses slightly better. We also show how some self-indexes can handle non-suffix-free codes. As a result, the compressed/indexed text requires around 35% of the space of the original text and allows indexed searches for both words and phrases.Keywords
This publication has 8 references indexed in Scilit:
- The String-to-Dictionary Matching Problem2011
- Compressed representations of sequences and full-text indexesACM Transactions on Algorithms, 2007
- Compressed full-text indexesACM Computing Surveys, 2007
- Lightweight natural language text compressionInformation Retrieval Journal, 2006
- Revisiting dictionary-based compressionSoftware: Practice and Experience, 2005
- Pattern matching in Huffman encoded textsInformation Processing & Management, 2005
- LZgrep: a Boyer-Moore string matching tool for Ziv-Lempel compressed textSoftware: Practice and Experience, 2005
- New text indexing functionalities of the compressed suffix arraysJournal of Algorithms, 2003