English

Sliding Suffix Tree using LCA

Data Structures and Algorithms 2018-09-07 v3

Abstract

We consider a sliding window WW 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 Θ(W)\Theta(|W|) has optimal time queries Θ(m+occ)\Theta(m+occ) and amortized constant time updates, where mm is the length of the query string and occocc is the number of its occurrences.

Keywords

Cite

@article{arxiv.1801.07449,
  title  = {Sliding Suffix Tree using LCA},
  author = {Andrej Brodnik and Matevž Jekovec},
  journal= {arXiv preprint arXiv:1801.07449},
  year   = {2018}
}

Comments

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