计算机科学 > 数据结构与算法
[提交于 2011年7月15日]
标题:Computing q-gram Non-overlapping Frequencies on SLP Compressed Texts
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Length-$q$ substrings, or $q$-grams, can represent important characteristics of text data, and determining the frequencies of all $q$-grams contained in the data is an important problem with many applications in the field of data mining and machine learning. In this paper, we consider the problem of calculating the {\em non-overlapping frequencies} of all $q$-grams in a text given in compressed form, namely, as a straight line program (SLP). We show that the problem can be solved in $O(q^2n)$ time and $O(qn)$ space where $n$ is the size of the SLP. This generalizes and greatly improves previous work (Inenaga & Bannai, 2009) which solved the problem only for $q=2$ in $O(n^4\log n)$ time and $O(n^3)$ space.
提交历史
来自:Hideo Bannai[v1] 2011年7月15日 星期五 09:39:57 UTC