TY - GEN
T1 - Optimal Random Access and Conditional Lower Bounds for 2D Compressed Strings
AU - De, Rajat
AU - Kempa, Dominik
N1 - Publisher Copyright:
© 2026 Association for Computing Machinery. All rights reserved.
PY - 2026
Y1 - 2026
N2 - Compressed indexing is a powerful technique that enables efficient querying over data stored in compressed form, significantly reducing memory usage and often accelerating computation. While extensive progress has been made for one-dimensional strings, many real-world datasets (such as images, maps, and adjacency matrices) are inherently two-dimensional. Unfortunately, naively applying 1D techniques to 2D data leads to suboptimal results, as fundamental structural repetition is lost during linearization. This motivates the development of native 2D compressed indexing methods that preserve both compression and query efficiency. We present three contributions that advance the theory of compressed indexing for 2D strings: (1) We design the first data structure that supports optimal-time random access to a 2D string compressed by a 2D grammar. Specifically, for a 2D string T ∈ Σr×c compressed by a 2D grammar G and any constant ϵ > 0, we achieve O ( log n/log log n ) query time and O(|G| · log2+ϵ n) space, where n = max(r, c); (2) We prove conditional lower bounds for pattern matching over 2D-grammar compressed strings. Assuming the Orthogonal Vectors Conjecture, no algorithm can solve this problem in time O(|G|2−ϵ · |P |O(1)) for any ϵ > 0, demonstrating a separation from the 1D case, where optimal solutions exist; (3) We show that several fundamental 2D queries, such as the 2D longest common extension, rectangle sum, and equality, cannot be supported efficiently under hardness assumptions for rank and symbol occurrence queries on 1D grammar-compressed strings. This provides the first evidence connecting the complexity of 2D compressed indexing to long-standing open problems in the 1D setting.
AB - Compressed indexing is a powerful technique that enables efficient querying over data stored in compressed form, significantly reducing memory usage and often accelerating computation. While extensive progress has been made for one-dimensional strings, many real-world datasets (such as images, maps, and adjacency matrices) are inherently two-dimensional. Unfortunately, naively applying 1D techniques to 2D data leads to suboptimal results, as fundamental structural repetition is lost during linearization. This motivates the development of native 2D compressed indexing methods that preserve both compression and query efficiency. We present three contributions that advance the theory of compressed indexing for 2D strings: (1) We design the first data structure that supports optimal-time random access to a 2D string compressed by a 2D grammar. Specifically, for a 2D string T ∈ Σr×c compressed by a 2D grammar G and any constant ϵ > 0, we achieve O ( log n/log log n ) query time and O(|G| · log2+ϵ n) space, where n = max(r, c); (2) We prove conditional lower bounds for pattern matching over 2D-grammar compressed strings. Assuming the Orthogonal Vectors Conjecture, no algorithm can solve this problem in time O(|G|2−ϵ · |P |O(1)) for any ϵ > 0, demonstrating a separation from the 1D case, where optimal solutions exist; (3) We show that several fundamental 2D queries, such as the 2D longest common extension, rectangle sum, and equality, cannot be supported efficiently under hardness assumptions for rank and symbol occurrence queries on 1D grammar-compressed strings. This provides the first evidence connecting the complexity of 2D compressed indexing to long-standing open problems in the 1D setting.
UR - https://www.scopus.com/pages/publications/105033708454
U2 - 10.1137/1.9781611978971.69
DO - 10.1137/1.9781611978971.69
M3 - Conference contribution
AN - SCOPUS:105033708454
T3 - Proceedings of the Annual ACM-SIAM Symposium on Discrete Algorithms
SP - 1903
EP - 1915
BT - Proceedings of the 2026 Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2026
A2 - Larsen, Kasper Green
A2 - Saha, Barna
PB - Association for Computing Machinery
T2 - 37th Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2026
Y2 - 11 January 2026 through 14 January 2026
ER -