Optimal-depth sorting networks

From MaRDI portal
Publication:340576

DOI10.1016/J.JCSS.2016.09.004zbMATH Open1353.68062arXiv1412.5302OpenAlexW1726079515MaRDI QIDQ340576FDOQ340576


Authors: Daniel Bundala, Michael Codish, Luís Cruz-Filipe, Peter Schneider-Kamp, Jakub Závodný Edit this on Wikidata


Publication date: 14 November 2016

Published in: Journal of Computer and System Sciences (Search for Journal in Brave)

Abstract: We solve a 40-year-old open problem on the depth optimality of sorting networks. In 1973, Donald E. Knuth detailed, in Volume 3 of "The Art of Computer Programming", sorting networks of the smallest depth known at the time for n =< 16 inputs, quoting optimality for n =< 8. In 1989, Parberry proved the optimality of the networks with 9 =< n =< 10 inputs. In this article, we present a general technique for obtaining such optimality results, and use it to prove the optimality of the remaining open cases of 11 =< n =< 16 inputs. We show how to exploit symmetry to construct a small set of two-layer networks on n inputs such that if there is a sorting network on n inputs of a given depth, then there is one whose first layers are in this set. For each network in the resulting set, we construct a propositional formula whose satisfiability is necessary for the existence of a sorting network of a given depth. Using an off-the-shelf SAT solver we show that the sorting networks listed by Knuth are optimal. For n =< 10 inputs, our algorithm is orders of magnitude faster than the prior ones.


Full work available at URL: https://arxiv.org/abs/1412.5302




Recommendations




Cites Work


Cited In (19)

Uses Software





This page was built for publication: Optimal-depth sorting networks

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q340576)