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

基于SLP压缩文本的q-gram非重叠频率计算

Computing q-gram Non-overlapping Frequencies on SLP Compressed Texts

Keisuke Goto, Hideo Bannai, Shunsuke Inenaga, Masayuki Takeda

摘要:

长度- $q$子串或$q$ -元语法可以表示文本数据的重要特征,并且确定数据中包含的所有$q$ -元语法的频率是数据挖掘和机器学习领域中的许多应用的重要问题。在本文中,我们考虑的问题,计算的所有$q$ -克在一个文本中的压缩形式,即,作为一个直线程序(SLP)的{\em非重叠频率}。我们表明,该问题可以解决$O(q^2n)$时间和$O(qn)$空间,其中$n$是SLP的大小。这推广并大大改进了以前的工作(Inenaga & Bannai,2009),解决了问题的$q=2$在$O(n^4\log n)$时间和$O(n^3)$空间。

英文摘要:

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.

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

↑