Counting on General Run-Length Grammars
Data Structures and Algorithms
2025-01-30 v4
Abstract
We introduce a data structure for counting pattern occurrences in texts compressed with any run-length context-free grammar. Our structure uses space proportional to the grammar size and counts the occurrences of a pattern of length in a text of length in time , for any constant chosen at indexing time. This is the first solution to an open problem posed by Christiansen et al.~[ACM TALG 2020] and enhances our abilities for computation over compressed data; we give an example application.
Cite
@article{arxiv.2406.00221,
title = {Counting on General Run-Length Grammars},
author = {Gonzalo Navarro and Alejandro Pacheco},
journal= {arXiv preprint arXiv:2406.00221},
year = {2025}
}