Scalable detection of frequent substrings by grammar-based compression

  • Authors:
  • Masaya Nakahara;Shirou Maruyama;Tetsuji Kuboyama;Hiroshi Sakamoto

  • Affiliations:
  • Kyushu Institute of Technology, Iizuka-shi, Fukuoka;Kyushu University, Fukuoka;Gakushuin University, Toshima, Tokyo;Kyushu Institute of Technology, Fukuoka and PRESTO JST, Saitama, Japan

  • Venue:
  • DS'11 Proceedings of the 14th international conference on Discovery science
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

A scalable pattern discovery by compression is proposed. A string is representable by a context-free grammar (CFG) deriving the string deterministically. In this framework of grammar-based compression, the aim of the algorithm is to output as small a CFG as possible. Beyond that, the optimization problem is approximately solvable. In such approximation algorithms, the compressor by Sakamoto et al. (2009) is especially suitable for detecting maximal common substrings as well as long frequent substrings. This is made possible thanks to the characteristics of edit-sensitive parsing (ESP) by Cormode and Muthukrishnan (2007), which was introduced to approximate a variant of edit distance. Based on ESP, we design a linear time algorithm to find all frequent patterns in a string approximately and prove a lower bound for the length of extracted frequent patterns. We also examine the performance of our algorithm by experiments in DNA sequences and other compressible real world texts. Compared to the practical algorithm developed by Uno (2008), our algorithm is faster with large and repetitive strings.