At the Roots of Dictionary Compression: String Attractors

10/30/2017
by   Dominik Kempa, et al.
0

A well-known fact in the field of lossless text compression is that high-order entropy is a weak model when the input contains long repetitions. Motivated by this fact, decades of research have generated myriads of so-called dictionary compressors: algorithms able to reduce the text's size by exploiting its repetitiveness. Lempel-Ziv 77 is probably one of the most successful and known tools of this kind, followed by straight-line programs, run-length Burrows-Wheeler transform, macro schemes, collage systems, and the compact directed acyclic word graph. In this paper, we show that these techniques are only different solutions to the same, elegant, combinatorial problem: to find a small set of positions capturing all distinct text's substrings. We call string attractor such a set. We first show reductions between dictionary compressors and string attractors. This gives us the approximation ratios of dictionary compressors with respect to the smallest string attractor and allows us to solve several open problems related to the asymptotic relations between the output sizes of different dictionary compressors. We then show that k-attractor problem --- that is, deciding whether a text has a size-t set of positions capturing all substrings of length at most k --- is NP-complete for k≥ 3. This, in particular, implies the NP-completeness of the full string attractor problem. We provide several approximation techniques for the smallest k-attractor, show that the problem is APX-complete for constant k, and give strong inapproximability results. To conclude, we provide matching lower- and upper- bounds for the random access problem on string attractors. Our data structure matching the lower bound is optimal also for LZ77, straight-line programs, collage systems, and macro schemes, and therefore essentially closes the random access problem for all these compressors.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
03/05/2018

String Attractors: Verification and Optimization

String attractors [STOC 2018] are combinatorial objects recently introdu...
research
03/26/2018

Universal Compressed Text Indexing

The rise of repetitive datasets has lately generated a lot of interest i...
research
11/03/2018

Optimal Rank and Select Queries on Dictionary-Compressed Text

Let γ be the size of a string attractor for a string S of length n over ...
research
04/13/2023

The 2-Attractor Problem is NP-Complete

A k-attractor is a combinatorial object unifying dictionary-based compre...
research
03/26/2018

On the Approximation Ratio of Greedy Parsings

Shannon's entropy is a clear lower bound for statistical compression. Th...
research
07/06/2022

Computing NP-hard Repetitiveness Measures via MAX-SAT

Repetitiveness measures reveal profound characteristics of datasets, and...
research
06/03/2022

L-systems for Measuring Repetitiveness*

An L-system (for lossless compression) is a CPD0L-system extended with t...

Please sign up or login with your details

Forgot password? Click here to reset