English

The landscape of compressibility measures for two-dimensional data

Data Structures and Algorithms 2024-05-21 v4 Combinatorics

Abstract

In this paper we extend to two-dimensional data two recently introduced one-dimensional compressibility measures: the γ\gamma measure defined in terms of the smallest string attractor, and the δ\delta measure defined in terms of the number of distinct substrings of the input string. Concretely, we introduce the two-dimensional measures γ2D\gamma_{2D} and δ2D\delta_{2D}, as natural generalizations of γ\gamma and δ\delta, and we initiate the study of their properties. Among other things, we prove that δ2D\delta_{2D} is monotone and can be computed in linear time, and we show that, although it is still true that δ2Dγ2D\delta_{2D} \leq \gamma_{2D}, the gap between the two measures can be Ω(n)\Omega(\sqrt{n}) and therefore asymptotically larger than the gap between γ\gamma and δ\delta. To complete the scenario of two-dimensional compressibility measures, we introduce the measure b2Db_{2D} which generalizes to two dimensions the notion of optimal parsing. We prove that, somewhat surprisingly, the relationship between b2Db_{2D} and γ2D\gamma_{2D} is significantly different than in the one-dimensional case. As an application of our results we provide the first analysis of the space usage of the two-dimensional block tree introduced in [Brisaboa et al., Two-dimensional block trees, The computer Journal, 2024]. Our analysis shows that the space usage can be bounded in terms of both γ2D\gamma_{2D} and δ2D\delta_{2D}. Finally, using insights from our analysis, we design the first linear time and space algorithm for constructing the two-dimensional block tree for arbitrary matrices.

Keywords

Cite

@article{arxiv.2307.02629,
  title  = {The landscape of compressibility measures for two-dimensional data},
  author = {Lorenzo Carfagna and Giovanni Manzini},
  journal= {arXiv preprint arXiv:2307.02629},
  year   = {2024}
}
R2 v1 2026-06-28T11:23:10.100Z