Algorithms (Aug 2018)

Sliding Suffix Tree

  • Andrej Brodnik,
  • Matevž Jekovec

DOI
https://doi.org/10.3390/a11080118
Journal volume & issue
Vol. 11, no. 8
p. 118

Abstract

Read online

We consider a sliding window W over a stream of characters from some alphabet of constant size. We want to look up a pattern in the current sliding window content and obtain all positions of the matches. We present an indexed version of the sliding window, based on a suffix tree. The data structure of size Θ(|W|) has optimal time queries Θ(m+occ) and amortized constant time updates, where m is the length of the query string and occ is its number of occurrences.

Keywords