Towards a Definitive Compressibility Measure for Repetitive Sequences

preprint2021arXivOpen access

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 b≤zb \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 γγ of the smallest string \emph{attractor}, was introduced. The measure γ≤bγ\le b lower bounds all the previous relevant ones, yet length-nn strings can be represented and efficiently indexed within space O(γlog⁡nγ)O(γ\log\frac{n}γ), which also upper bounds most measures. While γγ 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(γlog⁡n)o(γ\log n) space. In this paper, we study an even smaller measure, δ≤γδ\le γ, which can be computed in linear time, is monotonic, and allows encoding every string in O(δlog⁡nδ)O(δ\log\frac{n}δ) space because z=O(δlog⁡nδ)z = O(δ\log\frac{n}δ). We show that δδ better captures the compressibility of repetitive strings. Concretely, we show that (1) δδ can be strictly smaller than γγ, by up to a logarithmic factor; (2) there are string families needing Ω(δlog⁡nδ)Ω(δ\log\frac{n}δ) space to be encoded, so this space is optimal for every nn and δδ; (3) one can build run-length context-free grammars of size O(δlog⁡nδ)O(δ\log\frac{n}δ), whereas the smallest (non-run-length) grammar can be up to Θ(log⁡n/log⁡log⁡n)Θ(\log n/\log\log n) times larger; and (4) within O(δlog⁡nδ)O(δ\log\frac{n}δ) space we can not only...

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.