English

Streaming Euclidean $k$-median and $k$-means with $o(\log n)$ Space

Data Structures and Algorithms 2023-10-05 v1

Abstract

We consider the classic Euclidean kk-median and kk-means objective on data streams, where the goal is to provide a (1+ε)(1+\varepsilon)-approximation to the optimal kk-median or kk-means solution, while using as little memory as possible. Over the last 20 years, clustering in data streams has received a tremendous amount of attention and has been the test-bed for a large variety of new techniques, including coresets, the merge-and-reduce framework, bicriteria approximation, sensitivity sampling, and so on. Despite this intense effort to obtain smaller sketches for these problems, all known techniques require storing at least Ω(log(nΔ))\Omega(\log(n\Delta)) words of memory, where nn is the size of the input and Δ\Delta is the aspect ratio. A natural question is if one can beat this logarithmic dependence on nn and Δ\Delta. In this paper, we break this barrier by first giving an insertion-only streaming algorithm that achieves a (1+ε)(1+\varepsilon)-approximation to the more general (k,z)(k,z)-clustering problem, using O~(dkε2)(2zlogz)min(1εz,k)poly(loglog(nΔ))\tilde{\mathcal{O}}\left(\frac{dk}{\varepsilon^2}\right)\cdot(2^{z\log z})\cdot\min\left(\frac{1}{\varepsilon^z},k\right)\cdot\text{poly}(\log\log(n\Delta)) words of memory. Our techniques can also be used to achieve two-pass algorithms for kk-median and kk-means clustering on dynamic streams using O~(1ε2)poly(d,k,loglog(nΔ))\tilde{\mathcal{O}}\left(\frac{1}{\varepsilon^2}\right)\cdot\text{poly}(d,k,\log\log(n\Delta)) words of memory.

Keywords

Cite

@article{arxiv.2310.02882,
  title  = {Streaming Euclidean $k$-median and $k$-means with $o(\log n)$ Space},
  author = {Vincent Cohen-Addad and David P. Woodruff and Samson Zhou},
  journal= {arXiv preprint arXiv:2310.02882},
  year   = {2023}
}

Comments

To appear at FOCS 2023