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

基于全对最短路径的二进制混叠模式匹配

Binary Jumbled Pattern Matching via All-Pairs Shortest Paths

Danny Hermelin, Gad M. Landau, Yuri Rabinovich, Oren Weimann

摘要:

在二进制混杂的模式匹配中,我们希望预处理二进制串$S$,以便回答查询$(i,j)$,该查询要求$S$的子串,其大小为$i$并且恰好具有$j$ 1位。这个问题自然地推广到节点标记的树和图,通过替换“子串”与“连通子图”。在本文中,我们给出了一个${n^2}/{2^{Ω(\log n/\log \log n)^{1/2}}}$时间解决方案的字符串和树。这种奇怪的时间复杂度比任何多对数因子都更能改善现有的$O(n^2/\log^2 n)$解决方案。它起源于最近的开创性算法威廉姆斯的最小加矩阵乘法。我们通过给出从树到串的黑箱约简得到了结果。然后,这与从字符串到最小加矩阵乘法的减少相结合。

英文摘要:

In binary jumbled pattern matching we wish to preprocess a binary string $S$ in order to answer queries $(i,j)$ which ask for a substring of $S$ that is of size $i$ and has exactly $j$ 1-bits. The problem naturally generalizes to node-labeled trees and graphs by replacing "substring" with "connected subgraph". In this paper, we give an ${n^2}/{2^{Ω(\log n/\log \log n)^{1/2}}}$ time solution for both strings and trees. This odd-looking time complexity improves the state of the art $O(n^2/\log^2 n)$ solutions by more than any poly-logarithmic factor. It originates from the recent seminal algorithm of Williams for min-plus matrix multiplication. We obtain the result by giving a black box reduction from trees to strings. This is then combined with a reduction from strings to min-plus matrix multiplications.

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

↑