Fast $q$-gram Mining on SLP Compressed Strings
Keisuke Goto, Hideo Bannai, Shunsuke Inenaga, Masayuki Takeda

TL;DR
This paper introduces efficient algorithms for computing $q$-gram frequencies directly on strings compressed as SLPs, significantly improving performance for small $q$ in practical data mining and classification tasks.
Contribution
The authors develop the first $O(qn)$ time and space algorithms for $q$-gram frequency computation on SLP-compressed strings, demonstrating practical efficiency.
Findings
Algorithms outperform uncompressed text methods for small $q$
Experiments confirm practical speedups on real data
Applications in data mining and classification are feasible
Abstract
We present simple and efficient algorithms 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 , we present an time and space algorithm that computes the occurrence frequencies of -grams in . Computational experiments show that our algorithm and its variation are practical for small , actually running faster on various real string data, compared to algorithms that work on the uncompressed text. We also discuss applications in data mining and classification of string data, for which our algorithms can be useful.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
