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

preprint2011arXivOpen access

Abstract

Length-qq substrings, or qq-grams, can represent important characteristics of text data, and determining the frequencies of all qq-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 qq-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(q2n)O(q^2n) time and O(qn)O(qn) space where nn is the size of the SLP. This generalizes and greatly improves previous work (Inenaga & Bannai, 2009) which solved the problem only for q=2q=2 in O(n4log⁡n)O(n^4\log n) time and O(n3)O(n^3) space.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.