Lune

SODA2022Top-tier venue

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 Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

No credit card required.

Lineage

  • Removing Additive Structure in 3SUM-Based Reductions cites Time-Space Tradeoffs for Element Distinctness and Set Intersection via Pseudorandomness
  • Beating Meet-in-the-Middle for Subset Balancing Problems cites Improving Schroeppel and Shamir's algorithm for subset sum via orthogonal vectors
  • Time-Space Tradeoffs for Element Distinctness and Set Intersection via Pseudorandomness cites Tight Time-Space Lower Bounds for Finding Multiple Collision Pairs and Their Applications
  • Fast Low-Space Algorithms for Subset Sum cites Improving Schroeppel and Shamir's algorithm for subset sum via orthogonal vectors
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. Removing Additive Structure in 3SUM-Based ReductionsCe Jin, Yinzhan XuSTOC 2023 · 9 citations
  2. Beating Meet-in-the-Middle for Subset Balancing ProblemsTim Randolph, Karol WegrzyckiSTOC 2026 · 5 citations
  3. FairHash: A Fair and Memory/Time-efficient HashmapNima Shahbazi, Stavros Sintos, Abolfazl AsudehSIGMOD 2024 · 2 citations
  4. Time-Space Tradeoffs for Element Distinctness and Set Intersection via PseudorandomnessXin Lyu, Weihao ZhuSODA 2023 · 1 citation

Builds on3

  1. Tight Time-Space Lower Bounds for Finding Multiple Collision Pairs and Their ApplicationsItai DinurEUROCRYPT 2020 · 16 citations
  2. Fast Low-Space Algorithms for Subset SumCe Jin, Nikhil Vyas, Ryan WilliamsSODA 2021 · 10 citations
  3. Improving Schroeppel and Shamir's algorithm for subset sum via orthogonal vectorsJesper Nederlof, Karol WegrzyckiSTOC 2021

Related papers

  1. A Time-Optimal Randomized Parallel Algorithm for MISMohsen Ghaffari, Bernhard HaeuplerSODA 2021 · 4 citations
  2. Explicit Min-wise Hash Families with Optimal SizeXue Chen, Shengtang Huang, Xin LiSODA 2026
  3. Shaving Logs via Large Sieve Inequality: Faster Algorithms for Sparse Convolution and MoreCe Jin, Yinzhan XuSTOC 2024 · 1 citation
  4. On Fine-Grained Distinct Element EstimationIlias Diakonikolas, Daniel Kane, Jasper C. H. Lee, Thanasis Pittas et al.ICML 2025
  5. Approximately Counting Knapsack Solutions in Subquadratic TimeWeiming Feng, Ce JinSODA 2025
Dusk over the sea between two cliffs drawn in fine vertical lines