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

基于文法的二进制混杂模式匹配索引构造

Grammar-Based Construction of Indexes for Binary Jumbled Pattern Matching

Travis Gagie

摘要:

我们展示了如何给定一个具有$g$规则的直线程序,对于长度为$n$的二进制字符串$B$,在$O(g^{2 / 3} n^{4 / 3})$时间内,我们可以构建一个线性空间索引,使得给定$m$和$c$,在O(1)时间内,我们可以确定是否存在长度为$m$的$B$的子串,其中恰好包含$c$拷贝1。如果我们使用$O(n \log n)$空间作为索引,那么我们可以使用每个子串的$O(m)$时间来列出所有这样的子串。

英文摘要:

We show how, given a straight-line program with $g$ rules for a binary string $B$ of length $n$, in $O(g^{2 / 3} n^{4 / 3})$ time we can build a linear-space index such that, given $m$ and $c$, in O(1) time we can determine whether there is a substring of $B$ with length $m$ containing exactly $c$ copies of 1. If we use $O(n \log n)$ space for the index, then we can list all such substrings using $O(m)$ time per substring.

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

↑