Pseudorandom Hashing for Space-bounded Computation with Applications in Streaming
Praneeth Kacham, Rasmus Pagh, Mikkel Thorup, David P. Woodruff
Abstract
We revisit Nisan’s classical pseudorandom generator (PRG) for space-bounded computation (STOC 1990) and its applications in streaming algorithms. We describe a new generator, HashPRG, that can be thought of as a symmetric version of Nisan’s generator over larger alphabets. Our generator allows a trade-off between seed length and the time needed to compute a given block of the generator’s output. HashPRG can be used to obtain derandomizations with much better update time and without sacrificing space for a large number of data stream algorithms, for example:•Andoni’s estimation algorithm for constant (ICASSP, 2017) assumes a random oracle, but achieves optimal space and constant update time. Using HashPRG’s time-space trade-off we eliminate the random oracle assumption while preserving the other properties. Previously no time-optimal derandomization was known. Using similar techniques, we give an algorithm for a relaxed version of sampling in a turnstile stream. Both of our algorithms use bits of space and have update time.•For , the approximate estimation algorithm of Kane et al., (STOC, 2011) uses an optimal bits of space but has an update time of . Using HashPRG, we show that if for an arbitrarily small constant , then we can obtain a approximate estimation algorithm that uses the optimal bits of space and has an update time of in the Word RAM model, which is more than a quadratic improvement in the update time. We obtain similar improvements for entropy estimation.•CountSketch, with the fine-grained error analysis of Minton and Price (SODA, 2014). For derandomization, they suggested a direct application of Nisan’s generator, yielding a logarithmic multiplicative space overhead. With HashPRG we obtain an efficient derandomization yielding the same asymptotic space as when assuming a random oracle. Our ability to obtain a time-efficient derandomization makes crucial use of HashPRG’s symmetry. We also give the first derandomization of a recent private version of CountSketch.For a d-dimensional vector x being updated in a turnstile stream, we show that can be estimated up to an additive error of using bits of space. Additionally, the update time of this algorithm is in the Word RAM model. We show that the space complexity of this algorithm is optimal up to constant factors. However, for vectors x with , we show that the lower bound can be broken by giving an algorithm that uses bits of space which approximates up to an additive error of . We use our aforementioned derandomization of the CountSketch data structure to obtain this algorithm, and using the time-space trade off of HashPRG, we show that the update time of this algorithm is also in the Word RAM model.
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.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 02534e4a-f616-46a7-a949-ef00d2d5dd0eCited by top-tier papers2
- Fast White-Box Adversarial Streaming Without a Random OracleYing Feng, Aayush Jain, David P. WoodruffICML 2024 · 3 citations
- FairHash: A Fair and Memory/Time-efficient HashmapNima Shahbazi, Stavros Sintos, Abolfazl AsudehSIGMOD 2024 · 2 citations
Builds on2
Related papers
- Fast and Space Efficient Spectral Sparsification in Dynamic StreamsMichael Kapralov, Aida Mousavifar, Cameron Musco, Christopher Musco et al.SODA 2020 · 17 citations
- Explicit Min-wise Hash Families with Optimal SizeXue Chen, Shengtang Huang, Xin LiSODA 2026
- Weighted Pseudorandom Generators for Read-Once Branching Programs via Weighted Pseudorandom ReductionsKuan Cheng, Ruiyang WuSODA 2026
- Adversarially Robust Dense-Sparse Tradeoffs via Heavy-HittersDavid P. Woodruff, Samson ZhouNeurIPS 2024 · 9 citations
- Differentially Private Fractional Frequency Moments Estimation with Polylogarithmic SpaceLun Wang, Iosif Pinelis, Dawn SongICLR 2022 · 19 citations
