Truly Low-Space Element Distinctness and Subset Sum via Pseudorandom Hash Functions
Lijie Chen, Ce Jin, R. Ryan Williams, Hongxun Wu
Abstract
We consider low-space algorithms for the classic Element Distinctness problem: given an array of n input integers with O(log n) bit-length, decide whether or not all elements are pairwise distinct. Beame, Clifford, and Machmouchi [FOCS 2013] gave an Õ(n 1.5 )-time randomized algorithm for Element Distinctness using only O(log n) bits of working space. However, their algorithm assumes a random oracle (in particular, read-only random access to polynomially many random bits), and it was asked as an open question whether this assumption can be removed.
In this paper, we positively answer this question by giving an Õ(n 1.5 )-time randomized algorithm using O(log 3 n log log n) bits of space, with one-way access to random bits. As a corollary, we also obtain a poly(n)-space O * (2 0.86n )-time randomized algorithm for the Subset Sum problem, removing the random oracles required in the algorithm of Bansal, Garg, Nederlof, and Vyas [STOC 2017].
The main technique underlying our results is a pseudorandom hash family based on iterative restrictions, which can fool the cycle-finding procedure in the algorithms of Beame et al. and Bansal et al.
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 papers4
- Removing Additive Structure in 3SUM-Based ReductionsCe Jin, Yinzhan XuSTOC 2023 · 9 citations
- Beating Meet-in-the-Middle for Subset Balancing ProblemsTim Randolph, Karol WegrzyckiSTOC 2026 · 5 citations
- FairHash: A Fair and Memory/Time-efficient HashmapNima Shahbazi, Stavros Sintos, Abolfazl AsudehSIGMOD 2024 · 2 citations
- Time-Space Tradeoffs for Element Distinctness and Set Intersection via PseudorandomnessXin Lyu, Weihao ZhuSODA 2023 · 1 citation
Builds on3
- Tight Time-Space Lower Bounds for Finding Multiple Collision Pairs and Their ApplicationsItai DinurEUROCRYPT 2020 · 16 citations
- Fast Low-Space Algorithms for Subset SumCe Jin, Nikhil Vyas, Ryan WilliamsSODA 2021 · 10 citations
- Improving Schroeppel and Shamir's algorithm for subset sum via orthogonal vectorsJesper Nederlof, Karol WegrzyckiSTOC 2021
Related papers
- Explicit Min-wise Hash Families with Optimal SizeXue Chen, Shengtang Huang, Xin LiSODA 2026
- A Time-Optimal Randomized Parallel Algorithm for MISMohsen Ghaffari, Bernhard HaeuplerSODA 2021 · 4 citations
- Shaving Logs via Large Sieve Inequality: Faster Algorithms for Sparse Convolution and MoreCe Jin, Yinzhan XuSTOC 2024 · 1 citation
- On Fine-Grained Distinct Element EstimationIlias Diakonikolas, Daniel Kane, Jasper C. H. Lee, Thanasis Pittas et al.ICML 2025
- Derandomizing Pseudopolynomial Algorithms for Subset SumTimothy M. ChanSODA 2026
