English

Sensitivity of string compressors and repetitiveness measures

Data Structures and Algorithms 2023-02-10 v6

Abstract

The sensitivity of a string compression algorithm CC asks how much the output size C(T)C(T) for an input string TT can increase when a single character edit operation is performed on TT. This notion enables one to measure the robustness of compression algorithms in terms of errors and/or dynamic changes occurring in the input string. In this paper, we analyze the worst-case multiplicative sensitivity of string compression algorithms, which is defined by maxTΣn{C(T)/C(T):ed(T,T)=1}\max_{T \in \Sigma^n}\{C(T')/C(T) : ed(T, T') = 1\}, where ed(T,T)ed(T, T') denotes the edit distance between TT and TT'. For the most common versions of the Lempel-Ziv 77 compressors, we prove that the worst-case multiplicative sensitivity is upper bounded by a small constant, and give matching lower bounds. We generalize these results to the smallest bidirectional scheme bb. In addition, we show that the sensitivity of a grammar-based compressor called GCIS is also a small constant. Further, we extend the notion of the worst-case sensitivity to string repetitiveness measures such as the smallest string attractor size γ\gamma and the substring complexity δ\delta, and show that the worst-case sensitivity of δ\delta is also a small constant. These results contrast with the previously known related results such that the size z78z_{\rm 78} of the Lempel-Ziv 78 factorization can increase by a factor of Ω(n1/4)\Omega(n^{1/4}) [Lagarde and Perifel, 2018], and the number rr of runs in the Burrows-Wheeler transform can increase by a factor of Ω(logn)\Omega(\log n) [Giuliani et al., 2021] when a character is prepended to an input string of length nn. By applying our sensitivity bounds of δ\delta or the smallest grammar to known results (c.f. [Navarro, 2021]), some non-trivial upper bounds for the sensitivities of important string compressors and repetitiveness measures including γ\gamma, rr, LZ-End, RePair, LongestMatch, and AVL-grammar are derived.

Keywords

Cite

@article{arxiv.2107.08615,
  title  = {Sensitivity of string compressors and repetitiveness measures},
  author = {Tooru Akagi and Mitsuru Funakoshi and Shunsuke Inenaga},
  journal= {arXiv preprint arXiv:2107.08615},
  year   = {2023}
}

Comments

The journal version is superceded by this version (we added almost tight bounds for Bisection with insertions and deletions)

R2 v1 2026-06-24T04:18:29.520Z