Skip to main navigation Skip to search Skip to main content

Optimal Random Access and Conditional Lower Bounds for 2D Compressed Strings

  • Stony Brook University

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

1 Scopus citations

Abstract

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.

Original languageEnglish
Title of host publicationProceedings of the 2026 Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2026
EditorsKasper Green Larsen, Barna Saha
PublisherAssociation for Computing Machinery
Pages1903-1915
Number of pages13
ISBN (Electronic)9781611978971
DOIs
StatePublished - 2026
Event37th Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2026 - Vancouver, Canada
Duration: Jan 11 2026Jan 14 2026

Publication series

NameProceedings of the Annual ACM-SIAM Symposium on Discrete Algorithms
Volume2026-January
ISSN (Print)1071-9040
ISSN (Electronic)1557-9468

Conference

Conference37th Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2026
Country/TerritoryCanada
CityVancouver
Period01/11/2601/14/26

Fingerprint

Dive into the research topics of 'Optimal Random Access and Conditional Lower Bounds for 2D Compressed Strings'. Together they form a unique fingerprint.

Cite this