paper

Space-efficient conversions from SLPs

arXiv:2212.02327

Abstract

We give algorithms that, given a straight-line program (SLP) with rules that generates (only) a text , builds within space the Lempel-Ziv (LZ) parse of (of phrases) in time or in time . We also show how to build a locally consistent grammar (LCG) of optimal size from the SLP within space and in time, where is the substring complexity measure of . Finally, we show how to build the LZ parse of from such a LCG within space and in time . All our results hold with high probability.