Computing convolution on grammar-compressed text
Abstract
The convolution between a text string of length and a pattern string of length can be computed in time by FFT. It is known that various types of approximate string matching problems are reducible to convolution. In this paper, we assume that the input text string is given in a compressed form, as a \emph{straight-line program (SLP)}, which is a context free grammar in the Chomsky normal form that derives a single string. Given an SLP of size describing a text of length , and an uncompressed pattern of length , we present a simple -time algorithm to compute the convolution between and . We then show that this can be improved to time, where is a value that represents the amount of redundancy that the SLP captures with respect to the length- substrings. The key of the improvement is our new algorithm that computes the convolution between a trie of size and a pattern string of length in time.
Cite
@article{arxiv.1303.3945,
title = {Computing convolution on grammar-compressed text},
author = {Toshiya Tanaka and Tomohiro I and Shunsuke Inenaga and Hideo Bannai and Masayuki Takeda},
journal= {arXiv preprint arXiv:1303.3945},
year = {2013}
}
Comments
DCC 2013