paper

Sliding Suffix Tree using LCA

arXiv:1801.07449

Abstract

We consider a sliding window over a stream of characters from some alphabet of constant size. 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 using the suffix tree, the link tree and the lowest common ancestor. The data structure of size has optimal time queries and amortized constant time updates, where is the length of the query string and is the number of its occurrences.

A simplified version with improved maintenance and without using the LCA is available at https://doi.org/10.3390/a11080118