Space-Efficient Re-Pair Compression
Philip Bille, Inge Li G{\o}rtz, Nicola Prezza

TL;DR
This paper introduces two space-efficient algorithms for Re-Pair grammar compression, significantly reducing working space while maintaining expected linear or near-linear time performance.
Contribution
The authors propose two novel algorithms that improve space efficiency of Re-Pair compression, with one achieving near-linear time and minimal extra space.
Findings
First algorithm runs in expected O(n/ε) time with (1+ε)n + √n space.
Second algorithm runs in expected O(n log n) time with n + √n space.
Both algorithms outperform previous solutions in space while maintaining efficiency.
Abstract
Re-Pair is an effective grammar-based compression scheme achieving strong compression rates in practice. Let , , and be the text length, alphabet size, and dictionary size of the final grammar, respectively. In their original paper, the authors show how to compute the Re-Pair grammar in expected linear time and words of working space on top of the text. In this work, we propose two algorithms improving on the space of their original solution. Our model assumes a memory word of bits and a re-writable input text composed by such words. Our first algorithm runs in expected time and uses words of space on top of the text for any parameter chosen in advance. Our second algorithm runs in expected time and improves the space to…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
