Streaming Periodicity with Mismatches
arXiv:1708.04381
Abstract
We study the problem of finding all -periods of a length- string , presented as a data stream. is said to have -period if its prefix of length differs from its suffix of length in at most locations. We give a one-pass streaming algorithm that computes the -periods of a string using bits of space, for -periods of length at most . We also present a two-pass streaming algorithm that computes -periods of using bits of space, regardless of period length. We complement these results with comparable lower bounds.