Skip to main content

Optimal Sorting Networks

  • Conference paper
Language and Automata Theory and Applications (LATA 2014)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 8370))

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 to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. 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

  2. Batcher, K.E.: Sorting networks and their applications. In: Proceedings of the Spring Joint Computer Conference, AFIPS 1968, pp. 307–314. ACM (1968) (Spring)

    Google Scholar 

  3. Floyd, R.W., Knuth, D.E.: The Bose-Nelson sorting problem. J. ACM 9, 282–296 (1962)

    Article  Google Scholar 

  4. Knuth, D.E.: The art of computer programming, volume 3: sorting and searching. Addison Wesley, Reading (1973)

    Google Scholar 

  5. Morgenstern, A., Schneider, K.: Synthesis of parallel sorting networks using SAT solvers. In: MBMV, OFFIS-Institut für Informatik, pp. 71–80 (2011)

    Google Scholar 

  6. Parberry, I.: Parallel complexity theory. Research notes in theoretical computer science. Pitman (1987)

    Google Scholar 

  7. 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)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics