来自SLP的空间高效转换
Space-efficient conversions from SLPs
AI总结:
本研究提出多种空间高效的转换算法,可在低空间复杂度下从直线程序SLP构建LZ解析和最优大小的局部一致语法LCG,还能从LCG构建LZ解析,所有结果高概率成立。
摘要:
我们提出了若干算法:给定一个含$g$条规则、仅生成文本$T[1..n]$的直线程序(straight-line program, SLP),能在$O(g)$空间内构建$T$的Lempel-Ziv(LZ)解析(含$z$个短语),时间复杂度为$O(n\log^2 n)$或$O(gz\log^2(n/z))$。我们还展示了如何在$O(g+g_{lc})$空间、$O(n\log g)$时间内,从SLP构建大小最优为$g_{lc}=O(δ\log\frac{n}{δ})$的局部一致语法(locally consistent grammar, LCG),其中$δ$是$T$的子串复杂度度量。最后,我们展示了如何从该LCG在$O(g_{lc})$空间、$O(z\log^2 n \log^2(n/z))$时间内构建$T$的LZ解析。所有结果均以高概率成立。
英文摘要:
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(n\log^2 n)$ or in time $O(gz\log^2(n/z))$. We also show how to build a locally consistent grammar (LCG) of optimal size $g_{lc} = O(δ\log\frac{n}δ)$ from the SLP within $O(g+g_{lc})$ space and in $O(n\log 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(g_{lc})$ space and in time $O(z\log^2 n \log^2(n/z))$. All our results hold with high probability.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。