[Paper Review] Faster Sorting Networks for $17$, $19$ and $20$ Inputs
This paper presents new, faster sorting networks for 17, 19, and 20 inputs by combining hand-crafted first layers based on partially ordered sets with an iterative SAT-based synthesis approach. The authors reduce the depth of sorting networks to 10 layers for 17 inputs and 11 layers for 20 inputs, improving the previously known upper bounds and demonstrating that only 587 input vectors were sufficient to verify correctness.
We present new parallel sorting networks for $17$ to $20$ inputs. For $17, 19,$ and $20$ inputs these new networks are faster (i.e., they require less computation steps) than the previously known best networks. Therefore, we improve upon the known upper bounds for minimal depth sorting networks on $17, 19,$ and $20$ channels. The networks were obtained using a combination of hand-crafted first layers and a SAT encoding of sorting networks.
Motivation & Objective
- To reduce the minimal depth of sorting networks for 17, 19, and 20 inputs beyond previously known upper bounds.
- To improve the efficiency of SAT-based sorting network synthesis by reducing formula size and solver runtime.
- To demonstrate that a small set of carefully chosen counterexample inputs can effectively verify sorting network correctness.
- To explore the use of partially ordered sets in early layers to guide the construction of faster networks.
- To provide new, provably correct sorting networks that outperform existing constructions in depth.
Proposed method
- The authors use a SAT encoding of sorting network constraints, including reachability via Floyd-Warshall-style logic to ensure all inputs can reach all outputs.
- They apply reachability constraints with O(n²d) variables to reduce the search space and avoid exhaustive input vector testing.
- Partially ordered sets (posets) are hand-crafted in the first layers to structure intermediate outputs and guide the network toward faster convergence.
- An iterative SAT-based approach is employed: a network is generated, a counterexample is found, and it is added to the formula until no further counterexamples exist.
- The process uses MiniSAT 2.20 with preprocessing techniques to improve solver performance on the resulting formulae.
- The method combines structural insights (e.g., posets) with automated verification to synthesize networks with minimal depth.
Experimental results
Research questions
- RQ1Can sorting networks for 17, 19, and 20 inputs be constructed with fewer layers than previously known?
- RQ2Can the SAT-based synthesis of sorting networks be made more efficient by reducing the number of required input vectors?
- RQ3To what extent can hand-crafted first layers based on posets improve the performance of automated sorting network synthesis?
- RQ4Is it possible to verify a sorting network’s correctness using only a small, carefully selected set of counterexample inputs?
- RQ5What is the minimal depth achievable for sorting networks with 17, 19, and 20 inputs using current SAT-based methods?
Key findings
- A 17-input sorting network was constructed with only 10 layers, reducing the previous upper bound of 11 layers.
- A 20-input sorting network was constructed with 11 layers, improving upon the prior upper bound of 12 layers.
- The 19-input network also achieved a depth of 11 layers, matching the new upper bound for that size.
- The synthesis process required only 587 distinct input vectors to verify the 20-input network, demonstrating high efficiency of the iterative counterexample approach.
- The use of posets in the first layers significantly improved the convergence and performance of the SAT-based synthesis.
- The results provide the first known improvements to the upper bounds on minimal depth for 17, 19, and 20-input sorting networks.
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.