Sorting Short Keys in Circuits of Size o(n log n)

10/15/2020
by   Gilad Asharov, et al.
0

We consider the classical problem of sorting an input array containing n elements, where each element is described with a k-bit comparison-key and a w-bit payload. A long-standing open problem is whether there exist (k + w) · o(n log n)-sized boolean circuits for sorting. We show that one can overcome the nlog n barrier when the keys to be sorted are short. Specifically, we prove that there is a circuit with (k + w) · O(n k) ·(log^*n - log^* (w + k)) boolean gates capable of sorting any input array containing n elements, each described with a k-bit key and a w-bit payload. Therefore, if the keys to be sorted are short, say, k < o(log n), our result is asymptotically better than the classical AKS sorting network (ignoring log^* terms); and we also overcome the n log n barrier in such cases. Such a result might be surprising initially because it is long known that comparator-based techniques must incur Ω(n log n) comparator gates even when the keys to be sorted are only 1-bit long (e.g., see Knuth's "Art of Programming" textbook). To the best of our knowledge, we are the first to achieve non-trivial results for sorting circuits using non-comparison-based techniques. We also show that if the Li-Li network coding conjecture is true, our upper bound is optimal, barring log^* terms, for every k as long as k = O(log n).

READ FULL TEXT
research
02/23/2021

Optimal Sorting Circuits for Short Keys

A long-standing open question in the algorithms and complexity literatur...
research
02/19/2021

Sorting Short Integers

We build boolean circuits of size O(nm^2) and depth O(log(n) + m log(m))...
research
11/23/2020

Searching and Sorting with O(n^2) processors in O(1) time

The proliferation of number of processing elements (PEs) in parallel com...
research
11/01/2019

Optimal Metastability-Containing Sorting via Parallel Prefix Computation

Friedrichs et al. (TC 2018) showed that metastability can be contained w...
research
06/11/2022

Lower Bounds for Sorting 16, 17, and 18 Elements

It is a long-standing open question to determine the minimum number of c...
research
01/22/2018

Optimal Metastability-Containing Sorting Networks

When setup/hold times of bistable elements are violated, they may become...
research
05/14/2018

Quadratic Time Algorithms Appear to be Optimal for Sorting Evolving Data

We empirically study sorting in the evolving data model. In this model, ...

Please sign up or login with your details

Forgot password? Click here to reset