An efficient pattern matching algorithm on a subclass of context free grammars

6Citations
Citations of this article
4Readers
Mendeley users who have this article in their library.
Get full text

Abstract

There is a close relationship between formal language theory and data compression. Since 1990's various types of grammar-based text compression algorithms have been introduced. Given an input string, a grammar-based text compression algorithm constructs a context-free grammar that only generates the string. An interesting and challenging problem is pattern matching on context-free grammars P of size m and T of size n, which are the descriptions of pattern string P of length M and text string T of length N, respectively. The goal is to solve the problem in time proportional only to m and n, not to M nor N. Kieffer et al. introduced a very practical grammar-based compression method called multilevel pattern matching code (MPM code). In this paper, we propose an efficient pattern matching algorithm which, given two MPM grammars P and T, performs in O(mn2) time with O(mn) space. Our algorithm outperforms the previous best one by Miyazaki et al. which requires O(m2n 2) time and O(mn) space. © Springer-Verlag Berlin Heidelberg 2004.

Cite

CITATION STYLE

APA

Inenaga, S., Shinohara, A., & Takeda, M. (2004). An efficient pattern matching algorithm on a subclass of context free grammars. Lecture Notes in Computer Science (Including Subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 3340, 225–236. https://doi.org/10.1007/978-3-540-30550-7_19

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free