Fast text searching for regular expressions or automaton searching on tries

  • Authors:
  • Ricardo A. Baeza-Yates;Gaston H. Gonnet

  • Affiliations:
  • Univ. of Chile, Santiago, Chile;ETH, Zurich, Switzerland

  • Venue:
  • Journal of the ACM (JACM)
  • Year:
  • 1996

Quantified Score

Hi-index 0.01

Visualization

Abstract

We present algorithms for efficient searching of regular expressions on preprocessed text, using a Patricia tree as a logical model for the index. We obtain searching algorithms that run in logarithmic expected time in the size of the text for a wide subclass of regular expressions, and in sublinear expected time for any regular expression. This is the first such algorithm to be found with this complexity.