Speeding-up $q$-gram mining on grammar-based compressed texts
Data Structures and Algorithms
2013-05-27 v1
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 .
Cite
@article{arxiv.1202.3311,
title = {Speeding-up $q$-gram mining on grammar-based compressed texts},
author = {Keisuke Goto and Hideo Bannai and Shunsuke Inenaga and Masayuki Takeda},
journal= {arXiv preprint arXiv:1202.3311},
year = {2013}
}