Sliding Suffix Tree
We consider a sliding window over a stream of characters from some finite alphabet. The user wants to perform deterministic substring matching on the current sliding window content and obtain positions of the matches. We present an indexed version of the sliding window based on a suffix tree. The data structure has optimal time queries Θ(m+occ) and amortized constant time updates, where m is the length of the query string and occ the number of occurrences.
READ FULL TEXT