# Periodicity in Data Streams with Wildcards

**Authors:** Funda Erg\"un, Elena Grigorescu, Erfan Sadeqi Azer, Samson Zhou

arXiv: 1802.07375 · 2018-03-06

## TL;DR

This paper introduces algorithms for detecting periodic patterns in data streams with wildcards, providing a two-pass method with sublinear space and a one-pass randomized approach for specific cases, advancing streaming pattern detection.

## Contribution

The paper presents the first two-pass and one-pass streaming algorithms for wildcard-period detection, with space complexity bounds and conditions for their applicability.

## Key findings

- Two-pass algorithm computes wildcard-periods with $	ilde{O}(k^3)$ space.
- One-pass randomized algorithm finds certain wildcard-periods efficiently.
- Problem cannot be solved in sublinear space in one pass for general cases.

## Abstract

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

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1802.07375/full.md

## Figures

9 figures with captions in the complete paper: https://tomesphere.com/paper/1802.07375/full.md

## References

38 references — full list in the complete paper: https://tomesphere.com/paper/1802.07375/full.md

---
Source: https://tomesphere.com/paper/1802.07375