arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv cs/0604058cs.DScs.CC
收藏

在压缩文本上求解经典弦问题

Solving Classical String Problems on Compressed Texts

Yury Lifshits

摘要:

在这里,我们研究字符串问题的复杂性作为一个程序的大小,产生输入的函数。我们考虑直线程序(SLP),因为所有的算法SLP生成的字符串可以应用于处理LZ压缩文本。主要结果是一个新的算法的模式匹配时,一个文本T和一个模式P的SLP(所谓的完全压缩模式匹配问题)。我们展示了如何找到第一次出现,计数所有出现,检查任何给定的位置是否在时间O(n^2m)内出现。这里m,n是生成相应P和T的直线程序的大小。然后,我们提出了多项式算法计算指纹表和压缩表示的所有覆盖(第一次),并找到一个给定的压缩字符串的周期(我们的算法比以前已知的更快)。另一方面,我们证明了计算两个SLP生成的字符串之间的汉明距离是NP-和coNP-困难的。

英文摘要:

Here we study the complexity of string problems as a function of the size of a program that generates input. We consider straight-line programs (SLP), since all algorithms on SLP-generated strings could be applied to processing LZ-compressed texts. The main result is a new algorithm for pattern matching when both a text T and a pattern P are presented by SLPs (so-called fully compressed pattern matching problem). We show how to find a first occurrence, count all occurrences, check whether any given position is an occurrence or not in time O(n^2m). Here m,n are the sizes of straight-line programs generating correspondingly P and T. Then we present polynomial algorithms for computing fingerprint table and compressed representation of all covers (for the first time) and for finding periods of a given compressed string (our algorithm is faster than previously known). On the other hand, we show that computing the Hamming distance between two SLP-generated strings is NP- and coNP-hard.

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

↑