Optimal on-line search and sublinear time update in string matching

  • Authors:
  • P. Ferragina;R. Grossi

  • Affiliations:
  • -;-

  • Venue:
  • FOCS '95 Proceedings of the 36th Annual Symposium on Foundations of Computer Science
  • Year:
  • 1995

Quantified Score

Hi-index 0.00

Visualization

Abstract

We study in a dynamic setting the problem of online searching for the occurrences of an arbitrary pattern string P[1,p] in an indexed text string T[1,n]. That is, we assume that the text T may be updated by inserting or deleting an arbitrary string Y[1,y]. Our main contribution is presenting the first dynamic algorithm that achieves optimal time, i.e. /spl Theta/(p+occ), to find the occ occurrences of P, and sublinear time per update, i.e. O(/spl radic/(n+y)), in the worst case. The required space is optimal /spl Theta/(n).