English

Towards a Definitive Compressibility Measure for Repetitive Sequences

Data Structures and Algorithms 2021-01-18 v3

Abstract

Unlike in statistical compression, where Shannon's entropy is a definitive lower bound, no such clear measure exists for the compressibility of repetitive sequences. Since statistical entropy does not capture repetitiveness, ad-hoc measures like the size zz of the Lempel--Ziv parse are frequently used to estimate it. The size bzb \le z of the smallest bidirectional macro scheme captures better what can be achieved via copy-paste processes, though it is NP-complete to compute and it is not monotonic upon symbol appends. Recently, a more principled measure, the size γ\gamma of the smallest string \emph{attractor}, was introduced. The measure γb\gamma \le b lower bounds all the previous relevant ones, yet length-nn strings can be represented and efficiently indexed within space O(γlognγ)O(\gamma\log\frac{n}{\gamma}), which also upper bounds most measures. While γ\gamma is certainly a better measure of repetitiveness than bb, it is also NP-complete to compute and not monotonic, and it is unknown if one can always represent a string in o(γlogn)o(\gamma\log n) space. In this paper, we study an even smaller measure, δγ\delta \le \gamma, which can be computed in linear time, is monotonic, and allows encoding every string in O(δlognδ)O(\delta\log\frac{n}{\delta}) space because z=O(δlognδ)z = O(\delta\log\frac{n}{\delta}). We show that δ\delta better captures the compressibility of repetitive strings. Concretely, we show that (1) δ\delta can be strictly smaller than γ\gamma, by up to a logarithmic factor; (2) there are string families needing Ω(δlognδ)\Omega(\delta\log\frac{n}{\delta}) space to be encoded, so this space is optimal for every nn and δ\delta; (3) one can build run-length context-free grammars of size O(δlognδ)O(\delta\log\frac{n}{\delta}), whereas the smallest (non-run-length) grammar can be up to Θ(logn/loglogn)\Theta(\log n/\log\log n) times larger; and (4) within O(δlognδ)O(\delta\log\frac{n}{\delta}) space we can not only...

Keywords

Cite

@article{arxiv.1910.02151,
  title  = {Towards a Definitive Compressibility Measure for Repetitive Sequences},
  author = {Tomasz Kociumaka and Gonzalo Navarro and Nicola Prezza},
  journal= {arXiv preprint arXiv:1910.02151},
  year   = {2021}
}
R2 v1 2026-06-23T11:35:03.212Z