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

多项式变换下的模式匹配

Pattern Matching under Polynomial Transformation

Ayelet Butman, Peter Clifford, Raphael Clifford, Markus Jalsenius, Noa Lewenstein, Benny Porat, Ely Porat, Benjamin Sach

摘要:

我们考虑一类模式匹配问题,其中在每个对齐处应用归一化变换。规范化模式匹配在图像处理和音乐信息处理等领域中起着关键作用,在这些领域中,通常对输入应用特定的变换。通过考虑输入的多项式变换类,我们为新老问题提供了快速算法和第一下界。给定一个模式的长度为m和一个较长的文本长度为n,其中两者都被假定为只包含整数值,我们首先显示O(n log m)的时间算法模式匹配下的线性变换,即使在输入中出现的符号。然后,我们将展示如何将该技术扩展到任意次数的多项式变换。接下来我们考虑在多项式变换下求最小汉明距离的问题。我们证明了,对于任何n>0,不可能存在一个O(n m^(1-n))时间的算法添加剂和线性变换的条件下,经典的3SUM问题的硬度。最后,我们考虑一个版本的汉明距离问题下添加剂变换与一个约束k上的最大距离,需要报告。我们给出了一个确定性的O(nk log k)时间的解决方案,然后我们通过仔细使用随机化O(n sqrt(k log k)log n)时间足够小的k。我们的随机化解决方案以高概率在每个位置输出正确答案。

英文摘要:

We consider a class of pattern matching problems where a normalising transformation is applied at every alignment. Normalised pattern matching plays a key role in fields as diverse as image processing and musical information processing where application specific transformations are often applied to the input. By considering the class of polynomial transformations of the input, we provide fast algorithms and the first lower bounds for both new and old problems. Given a pattern of length m and a longer text of length n where both are assumed to contain integer values only, we first show O(n log m) time algorithms for pattern matching under linear transformations even when wildcard symbols can occur in the input. We then show how to extend the technique to polynomial transformations of arbitrary degree. Next we consider the problem of finding the minimum Hamming distance under polynomial transformation. We show that, for any epsilon>0, there cannot exist an O(n m^(1-epsilon)) time algorithm for additive and linear transformations conditional on the hardness of the classic 3SUM problem. Finally, we consider a version of the Hamming distance problem under additive transformations with a bound k on the maximum distance that need be reported. We give a deterministic O(nk log k) time solution which we then improve by careful use of randomisation to O(n sqrt(k log k) log n) time for sufficiently small k. Our randomised solution outputs the correct answer at every position with high probability.

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

↑