paper

Speeding-up -gram mining on grammar-based compressed texts

arXiv:1202.3311 · doi:10.1007/978-3-642-31265-6_18

Abstract

We present an efficient algorithm for calculating -gram frequencies on strings represented in compressed form, namely, as a straight line program (SLP). Given an SLP of size that represents string , the algorithm computes the occurrence frequencies of all -grams in , by reducing the problem to the weighted -gram frequencies problem on a trie-like structure of size , where is a quantity that represents the amount of redundancy that the SLP captures with respect to -grams. The reduced problem can be solved in linear time. Since , the running time of our algorithm is , improving our previous algorithm when .

Cited by in corpus (1)