English

Streaming Periodicity with Mismatches

Data Structures and Algorithms 2017-08-16 v1

Abstract

We study the problem of finding all kk-periods of a length-nn string SS, presented as a data stream. SS is said to have kk-period pp if its prefix of length npn-p differs from its suffix of length npn-p in at most kk locations. We give a one-pass streaming algorithm that computes the kk-periods of a string SS using poly(k,logn)\text{poly}(k, \log n) bits of space, for kk-periods of length at most n2\frac{n}{2}. We also present a two-pass streaming algorithm that computes kk-periods of SS using poly(k,logn)\text{poly}(k, \log n) bits of space, regardless of period length. We complement these results with comparable lower bounds.

Keywords

Cite

@article{arxiv.1708.04381,
  title  = {Streaming Periodicity with Mismatches},
  author = {Funda Ergün and Elena Grigorescu and Erfan Sadeqi Azer and Samson Zhou},
  journal= {arXiv preprint arXiv:1708.04381},
  year   = {2017}
}
R2 v1 2026-06-22T21:14:48.567Z