English

Generalization of Repetitiveness Measures for Two-Dimensional Strings

Data Structures and Algorithms 2025-05-19 v1

Abstract

The problem of detecting and measuring the repetitiveness of one-dimensional strings has been extensively studied in data compression and text indexing. Our understanding of these issues has been significantly improved by the introduction of the notion of string attractor [Kempa and Prezza, STOC 2018] and by the results showing the relationship between attractors and other measures of compressibility. When the input data are structured in a non-linear way, as in two-dimensional strings, inherent redundancy often offers an even richer source for compression. However, systematic studies on repetitiveness measures for two-dimensional strings are still scarce. In this paper we extend to two or more dimensions the main measures of complexity introduced for one-dimensional strings. We distinguish between the measures δ\delta and γ\gamma, defined in terms of the substrings of the input, and the measures gg, grlg_{rl}, and bb, which are based on copy-paste mechanisms. We study the properties and mutual relationships between these two classes and we show that the two classes become incomparable for dd-dimensional inputs as soon as d2d\geq 2. Moreover, we show that our grammar-based representation of a dd-dimensional string of size NN enables direct access to any symbol in O(logN)O(\log N) time. We also compare our measures for two-dimensional strings with the 2D Block Tree data structure [Brisaboa et al., Computer J., 2024] and provide some insights for the design of future effective two-dimensional compressors.

Keywords

Cite

@article{arxiv.2505.10680,
  title  = {Generalization of Repetitiveness Measures for Two-Dimensional Strings},
  author = {Lorenzo Carfagna and Giovanni Manzini and Giuseppe Romana and Marinella Sciortino and Cristian Urbina},
  journal= {arXiv preprint arXiv:2505.10680},
  year   = {2025}
}

Comments

37 pages

R2 v1 2026-06-28T23:35:03.901Z