English

Are We Still Missing an Item?

Data Structures and Algorithms 2024-01-23 v2

Abstract

The missing item problem, as introduced by Stoeckl in his work at SODA 23, focuses on continually identifying a missing element ee in a stream of elements e1,...,e{e_1, ..., e_{\ell}} from the set {1,2,...,n}\{1,2,...,n\}, such that eeie \neq e_i for any i{1,...,}i \in \{1,...,\ell\}. Stoeckl's investigation primarily delves into scenarios with <n\ell<n, providing bounds for the (i) deterministic case, (ii) the static case -- where the algorithm might be randomized but the stream is fixed in advanced and (iii) the adversarially robust case -- where the algorithm is randomized and each stream element can be chosen depending on earlier algorithm outputs. Building upon this foundation, our paper addresses previously unexplored aspects of the missing item problem. In the first segment, we examine the static setting with a long stream, where the length of the steam \ell is close to or even exceeds the size of the universe nn. We present an algorithm demonstrating that even when \ell is very close to nn (say =n1\ell=n-1), polylog(nn) bits of memory suffice to identify the missing item. When the stream's length \ell exceeds the size of the universe nn i.e. =n+k\ell = n +k, we show a tight bound of roughly Θ(k)\Theta(k). The second segment focuses on the adversarially robust setting. We show a lower bound for a pseudo-deterministic error-zero (where the algorithm reports its errors) algorithm of approximating Ω()\Omega(\ell), up to polylog factors. Based on Stoeckl's work and the previous result, we establish a tight bound for a random-start (only use randomness at initialization) error-zero streaming algorithm of roughly Θ()\Theta(\sqrt{\ell}).

Keywords

Cite

@article{arxiv.2401.06547,
  title  = {Are We Still Missing an Item?},
  author = {Roey Magen},
  journal= {arXiv preprint arXiv:2401.06547},
  year   = {2024}
}
R2 v1 2026-06-28T14:15:12.706Z