Abstract
This paper settles the optimality of sorting networks given in The Art of Computer Programming vol. 3 more than 40 years ago. The book lists efficient sorting networks with n ≤ 16 inputs. In this paper we give general combinatorial arguments showing that if a sorting network with a given depth exists then there exists one with a special form. We then construct propositional formulas whose satisfiability is necessary for the existence of such a network. Using a SAT solver we conclude that the listed networks have optimal depth. For n ≤ 10 inputs where optimality was known previously, our algorithm is four orders of magnitude faster than those in prior work.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
References
Ajtai, M., Komlós, J., Szemerédi, E.: An O(n log n) sorting network. In: Proceedings of the Fifteenth Annual ACM Symposium on Theory of Computing, STOC 1983, pp. 1–9 (1983), http://doi.acm.org/10.1145/800061.808726
Batcher, K.E.: Sorting networks and their applications. In: Proceedings of the Spring Joint Computer Conference, AFIPS 1968, pp. 307–314. ACM (1968) (Spring)
Floyd, R.W., Knuth, D.E.: The Bose-Nelson sorting problem. J. ACM 9, 282–296 (1962)
Knuth, D.E.: The art of computer programming, volume 3: sorting and searching. Addison Wesley, Reading (1973)
Morgenstern, A., Schneider, K.: Synthesis of parallel sorting networks using SAT solvers. In: MBMV, OFFIS-Institut für Informatik, pp. 71–80 (2011)
Parberry, I.: Parallel complexity theory. Research notes in theoretical computer science. Pitman (1987)
Parberry, I.: A computer-assisted optimal depth lower bound for nine-inputs sorting networks. In: Proceedings of the 1989 ACM/IEEE Conference on Supercomputing (1989)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2014 Springer International Publishing Switzerland
About this paper
Cite this paper
Bundala, D., Závodný, J. (2014). Optimal Sorting Networks. In: Dediu, AH., Martín-Vide, C., Sierra-Rodríguez, JL., Truthe, B. (eds) Language and Automata Theory and Applications. LATA 2014. Lecture Notes in Computer Science, vol 8370. Springer, Cham. https://doi.org/10.1007/978-3-319-04921-2_19
Download citation
DOI: https://doi.org/10.1007/978-3-319-04921-2_19
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-04920-5
Online ISBN: 978-3-319-04921-2
eBook Packages: Computer ScienceComputer Science (R0)