Let $S$ be a string of length $n$. In this paper we introduce the notion of \emph{string attractor}: a subset of the string's positions $[1,n]$ such that every distinct substring of $S$ has an occurrence crossing one of the attractor's elements. We first show that the minimum attractor's size yields upper-bounds to the string's repetitiveness as measured by its linguistic complexity and by the length of its longest repeated substring. We then prove that all known compressors for repetitive strings induce a string attractor whose size is bounded by their associated repetitiveness measure, and can therefore be considered as approximations of the smallest one. Using further reductions, we derive the approximation ratios of these compressors with respect to the smallest attractor and solve several open problems related to the asymptotic relations between repetitiveness measures (in particular, between the the sizes of the Lempel-Ziv factorization, the run-length Burrows-Wheeler transform, the smallest grammar, and the smallest macro scheme). These reductions directly provide approximation algorithms for the smallest string attractor. We then apply string attractors to solve efficiently a fundamental problem in the field of compressed computation: we present a universal compressed data structure for text extraction that improves existing strategies simultaneously for \emph{all} known dictionary compressors and that, by recent lower bounds, almost matches the optimal running time within the resulting space. To conclude, we consider generalizations of string attractors to labeled graphs, show that the attractor problem is NP-complete on trees, and provide a logarithmic approximation computable in polynomial time.
\emph{string attractor}的概念最近在[Prezza,2017]中引入,并在[Kempa和Prezza,2018]中进行了研究,为已知的基于字典的压缩器提供了统一的框架。字$w=w[1]w[2]\cdots w[n]$的串吸引子是位置$\{1,\ldots,n\}$的子集$Γ$,使得$w$的所有不同因子具有穿过$Γ$的元素中的至少一个的出现。虽然找到单词的最小字符串吸引子是一个NP完全问题,但在[Kempa and Prezza,2018]中已经证明,字典压缩器可以被解释为近似给定单词的最小字符串吸引子的算法。在本文中,我们将探讨字符串吸引子的概念,从组合的角度来看,集中在几个家庭的有限字。结果表明,字符串吸引子的概念可以用来定义新的工具,调查的组合性质的话。
String Representation Based on Substring Equation Systems
Joint Graduate School of Mathematics for Innovation, Kyushu University(九州大学数学创新联合研究生院);M&D Data Science Center, Institute of Integrated Research, Institute of Science Tokyo(东京科学大学综合研究所M&D数据中心)
Smallest Suffixient Sets: Effectiveness, Resilience, and Calculation
Kyushu University(九州大学);University of Chile(智利大学);Center for Biotechnology and Bioengineering (CeBiB)(生物技术与生物工程中心);University of Palermo(巴勒莫大学);University of Warsaw(华沙大学)
Smallest String Attractors and Minimal Coverage Certificates of Thue--Morse Words
University of Catania(卡塔尼亚大学);Univ Rouen Normandie, INSA Rouen Normandie, Université Le Havre Normandie, Normandie Univ(鲁昂诺曼底大学,鲁昂国立应用科学学院,勒阿弗尔诺曼底大学,诺曼底大学);University of Palermo(巴勒莫大学)
Univ. Gustave Eiffel(巴黎-塞纳大学);CNRS(法国国家科学研究中心);LIGM(图像与信号实验室);King’s College London(伦敦国王学院);Dipartimento di Matematica e Informatica, Univ. Palermo(巴勒莫大学数学与计算机科学系)