Streaming Algorithms for Support-Aware Histograms
Justin Y. Chen, Piotr Indyk, Tal Wagner
Abstract
Histograms, i.e., piece-wise constant approximations, are a popular tool used to represent data distributions. Traditionally, the difference between the histogram and the underlying distribution (i.e., the approximation error) is measured using the L p norm, which sums the differences between the two functions over all items in the domain. Although useful in many applications, the drawback of this error measure is that it treats approximation errors of all items in the same way, irrespec-tive of whether the mass of an item is important for the downstream application that uses the approximation. As a result, even relatively simple distributions cannot be approximated by succinct histograms without incurring large error. In this paper, we address this issue by adapting the definition of approximation so that only the errors of the items that belong to the support of the distribution are considered. Under this definition, we develop efficient 1-pass and 2-pass streaming algorithms that compute near-optimal histograms in sub-linear space. We also present lower bounds on the space complexity of this problem. Surpris-ingly, under this notion of error, there is an exponential gap in the space complexity of 1-pass and 2-pass streaming algorithms. Finally, we demon-strate the utility of our algorithms on a collection of real and synthetic data sets.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers3
- Learning-Augmented Search Data StructuresChunkai Fu, Brandon G. Nguyen, Jung Hoon Seo, Ryan S. Zesch et al.ICLR 2025 · 1 citation
- Learning-Augmented Frequent DirectionsAnders Aamand, Justin Y. Chen, Siddharth Gollapudi, Sandeep Silwal et al.ICLR 2025
- On Fine-Grained Distinct Element EstimationIlias Diakonikolas, Daniel Kane, Jasper C. H. Lee, Thanasis Pittas et al.ICML 2025
Builds on1
Related papers
- Nearly-Tight Bounds for Testing Histogram DistributionsClément L. Canonne, Ilias Diakonikolas, Daniel Kane, Sihan LiuNeurIPS 2022 · 9 citations
- Frequency Estimation with One-Sided ErrorPiotr Indyk, Shyam Narayanan, David P. WoodruffSODA 2022 · 1 citation
- A Polynomial Space Lower Bound for Diameter Estimation in Dynamic StreamsSanjeev Khanna, Ashwin Padaki, Krish Singal, Erik WaingartenFOCS 2025 · 3 citations
- Optimality of Frequency Moment EstimationMark Braverman, Or ZamirSTOC 2025 · 7 citations
- Improved Sliding Window Algorithms for Clustering and Coverage via Bucketing-Based SketchesAlessandro Epasto, Mohammad Mahdian, Vahab S. Mirrokni, Peilin ZhongSODA 2022 · 6 citations
