English

Fast, Space-Optimal Streaming Algorithms for Clustering and Subspace Embeddings

Data Structures and Algorithms 2025-04-24 v1

Abstract

We show that both clustering and subspace embeddings can be performed in the streaming model with the same asymptotic efficiency as in the central/offline setting. For (k,z)(k, z)-clustering in the streaming model, we achieve a number of words of memory which is independent of the number nn of input points and the aspect ratio Δ\Delta, yielding an optimal bound of O~(dkmin(ε4,εz+2))\tilde{\mathcal{O}}\left(\frac{dk}{\min(\varepsilon^4,\varepsilon^{z+2})}\right) words for accuracy parameter ε\varepsilon on dd-dimensional points. Additionally, we obtain amortized update time of dlog(k)polylog(log(nΔ))d\,\log(k)\cdot\text{polylog}(\log(n\Delta)), which is an exponential improvement over the previous dpoly(k,log(nΔ))d\,\text{poly}(k,\log(n\Delta)). Our method also gives the fastest runtime for (k,z)(k,z)-clustering even in the offline setting. For subspace embeddings in the streaming model, we achieve O(d)\mathcal{O}(d) update time and space-optimal constructions, using O~(d2ε2)\tilde{\mathcal{O}}\left(\frac{d^2}{\varepsilon^2}\right) words for p2p\le 2 and O~(dp/2+1ε2)\tilde{\mathcal{O}}\left(\frac{d^{p/2+1}}{\varepsilon^2}\right) words for p>2p>2, showing that streaming algorithms can match offline algorithms in both space and time complexity.

Keywords

Cite

@article{arxiv.2504.16229,
  title  = {Fast, Space-Optimal Streaming Algorithms for Clustering and Subspace Embeddings},
  author = {Vincent Cohen-Addad and Liudeng Wang and David P. Woodruff and Samson Zhou},
  journal= {arXiv preprint arXiv:2504.16229},
  year   = {2025}
}
R2 v1 2026-06-28T23:07:45.925Z