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

近似LZW压缩模式匹配中的O(nm)拍

Beating O(nm) in approximate LZW-compressed pattern matching

Pawel Gawrychowski, Damian Straszak

摘要:

给定一个LZW/LZ 78压缩文本,我们希望找到长度为m的给定模式的近似出现。我们的目标是实现时间复杂度,这取决于文本的压缩表示的大小n,而不是其长度。我们考虑近似匹配的两个具体定义,即汉明距离和编辑距离,并展示如何分别实现O(nm^0.5k^2)和O(nm^0.5k^3)的运行时间,其中k是距离的界限。这两种算法都只使用线性空间。即使对于非常小的k值,以前已知的最佳解决方案也需要O(nm)时间。我们的主要贡献是应用一个基于属性的参数的方式,是计算有效的,即使我们需要操作的压缩表示的字符串,而以前的解决方案是基于动态规划,或黑盒应用程序的工具开发的未压缩字符串。

英文摘要:

Given an LZW/LZ78 compressed text, we want to find an approximate occurrence of a given pattern of length m. The goal is to achieve time complexity depending on the size n of the compressed representation of the text instead of its length. We consider two specific definitions of approximate matching, namely the Hamming distance and the edit distance, and show how to achieve O(nm^0.5k^2) and O(nm^0.5k^3) running time, respectively, where k is the bound on the distance. Both algorithms use just linear space. Even for very small values of k, the best previously known solutions required O(nm) time. Our main contribution is applying a periodicity-based argument in a way that is computationally effective even if we need to operate on a compressed representation of a string, while the previous solutions were either based on a dynamic programming, or a black-box application of tools developed for uncompressed strings.

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

↑