EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

Space-Efficient SLP Encoding for $$O(\log N)$$-Time Random Access

Akito Takasaka, Tomohiro I

Theory of Computing Systems · 2026-06 · 70 (2)

DOI: 10.1007/s00224-025-10243-w ↗

Kurz gefasst

Fachartikel in der Zeitschrift Theory of Computing Systems, online erschienen am 13.04.2026. Verfasst von Akito Takasaka und 1 weiteren Autor:innen. Die Arbeit nennt 20 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: Japan Society for the Promotion of Science, Japan Science and Technology Agency.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

A Straight-Line Program (SLP) $$\mathcal {G}$$ G for a string $$\mathcal {T}$$ T is a context-free grammar (CFG) that derives $$\mathcal {T}$$ T only, which can be considered as a compressed representation of $$\mathcal {T}$$ T . In this paper, we show how to encode $$\mathcal {G}$$ G in $$n \lceil \lg N \rceil + (n + n') \lceil \lg (n+\sigma ) \rceil + 4n - 2n' + o(n)$$ n ⌈ lg N ⌉ + ( n + n ′ ) ⌈ lg ( n + σ ) ⌉ + 4 n - 2 n ′ + o ( n ) bits to support random access queries of extracting $$\mathcal {T}[p..q]$$ T [ p . . q ] in worst-case $$O(\log N + q - p)$$ O ( log N + q - p ) time, where N is the length of $$\mathcal {T}$$ T , $$\sigma $$ σ is the alphabet size, n is the number of variables in $$\mathcal {G}$$ G and $$n' \le n$$ n ′ ≤ n is the number of symmetric centroid paths in the DAG representation for $$\mathcal {G}$$ G . The time complexity is almost optimal because Verbin and Yu [CPM 2013] proved that $$O(\log N)$$ O ( log N ) term cannot be significantly improved in general with $$\textrm{poly}(n)$$ poly ( n ) -space data structures. We also present alternative encodings that achieve the same random access time with $$n \lceil \lg N \rceil + n \lceil \lg (n+\sigma ) \rceil + 5n + n' + o(n)$$ n ⌈ lg N ⌉ + n ⌈ lg ( n + σ ) ⌉ + 5 n + n ′ + o ( n ) or $$n \lceil \lg N \rceil + n \lceil \lg (n+\sigma ) \rceil + 5n - n' + \sigma + o(n+\sigma )$$ n ⌈ lg N ⌉ + n ⌈ lg ( n + σ ) ⌉ + 5 n - n ′ + σ + o ( n + σ ) bits of space.

Förderung

  • Japan Society for the Promotion of Science
  • Japan Science and Technology Agency

Zitieren

APA

Takasaka, A., & I, T. (2026). Space-Efficient SLP Encoding for $$O(\log N)$$-Time Random Access. Theory of Computing Systems, 70(2). https://doi.org/10.1007/s00224-025-10243-w

Vancouver

Takasaka A, I T. Space-Efficient SLP Encoding for $$O(\log N)$$-Time Random Access. Theory of Computing Systems. 2026;70(2). doi:10.1007/s00224-025-10243-w

BibTeX
@article{Takasaka2026,
  author = {Takasaka, Akito and I, Tomohiro},
  title = {Space-Efficient SLP Encoding for $$O(\log N)$$-Time Random Access},
  journal = {Theory of Computing Systems},
  year = {2026},
  volume = {70},
  number = {2},
  doi = {10.1007/s00224-025-10243-w}
}
Kostenlos starten →