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\'os, and Szemer\'edi (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.
翻译:在算法和复杂文献中,一个长期的开放问题是,是否存在着以美元(n)计价的电路。Asharov、Lin和Shi(SODA'21)最近的工作表明,如果要排序的元素有短键,其长度为$=o(o)(log n),那么通过利用非比较基础技术来排序电路,那么人们确实可以克服美元(n)n美元(美元)的障碍。更具体地说,Asharov et al. 显示有美元(n) 美元(cot) 的电路 。如果有美元(k) 美元(r) 的电路深度,Li-Li 的深度(n) 美元(n) 、 美元(ng) 美元(n) 的深度(s) 的深度(SODARV) 大小(SO) 大小(trial) 的大小(troadal-al-al-al-al-al 直径(sal) 直径(ST) 直径(Oral) 直径(tal-h) 直径) 直径(sl) 直径(t) 直径(l) 直径(l) 直)。