Periodicity in Data Streams with Wildcards
arXiv:1802.07375
Abstract
We investigate the problem of detecting periodic trends within a string of length , arriving in the streaming model, containing at most wildcard characters, where . A wildcard character is a special character that can be assigned any other character. We say has wildcard-period if there exists an assignment to each of the wildcard characters so that in the resulting stream the length prefix equals the length suffix. We present a two-pass streaming algorithm that computes wildcard-periods of using bits of space, while we also show that this problem cannot be solved in sublinear space in one pass. We then give a one-pass randomized streaming algorithm that computes all wildcard-periods of with and no wildcard characters appearing in the last symbols of , using space.
To appear at CSR 2018