Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
research-article

Sorting nine inputs requires twenty-five comparisons

Published: 01 May 2016 Publication History

Abstract

Twenty-five comparators are minimal to sort nine inputs.Twenty-nine comparators are minimal to sort ten inputs.New symmetry-breaking results control the growth of the search space.Optimized and parallelized algorithms for generating size-optimal sorting networks.Use of SAT-solving to speed up the last part of the computation. This paper describes a computer-assisted non-existence proof of 9-input sorting networks consisting of 24 comparators, hence showing that the 25-comparator sorting network found by Floyd in 1964 is optimal. As a corollary, the 29-comparator network found by Waksman in 1969 is optimal when sorting 10 inputs.This closes the two smallest open instances of the optimal-size sorting network problem, which have been open since the results of Floyd and Knuth from 1966 proving optimality for sorting networks of up to 8 inputs.

References

[1]
M. Ajtai, J. Komlós, E. Szemerédi, An O ( n log ¿ n ) sorting network, in: Proceedings of the 15th Annual ACM Symposium on Theory of Computing, ACM, 1983, pp. 1-9.
[2]
O. Bailleux, Y. Boufkhad, Efficient CNF encoding of Boolean cardinality constraints, in: CP2003, 2003, pp. 108-122.
[3]
H. Barendregt, F. Wiedijk, The challenge of computer mathematics, Trans. A R. Soc., 363 (2005) 2351-2375.
[4]
K.E. Batcher, Sorting networks and their applications, in: AFIPS Conf. Proc., vol. 32, Thomson Book Company, 1968, pp. 307-314.
[5]
Y. Bertot, P. Castéran, Interactive Theorem Proving and Program Development, Springer, 2004.
[6]
J.R. Bitner, G. Ehrlich, E.M. Reingold, Efficient generation of the binary reflected gray code and its applications, Commun. ACM, 19 (1976) 517-521.
[7]
R. Bose, R. Nelson, A sorting problem, J. ACM, 9 (1962) 282-296.
[8]
D. Bundala, J. Závodný, Optimal sorting networks, in: Lect. Notes Comput. Sci., vol. 8370, Springer, 2014, pp. 236-247.
[9]
M.J. Chung, B. Ravikumar, Bounds on the size of test sets for sorting and related networks, Discrete Math., 81 (1990) 1-9.
[10]
M. Codish, L. Cruz-Filipe, M. Frank, P. Schneider-Kamp, Twenty-five comparators is optimal when sorting nine inputs (and twenty-nine for ten), in: ICTAI 2014, IEEE, Dec. 2014, pp. 186-193.
[11]
M. Codish, L. Cruz-Filipe, P. Schneider-Kamp, The quest for optimal sorting networks: efficient generation of two-layer prefixes, in: SYNASC 2014, IEEE, 2015, pp. 359-366.
[12]
J.M. Crawford, A.B. Baker, Experimental results on the application of satisfiability algorithms to scheduling problems, in: AAAI, AAAI Press/The MIT Press, 1994, pp. 1092-1097.
[13]
L. Cruz-Filipe, P. Schneider-Kamp, Formalizing size-optimal sorting networks: extracting a certified proof checker, in: Lect. Notes Comput. Sci., vol. 9236, Springer, 2015, pp. 154-169.
[14]
L. Cruz-Filipe, P. Schneider-Kamp, Optimizing a certified proof checker for a large-scale computer-generated proof, in: Lect. Notes Artif. Intell., vol. 9150, Springer, 2015, pp. 55-70.
[15]
R.W. Floyd, D.E. Knuth, The Bose-Nelson sorting problem, in: A Survey of Combinatorial Theory, North-Holland, 1973, pp. 163-172.
[16]
A. Grama, A. Gupta, V. Kumar, Isoefficiency: measuring the scalability of parallel algorithms and architectures, IEEE Parallel Distrib. Technol., 1 (1993) 12-21.
[17]
D.E. Knuth, The Art of Computer Programming, Volume III: Sorting and Searching, Addison-Wesley, 1973.
[18]
P. Letouzey, Extraction in Coq: an overview, in: Lect. Notes Comput. Sci., vol. 5028, Springer, 2008, pp. 359-369.
[19]
A. Metodi, M. Codish, P.J. Stuckey, Boolean equi-propagation for concise and efficient sat encodings of combinatorial problems, J. Artif. Intell. Res., 46 (2013) 303-341.
[20]
A. Morgenstern, K. Schneider, Synthesis of parallel sorting networks using SAT solvers, in: MBMV 2011, OFFIS-Institut für Informatik, 2011, pp. 71-80.
[21]
I. Parberry, A computer-assisted optimal depth lower bound for nine-input sorting networks, Math. Syst. Theory, 24 (1991) 101-116.
[22]
I. Parberry, On the computational complexity of optimal sorting network verification, in: Lect. Notes Comput. Sci., vol. 505, Springer, 1991, pp. 252-269.
[23]
I. Parberry, The pairwise sorting network, Parallel Process. Lett., 2 (1992) 205-211.
[24]
M. Soos, . http://www.msoos.org/cryptominisat2
[25]
D.C. Van Voorhis, An improved lower bound for sorting networks, IEEE Trans. Comput., 21 (1972) 612-613.
[26]
D.C. Van Voorhis, Toward a lower bound for sorting networks, in: IBM Res. Symp. Ser., Springer US, 1972, pp. 119-129.

Cited By

View all
  • (2018)Optimal self-routing split modules for radix-based interconnection networksProceedings of the 16th ACM-IEEE International Conference on Formal Methods and Models for System Design10.5555/3343872.3343884(99-108)Online publication date: 15-Oct-2018
  • (2017)Optimal-depth sorting networksJournal of Computer and System Sciences10.1016/j.jcss.2016.09.00484:C(185-204)Online publication date: 1-Mar-2017
  • (2017)Formally Proving Size Optimality of Sorting NetworksJournal of Automated Reasoning10.1007/s10817-017-9405-959:4(425-454)Online publication date: 1-Dec-2017
  • Show More Cited By

Index Terms

  1. Sorting nine inputs requires twenty-five comparisons
    Index terms have been assigned to the content through auto-classification.

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image Journal of Computer and System Sciences
    Journal of Computer and System Sciences  Volume 82, Issue 3
    May 2016
    171 pages

    Publisher

    Academic Press, Inc.

    United States

    Publication History

    Published: 01 May 2016

    Author Tags

    1. Computer-assisted proofs
    2. SAT solving
    3. Sorting networks
    4. Symmetry breaking

    Qualifiers

    • Research-article

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)0
    • Downloads (Last 6 weeks)0
    Reflects downloads up to 12 Sep 2024

    Other Metrics

    Citations

    Cited By

    View all
    • (2018)Optimal self-routing split modules for radix-based interconnection networksProceedings of the 16th ACM-IEEE International Conference on Formal Methods and Models for System Design10.5555/3343872.3343884(99-108)Online publication date: 15-Oct-2018
    • (2017)Optimal-depth sorting networksJournal of Computer and System Sciences10.1016/j.jcss.2016.09.00484:C(185-204)Online publication date: 1-Mar-2017
    • (2017)Formally Proving Size Optimality of Sorting NetworksJournal of Automated Reasoning10.1007/s10817-017-9405-959:4(425-454)Online publication date: 1-Dec-2017
    • (2017)Optimizing sorting algorithms by using sorting networksFormal Aspects of Computing10.1007/s00165-016-0401-329:3(559-579)Online publication date: 1-May-2017
    • (2017)How to Get More Out of Your OraclesInteractive Theorem Proving10.1007/978-3-319-66107-0_11(164-170)Online publication date: 26-Sep-2017

    View Options

    View options

    Get Access

    Login options

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media