# Computing NP-hard Repetitiveness Measures via MAX-SAT

arXiv: https://arxiv.org/abs/2207.02571 · HTML: https://mlsanity.com/paper/2207.02571/

## Key facts

- Cited by 1 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 6 Jul 2022.

## Built on by (most cited first, 1 of 1)

- [Asymptotically Smaller Encodings for Graph Problems and Scheduling](https://mlsanity.com/paper/2506.14042/) (2025)

## Abstract (arXiv)

Repetitiveness measures reveal profound characteristics of datasets, and give rise to compressed data structures and algorithms working in compressed space. Alas, the computation of some of these measures is NP-hard, and straight-forward computation is infeasible for datasets of even small sizes. Three such measures are the smallest size of a string attractor, the smallest size of a bidirectional macro scheme, and the smallest size of a straight-line program. While a vast variety of implementations for heuristically computing approximations exist, exact computation of these measures has received little to no attention. In this paper, we present MAX-SAT formulations that provide the first non-trivial implementations for exact computation of smallest string attractors, smallest bidirectional macro schemes, and smallest straight-line programs. Computational experiments show that our implementations work for texts of length up to a few hundred for straight-line programs and bidirectional macro schemes, and texts even over a million for string attractors.
