[Paper Review] Linear-Size Boolean Circuits for Multiselection
This paper presents the first sorting circuit for short keys that achieves optimal size O(nk(w+k))·poly(log* n) and optimal depth O(log n + log w), resolving an open question on balancing size and depth efficiency. By combining pipelined generalized boolean gates, oblivious compaction, and hierarchical sorting on nearly orderly arrays, the authors overcome prior depth bottlenecks while maintaining near-linear size, generalizing the AKS result for k = o(log n).
A long-standing open question in the algorithms and complexity literature is whether there exist sorting circuits of size $o(n \log n)$. A recent work by Asharov, Lin, and Shi (SODA'21) showed that if the elements to be sorted have short keys whose length $k = o(\log n)$, then one can indeed overcome the $n\log n$ barrier for sorting circuits, by leveraging non-comparison-based techniques. More specifically, Asharov et al.~showed that there exist $O(n) \cdot \min(k, \log n)$-sized sorting circuits for $k$-bit keys, ignoring $poly\log^*$ factors. Interestingly, the recent works by Farhadi et al. (STOC'19) and Asharov et al. (SODA'21) also showed that the above result is essentially optimal for every key length $k$, assuming that the famous Li-Li network coding conjecture holds. Note also that proving any {\it unconditional} super-linear circuit lower bound for a wide class of problems is beyond the reach of current techniques. Unfortunately, the approach taken by Asharov et al.~to achieve optimality in size somewhat crucially relies on sacrificing the depth: specifically, their circuit is super-{\it poly}logarithmic in depth even for 1-bit keys. Asharov et al.~phrase it as an open question how to achieve optimality both in size and depth. In this paper, we close this important gap in our understanding. We construct a sorting circuit of size $O(n) \cdot \min(k, \log n)$ (ignoring $poly\log^*$ terms) and depth $O(\log n)$. To achieve this, our approach departs significantly from the prior works. Our result can be viewed as a generalization of the landmark result by Ajtai, Komlós, and Szemerédi (STOC'83), simultaneously in terms of size and depth. Specifically, for $k = o(\log n)$, we achieve asymptotical improvements in size over the AKS sorting circuit, while preserving optimality in depth.
Motivation & Objective
- To close the gap between optimal size and optimal depth in sorting circuits for short keys.
- To construct a circuit that achieves O(nk(w+k)) size and O(log n + log w) depth, improving upon prior works that sacrificed depth for size.
- To generalize the AKS sorting circuit by simultaneously improving size and depth for k = o(log n).
- To demonstrate that non-comparison-based techniques can yield both size and depth optimality in the circuit model.
- To answer the open question posed by Asharov et al. (SODA’21) on whether optimal size and depth are simultaneously achievable.
Proposed method
- Design a pipelined circuit architecture where comparator gates propagate readiness of key bits in stages, enabling parallel evaluation of generalized boolean operations.
- Use generalized boolean gates to compute selector flags for routing elements through the circuit, with depth O(k).
- Implement oblivious compaction using a hierarchical routing structure to compact elements into segments without conditional logic.
- Apply a two-phase sorting strategy: first sort nearly orderly subarrays using a SlowAlignK,K2 circuit, then recombine via a hierarchical compaction and sorting pipeline.
- Leverage the Wallace-tree trick and Pippenger’s self-routing super-concentrator principles to minimize depth while maintaining size efficiency.
- Convert all circuit gadgets into constant fan-in, constant fan-out boolean circuits using Lemma 6.1, ensuring compatibility with standard circuit models.
Experimental results
Research questions
- RQ1Can sorting circuits for short keys achieve both optimal size and optimal depth simultaneously?
- RQ2Is it possible to construct a circuit with O(nk(w+k)) size and O(log n + log w) depth for k-bit keys?
- RQ3Can non-comparison-based techniques in the circuit model yield both size and depth improvements over comparator-based models?
- RQ4Does the depth of optimal-size sorting circuits for short keys need to be super-polylogarithmic, or can it be reduced to O(log n)?
- RQ5Can the trade-off between size and depth in prior works be overcome using pipelining and hierarchical routing?
Key findings
- The paper constructs a sorting circuit with size O(nk(w+k))·max(1, poly(log∗n−log∗(w+k))) and depth O(log n + log w), achieving optimal depth and near-optimal size.
- The circuit size is optimal up to poly(log∗n) factors, matching the lower bound from Asharov et al. (SODA’21) under the Li-Li network coding conjecture.
- The depth is O(log n + log w), which is asymptotically optimal for the circuit model and represents a significant improvement over prior works with (log n)^ω(1) depth.
- The approach generalizes the AKS sorting circuit by achieving both asymptotic improvements in size and optimal depth for k = o(log n).
- The use of pipelined bit readiness propagation enables efficient evaluation of generalized boolean gates and selector circuits in O(k) depth.
- The circuit is implementable as a constant fan-in, constant fan-out boolean circuit, ensuring compatibility with standard complexity-theoretic models.
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.