The Expiration Streaming Model: Diameter,
k-Center, Counting, Sampling, and Friends
We introduce a general expiration streaming model where each item arrives with its own arbitrary expiration time, generalizing the sliding-window model. By efficiently tracking active items without storing them all, we obtain algorithms for approximate counting, uniform/weighted sampling, and, as our main contribution, diameter and $k$-center problems in metric spaces. For the diameter in high-dimensional Euclidean metrics, our approach achieves a strictly better approximation factor than previous sliding-window results.