English

The 2-Attractor Problem is NP-Complete

Computational Complexity 2024-02-08 v3

Abstract

A kk-attractor is a combinatorial object unifying dictionary-based compression. It allows to compare the repetitiveness measures of different dictionary compressors such as Lempel-Ziv 77, the Burrows-Wheeler transform, straight line programs and macro schemes. For a string TΣnT \in \Sigma^n, the kk-attractor is defined as a set of positions Γ[1,n]\Gamma \subseteq [1,n], such that every distinct substring of length at most kk is covered by at least one of the selected positions. Thus, if a substring occurs multiple times in TT, one position suffices to cover it. A 1-attractor is easily computed in linear time, while Kempa and Prezza [STOC 2018] have shown that for k3k \geq 3, it is NP-complete to compute the smallest kk-attractor by a reduction from kk-set cover. The main result of this paper answers the open question for the complexity of the 2-attractor problem, showing that the problem remains NP-complete. Kempa and Prezza's proof for k3k \geq 3 also reduces the 2-attractor problem to the 2-set cover problem, which is equivalent to edge cover, but that does not fully capture the complexity of the 2-attractor problem. For this reason, we extend edge cover by a color function on the edges, yielding the colorful edge cover problem. Any edge cover must then satisfy the additional constraint that each color is represented. This extension raises the complexity such that colorful edge cover becomes NP-complete while also more precisely modeling the 2-attractor problem. We obtain a reduction showing kk-attractor to be NP-complete and APX-hard for any k2k \geq 2.

Keywords

Cite

@article{arxiv.2304.06523,
  title  = {The 2-Attractor Problem is NP-Complete},
  author = {Janosch Fuchs and Philip Whittington},
  journal= {arXiv preprint arXiv:2304.06523},
  year   = {2024}
}
R2 v1 2026-06-28T10:04:34.817Z