基于语法压缩文本的快速$q$ -gram挖掘
Speeding-up $q$-gram mining on grammar-based compressed texts
摘要:
我们提出了一个有效的算法计算$q$ -gram频率的字符串表示在压缩的形式,即,作为一个直线程序(SLP)。给定表示字符串$T$的大小为$n$的SLP $\mathcal{T}$,算法通过将问题简化为大小为$m = |T|-\mathit{dup}(q,\mathcal{T})$的trie-like结构上的加权$q$-gram频率问题来计算$T$中所有$q$-gram的出现频率,其中$\mathit{dup}(q,\mathcal{T})$是表示SLP捕获的关于$q$ -gram的冗余量的量。简化后的问题可以在线性时间内求解。由于$m = O(qn)$,我们的算法的运行时间是$O(\min\{|T|-\mathit{dup}(q,\mathcal{T}),qn\})$,改进了我们以前的$O(qn)$算法时,$q = Ω(|T|/n)$。
英文摘要:
We present an efficient algorithm for calculating $q$-gram frequencies on strings represented in compressed form, namely, as a straight line program (SLP). Given an SLP $\mathcal{T}$ of size $n$ that represents string $T$, the algorithm computes the occurrence frequencies of all $q$-grams in $T$, by reducing the problem to the weighted $q$-gram frequencies problem on a trie-like structure of size $m = |T|-\mathit{dup}(q,\mathcal{T})$, where $\mathit{dup}(q,\mathcal{T})$ is a quantity that represents the amount of redundancy that the SLP captures with respect to $q$-grams. The reduced problem can be solved in linear time. Since $m = O(qn)$, the running time of our algorithm is $O(\min\{|T|-\mathit{dup}(q,\mathcal{T}),qn\})$, improving our previous $O(qn)$ algorithm when $q = Ω(|T|/n)$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。