English

Periodicity in Data Streams with Wildcards

Data Structures and Algorithms 2018-03-06 v3

Abstract

We investigate the problem of detecting periodic trends within a string SS of length nn, arriving in the streaming model, containing at most kk wildcard characters, where k=o(n)k=o(n). A wildcard character is a special character that can be assigned any other character. We say SS has wildcard-period pp if there exists an assignment to each of the wildcard characters so that in the resulting stream the length npn-p prefix equals the length npn-p suffix. We present a two-pass streaming algorithm that computes wildcard-periods of SS using O(k3polylogn)\mathcal{O}(k^3\,\mathsf{polylog}\,n) 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 pp of SS with p<n2p<\frac{n}{2} and no wildcard characters appearing in the last pp symbols of SS, using O(k3polylogn)\mathcal{O}(k^3\mathsf{polylog}\, n) space.

Keywords

Cite

@article{arxiv.1802.07375,
  title  = {Periodicity in Data Streams with Wildcards},
  author = {Funda Ergün and Elena Grigorescu and Erfan Sadeqi Azer and Samson Zhou},
  journal= {arXiv preprint arXiv:1802.07375},
  year   = {2018}
}

Comments

To appear at CSR 2018

R2 v1 2026-06-23T00:28:19.643Z