English

The Online Event-Detection Problem

Data Structures and Algorithms 2018-12-27 v1

Abstract

Given a stream S=(s1,s2,...,sN)S = (s_1, s_2, ..., s_N), a ϕ\phi-heavy hitter is an item sis_i that occurs at least ϕN\phi N times in SS. The problem of finding heavy-hitters has been extensively studied in the database literature. In this paper, we study a related problem. We say that there is a ϕ\phi-event at time tt if sts_t occurs exactly ϕN\phi N times in (s1,s2,...,st)(s_1, s_2, ..., s_t). Thus, for each ϕ\phi-heavy hitter there is a single ϕ\phi-event which occurs when its count reaches the reporting threshold ϕN\phi N. We define the online event-detection problem (OEDP) as: given ϕ\phi and a stream SS, report all ϕ\phi-events as soon as they occur. Many real-world monitoring systems demand event detection where all events must be reported (no false negatives), in a timely manner, with no non-events reported (no false positives), and a low reporting threshold. As a result, the OEDP requires a large amount of space (Omega(N) words) and is not solvable in the streaming model or via standard sampling-based approaches. Since OEDP requires large space, we focus on cache-efficient algorithms in the external-memory model. We provide algorithms for the OEDP that are within a log factor of optimal. Our algorithms are tunable: its parameters can be set to allow for a bounded false-positives and a bounded delay in reporting. None of our relaxations allow false negatives since reporting all events is a strict requirement of our applications. Finally, we show improved results when the count of items in the input stream follows a power-law distribution.

Cite

@article{arxiv.1812.09824,
  title  = {The Online Event-Detection Problem},
  author = {Michael A. Bender and Jonathan W. Berry and Martin Farach-Colton and Rob Johnson and Thomas M. Kroeger and Prashant Pandey and Cynthia A. Phillips and Shikha Singh},
  journal= {arXiv preprint arXiv:1812.09824},
  year   = {2018}
}
R2 v1 2026-06-23T06:55:09.188Z