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

树和树型结构上的二进制混淆模式匹配

Binary Jumbled Pattern Matching on Trees and Tree-Like Structures

Travis Gagie, Danny Hermelin, Gad M. Landau, Oren Weimann

摘要:

二进制混杂模式匹配要求预处理二进制字符串$S$,以便回答查询$(i,j)$,该查询要求长度为$i$并且恰好具有$j$ 1位的$S$的子串。这个问题自然地推广到顶点标记树和图,通过替换“子串”与“连通子图”。在本文中,我们给出了一个$O(n^2 / \log^2 n)$的时间解决方案的树,目前最好的边界匹配(更简单的问题)字符串。我们还给出了一个$\Oh{g^{2 / 3} n^{4 / 3}/(\log n)^{4/3}}$时间的解决方案,压缩字符串的大小为$g$的语法。当字符串在许多流行的压缩方案下是可压缩的时,该解决方案改进了已知的界限。最后,我们证明了该问题是固定参数的图的树宽$w$,从而改进了以前最好的$n^{O(w)}$算法[ICALP'07]。

英文摘要:

Binary jumbled pattern matching asks to preprocess a binary string $S$ in order to answer queries $(i,j)$ which ask for a substring of $S$ that is of length $i$ and has exactly $j$ 1-bits. This problem naturally generalizes to vertex-labeled trees and graphs by replacing "substring" with "connected subgraph". In this paper, we give an $O(n^2 / \log^2 n)$-time solution for trees, matching the currently best bound for (the simpler problem of) strings. We also give an $\Oh{g^{2 / 3} n^{4 / 3}/(\log n)^{4/3}}$-time solution for strings that are compressed by a grammar of size $g$. This solution improves the known bounds when the string is compressible under many popular compression schemes. Finally, we prove that the problem is fixed-parameter tractable with respect to the treewidth $w$ of the graph, thus improving the previous best $n^{O(w)}$ algorithm [ICALP'07].

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

↑