[Paper Review] Deterministic oblivious distribution (and tight compaction) in linear time
This paper presents a deterministic, oblivious algorithm for distributing marked elements into marked positions in linear time O(n) on the word-RAM model, using pseudorandom expander graphs to decouple data movement from destination computation. The key contribution is the first O(n) deterministic solution for oblivious tight compaction and distribution, improving upon prior bounds of O(n lg n), O(n lg lg n), and O(n lg∗n).
In tight compaction one is given an array of balls some of which are marked 0 and the rest are marked 1. The output of the procedure is an array that contains all of the original balls except that now the 0-balls appear before the 1-balls. In other words, tight compaction is equivalent to sorting the array according to 1-bit keys (not necessarily maintaining order within same-key balls). Tight compaction is not only an important algorithmic task by itself, but its oblivious version has also played a key role in recent constructions of oblivious RAM compilers. We present an oblivious deterministic algorithm for tight compaction such that for input arrays of n balls requires O(n) total work and O(log n) depth. Our algorithm is in the Exclusive-Read-Exclusive-Write Parallel-RAM model (i.e., EREW PRAM, the most restrictive PRAM model), and importantly we achieve asymptotical optimality in both total work and depth. To the best of our knowledge no earlier work, even when allowing randomization, can achieve optimality in both total work and depth.
Motivation & Objective
- To design a deterministic, oblivious algorithm for moving m marked elements to m marked positions in O(n) time.
- To resolve the open problem of achieving linear-time deterministic tight compaction.
- To improve upon the asymptotic running times of existing randomized and deterministic algorithms for loose and tight compaction.
- To provide a practical foundation for cryptographic constructions relying on oblivious compaction.
Proposed method
- Uses dϵ-regular bipartite multigraphs with the DISC(ϵdϵ) property to model data movement between array positions.
- Decouples destination computation from data movement by operating at multiple scales, compressing small-scale computation and amortizing large transfers.
- Employs a swap routine over neighbor pairs in expander graphs, where swaps occur only between red and blue marked elements not yet swapped.
- Leverages the Expander Mixing Lemma to bound the number of unswapped (surviving) elements, ensuring at most s = n/(2ℓ) survivors per color.
- Constructs the required pseudorandom graphs in linear time using spectral expansion, with explicit constructions for powers of two.
- Translates O(1)-loose compaction into full oblivious distribution via a black-box transformation using the same graph-based framework.
Experimental results
Research questions
- RQ1Can deterministic oblivious distribution be achieved in O(n) time, improving upon the O(n lg n) bound of prior methods?
- RQ2Is there a deterministic O(n) algorithm for tight compaction, resolving an open problem in cryptographic algorithm design?
- RQ3Can pseudorandom expander graphs be used to achieve obliviousness without sacrificing linear time complexity?
- RQ4What are the practical limitations of such algorithms due to large hidden constants in asymptotic notation?
- RQ5How do block transfer, pipelining, and non-uniform memory access affect the performance of the proposed scheme?
Key findings
- The paper presents the first deterministic oblivious distribution algorithm running in O(n) time, improving the prior O(n lg n) bound.
- It resolves an open problem by providing the first O(n) deterministic algorithm for tight compaction.
- The algorithm uses pseudorandom expanders with the DISC(ϵdϵ) property to ensure bounded survivor counts, proving at most s = n/(2ℓ) unswapped elements per color.
- The construction relies on spectral expanders that are explicitly constructible in O(N) time for size N = 2^i, satisfying the required pseudorandomness condition.
- The method achieves obliviousness through data-independent memory access patterns, independent of input markings.
- Despite optimal asymptotic complexity, the algorithm incurs large hidden constants due to alignment constraints and suboptimal expander constructions, suggesting room for optimization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.