arXivDaily arXiv每日学术速递 周一至周五更新
北美退伍军人节(Veterans Day),12 日无更新
arXiv 1504.06647cs.DS
收藏

小空间多模式匹配逼近LZ77

Approximating LZ77 via Small-Space Multiple-Pattern Matching

Johannes Fischer, Travis Gagie, Paweł Gawrychowski, Tomasz Kociumaka

摘要:

我们将Karp-Rabin字符串匹配推广到处理$\mathcal{O}(n \log n + m)$时间和$\mathcal{O}(s)$空间中的多个模式,其中$n$是文本的长度,$m$是$s$模式的总长度,以高概率返回正确答案。作为我们的算法的一个主要应用,我们展示了如何近似LZ 77解析长度为$n$的字符串。如果最佳解析由$z$短语组成,则对于任何$\varepsilon\in (0,1]$,仅使用$\mathcal{O}(z)$工作空间,我们可以在$\mathcal{O}(\varepsilon^{-1}n\log n)$时间内返回最多由$(1+\varepsilon)z$短语组成的解析。由于先前的LZ 77的准线性时间算法使用$Ω(n/\textrm{polylog }n)$空间,但是$z$在$n$中可以是指数小的,所以这些空间上的改进是实质性的。

英文摘要:

We generalize Karp-Rabin string matching to handle multiple patterns in $\mathcal{O}(n \log n + m)$ time and $\mathcal{O}(s)$ space, where $n$ is the length of the text and $m$ is the total length of the $s$ patterns, returning correct answers with high probability. As a prime application of our algorithm, we show how to approximate the LZ77 parse of a string of length $n$. If the optimal parse consists of $z$ phrases, using only $\mathcal{O}(z)$ working space we can return a parse consisting of at most $(1+\varepsilon)z$ phrases in $\mathcal{O}(\varepsilon^{-1}n\log n)$ time, for any $\varepsilon\in (0,1]$. As previous quasilinear-time algorithms for LZ77 use $Ω(n/\textrm{polylog }n)$ space, but $z$ can be exponentially small in $n$, these improvements in space are substantial.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑