Space-efficient conversions from SLPs
Abstract
We give algorithms that, given a straight-line program (SLP) with g rules that generates (only) a text T [1..n], builds within O(g) space the Lempel-Ziv (LZ) parse of T (of z phrases) in time O(n2 n) or in time O(gz2(n/z)). We also show how to build a locally consistent grammar (LCG) of optimal size glc = O(δnδ) from the SLP within O(g+glc) space and in O(n g) time, where δ is the substring complexity measure of T. Finally, we show how to build the LZ parse of T from such a LCG within O(glc) space and in time O(z2 n 2(n/z)). All our results hold with high probability.
Turn this paper into a full lesson
ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.