Efficient Lempel-Ziv Prediction with the Run-Length BWT
Ohad Avnery
Key points
From the paper's conclusion- We then introduce the Lempel-Ziv Majority (LZM) predictor, which has the same mistake bound and update time, and predicts in $O(1)$ time independently of $\sigma$.
Abstract
Lempel-Ziv Plurality (LZP) is an algorithm of Kosoy that predicts the next symbol of a string by using its Lempel-Ziv factorization, and makes at most $O(z\log n)$ mistakes on every string of length $n$ with $z$ LZ77 phrases. We give efficient online implementations of LZP and of a new variant of it. Our first implementation maintains a run-length encoded Burrows-Wheeler transform (RLBWT) of the reversed history. It implements LZP, uses $O(z\log z\log^2 n)$ bits, and has worst-case update and prediction times $O(\log z+\log\log n)$ and $O(\sigma(\log z+\log\log n))$, respectively, where $\sigma$ is the size of the alphabet. This is an exponential improvement over Kosoy's implementation, whose update time is $O(z\log^7 n)$. We then introduce the Lempel-Ziv Majority (LZM) predictor, which has the same mistake bound and update time, and predicts in $O(1)$ time independently of $\sigma$. These two predictors accept new symbols at any time, without knowing the alphabet in advance. For an alphabet known in advance, a different data structure gives $O(\sigma(1+\log z/\log\log n))$ time per symbol, which is constant when $\sigma=O(1)$ and $z=\mathrm{polylog}(n)$.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Copying along Arithmetic Progressions Cannot Simulate Interleaving with Polylogarithmic LossarXiv · 2026
- Tight Logarithmic Separations between LZ77 and LZRRarXiv · 2026
- On the Adaptive Covering Complexity of Strings: Unifying Relative and Self-Referential CompressionarXiv · 2026
- Accelerating String Comparison in RLZ Compressed Sequences via LCE JumpsbioRxiv · 2026
- Efficient Grammar Compression via RLZ-Based RePairDROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · 2026
- Polynomial-Time Minimax Prediction for Stationary Renewal ProcessesarXiv · 2026