arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1507.07080cs.DS
收藏

范围前置器与Lempel-Ziv解析

Range Predecessor and Lempel-Ziv Parsing

Djamal Belazzougui, Simon J. Puglisi

摘要:

字符串的Lempel-Ziv分析(简称LZ 77)是数据压缩和字符串处理中最重要和最广泛使用的算法工具之一。我们表明,Lempel-Ziv分析的长度$n$字符串的大小$σ$的字母表可以计算在$O(n\log\logσ)$时间($O(n)$时间,如果我们允许随机化)使用$O(n\logσ)$位的工作空间,也就是说,使用的空间成比例的输入字符串的位。以前使用$O(n\logσ)$空间的最快算法需要$O(n(\logσ+\log\log n))$时间。我们还考虑了问题的最右边的重要变体,其目标是将解析的每个短语与输入字符串中最近出现的短语相关联。我们在$O(n(1 + (\logσ/\sqrt{\log n}))$时间内解决这个问题,使用与上面相同的工作空间。以前最右边解析的最佳解决方案使用$O(n(1+\logσ/\log\log n))$时间和$O(n\log n)$空间。作为奖励,在我们的解决方案中,最右边的解析,我们提供了一个更快的建设方法,有效的二维正交范围报告,这是独立的利益。

英文摘要:

The Lempel-Ziv parsing of a string (LZ77 for short) is one of the most important and widely-used algorithmic tools in data compression and string processing. We show that the Lempel-Ziv parsing of a string of length $n$ on an alphabet of size $σ$ can be computed in $O(n\log\logσ)$ time ($O(n)$ time if we allow randomization) using $O(n\logσ)$ bits of working space; that is, using space proportional to that of the input string in bits. The previous fastest algorithm using $O(n\logσ)$ space takes $O(n(\logσ+\log\log n))$ time. We also consider the important rightmost variant of the problem, where the goal is to associate with each phrase of the parsing its most recent occurrence in the input string. We solve this problem in $O(n(1 + (\logσ/\sqrt{\log n}))$ time, using the same working space as above. The previous best solution for rightmost parsing uses $O(n(1+\logσ/\log\log n))$ time and $O(n\log n)$ space. As a bonus, in our solution for rightmost parsing we provide a faster construction method for efficient 2D orthogonal range reporting, which is of independent interest.

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

↑