Balancing Run-Length Straight-Line Programs
Abstract
It was recently proved that any SLP generating a given string w can be transformed in linear time into an equivalent balanced SLP of the same asymptotic size. We show that this result also holds for RLSLPs, which are SLPs extended with run-length rules of the form Aâ Bt for t> 2, deriving exp(A) = exp(B) t. An immediate consequence is the simplification of the algorithm for extracting substrings of an RLSLP-compressed string. We also show that several problems like answering RMQs and computing Karp-Rabin fingerprints on substrings can be solved in O(grl) space and O(log n) time, grl being the size of the smallest RLSLP generating the string, of length n. We extend the result to solving more general operations on string ranges, in O(grl) space and O(log n) applications of the operation. In general, the smallest RLSLP can be asymptotically smaller than the smallest SLP by up to an O(log n) factor, so our results can make a difference in terms of the space needed for computing these operations efficiently for some string families.
Más información
| Título según WOS: | ID WOS:001344663500009 Not found in local WOS DB |
| Título según SCOPUS: | Balancing Run-Length Straight-Line Programs |
| Título de la Revista: | Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) |
| Volumen: | 13617 |
| Editorial: | Springer Science and Business Media Deutschland GmbH |
| Fecha de publicación: | 2022 |
| Página final: | 131 |
| Idioma: | English |
| DOI: |
10.1007/978-3-031-20643-6_9 |
| Notas: | ISI, SCOPUS |