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

基于快速矩阵乘法的弹性-退化串匹配

Elastic-Degenerate String Matching via Fast Matrix Multiplication

Giulia Bernardini, Paweł Gawrychowski, Nadia Pisanti, Solon P. Pissis, Giovanna Rosone

摘要:

弹性简并(ED)弦是总长度为$N$的弦的$n$集合的序列,其最近被提出来模拟一组相似序列。ED字符串匹配(EDSM)问题是在ED文本中找到长度为$m$的模式的所有出现。用于EDSM的$O(nm^{1.5}\sqrt{\log m}+N)$时间算法是已知的[Aoyama等人,CPM 2018]。关于这个问题的先前工作中的标准假设是$N$实质上大于$n$和$m$,因此我们希望对前者具有线性依赖性。在这个假设下,自然的开放问题是我们是否可以降低时间复杂度的1.5指数,类似于相关的(但据我们所知,不等价)断字问题[Backurs and Indyk,FOCS 2016]。我们的出发点是EDSM的条件下界。我们使用流行的组合布尔矩阵乘法(BMM)猜想,说明BMM没有真正的亚立方组合算法[Abboud和Williams,FOCS 2014]。通过设计一个适当的减少,我们表明,一个组合算法解决EDSM问题的$O(nm^{1.5-e}+N)$时间,任何$e>0$,驳斥了这一猜想。我们的减少应该被理解为减少指数需要快速矩阵乘法的指示。字符串周期性和快速傅立叶变换是字符串算法中的两个标准工具。我们的主要技术贡献是,我们成功地将这些工具与快速矩阵乘法结合起来,设计了一个非组合的$\tilde{O}(nm^{ω-1}+N)$时间算法EDSM,其中$ω$表示矩阵乘法指数。据我们所知,我们是第一个将这些工具结合起来的公司。特别地,使用$ω<2.373$ [Le Gall,ISSAC 2014; Williams,STOC 2012]的事实,我们获得了EDSM的$O(nm^{1.373}+N)$时间算法。

英文摘要:

An elastic-degenerate (ED) string is a sequence of $n$ sets of strings of total length $N$, which was recently proposed to model a set of similar sequences. The ED string matching (EDSM) problem is to find all occurrences of a pattern of length $m$ in an ED text. An $O(nm^{1.5}\sqrt{\log m}+N)$-time algorithm for EDSM is known [Aoyama et al., CPM 2018]. The standard assumption in the prior work on this question is that $N$ is substantially larger than both $n$ and $m$, and thus we would like to have a linear dependency on the former. Under this assumption, the natural open problem is whether we can decrease the 1.5 exponent in the time complexity, similarly as in the related (but, to the best of our knowledge, not equivalent) word break problem [Backurs and Indyk, FOCS 2016]. Our starting point is a conditional lower bound for EDSM. We use the popular combinatorial Boolean Matrix Multiplication (BMM) conjecture stating that there is no truly subcubic combinatorial algorithm for BMM [Abboud and Williams, FOCS 2014]. By designing an appropriate reduction we show that a combinatorial algorithm solving the EDSM problem in $O(nm^{1.5-e}+N)$ time, for any $e>0$, refutes this conjecture. Our reduction should be understood as an indication that decreasing the exponent requires fast matrix multiplication. String periodicity and fast Fourier transform are two standard tools in string algorithms. Our main technical contribution is that we successfully combine these tools with fast matrix multiplication to design a non-combinatorial $\tilde{O}(nm^{ω-1}+N)$-time algorithm for EDSM, where $ω$ denotes the matrix multiplication exponent. To the best of our knowledge, we are the first to combine these tools. In particular, using the fact that $ω<2.373$ [Le Gall, ISSAC 2014; Williams, STOC 2012], we obtain an $O(nm^{1.373}+N)$-time algorithm for EDSM.

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

↑