Construction of aho corasick automaton in linear time for integer alphabets

  • Authors:
  • Shiri Dori;Gad M. Landau

  • Affiliations:
  • Department of Computer Science, University of Haifa, Haifa, Israel;Department of Computer Science, University of Haifa, Haifa, Israel

  • Venue:
  • CPM'05 Proceedings of the 16th annual conference on Combinatorial Pattern Matching
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present a new simple algorithm that constructs an Aho Corasick automaton for a set of patterns, P, of total length n, in O(n) time and space for integer alphabets. Processing a text of size m over an alphabet Σ with the automaton costs $O(m \log \left|\Sigma\right| + k)$, where there are k occurrences of patterns in the text.