Streaming method tracks big distances in high-dimensional data quickly
On Euclidean Diameter in Dynamic Streams
Data Structures and Algorithms
Summary
Measuring the largest distance between points in a big dataset is important but computationally hard, especially when points can be added or removed. The authors designed a fast streaming algorithm that keeps track of an approximate maximum distance using limited memory and fast updates, even in high-dimensional spaces. They also show it’s impossible to do much better without using a lot more memory. Their approach mixes geometric shapes, clever hashing, and update scheduling to efficiently manage changes.
What this means in practice
- •For real-time data engineers: Maintain approximate maximum distances in rapidly changing high-dimensional datasets using limited memory and fast updates.
- •For machine learning developers: Efficiently track changes in data spread or diversity during training with streaming-friendly distance approximations.
Authors
Jeff Giliberti, MohammadTaghi Hajiaghayi
Abstract
We give a streaming algorithm for maintaining the diameter of a high-dimensional Euclidean point set under arbitrary insertions and deletions that achieves update time polylogarithmic in the number of points and polynomial in the dimension. For every fixed $c>\sqrt3$, there is an $ε_c > 0$ such that our one-pass algorithm uses $\tilde O(N^{1-ε_c}\poly(d))$ space, has worst-case update time $\poly(d,\log N)$, and maintains a factor-$c$ pair witness. On the hardness side, we prove that every constant-factor approximation requires polynomial memory even on short dynamic streams: a factor-$c$ approximation needs $N^{Ω(1/(c^2\log(c+1)))}$ space on streams of at most $2N-1$ updates. Our upper bound combines a geometric hull, Gaussian hashing through successively smaller caps, and local and global rebuilding schedules. Every update changes only one leaf of the hash hierarchy, while the answer is maintained through small variance certificates. The lower bound is based on a communication complexity argument. Together, these results separate the polynomial memory regime from the time needed to process an update.