Smallest sorting network $S(25)$

Sorting network on 25 inputs with 130 comparators in 15 steps, drawn as 25 horizontal wires joined by vertical comparators

The smallest number of comparators in a sorting network on $25$ inputs.

Lower bound: $106$ Literature
Upper bound: $130$ Checked construction

History

Each bound that improved on the earlier ones, with the record of its discovery and its best evidence. A bound is discovered in the literature, or by a certificate submitted here. Its best evidence is a certificate checked here, if there is one at least as strong: a formal proof in Lean (Lean proof) or an explicit construction checked by a program (Checked construction). Otherwise it's an Attested certificate, which someone else checked with a published checker, or the Literature. Submit a certificate.

Date Bound Discovery Best evidence
1970-05 $\le 134$ W.H. Kautz, M.C. Pease, M.W. Green, Cellular logic-in-memory arrays, Final Report Part 1, SRI Project 5509, Stanford Research Institute, May 1970.
[via D.C. Van Voorhis, A generalization of the divide-sort-merge strategy for sorting networks, Technical Report 16, Digital Systems Laboratory, Stanford University (STAN-CS-71-237), August 1971.]
Checked construction
via $\le 130$, sorting-network-size-25-upper-130
2009-04 $\le 133$ S.W. Al-Haj Baddar, Finding Better Sorting Networks, PhD thesis, Kent State University, 2009. Checked construction
via $\le 130$, sorting-network-size-25-upper-130
2018-01-02 $\ge 97$ B. Dobbelaere, Smallest and fastest sorting networks for a given number of inputs, SorterHunter repository, sorting_networks.html, 2018-01-02. Literature
2018-07-18 $\le 132$ B. Dobbelaere, Smallest and fastest sorting networks for a given number of inputs, SorterHunter repository, sorting_networks.html, 2018-07-18. Checked construction
via $\le 130$, sorting-network-size-25-upper-130
2020-05-30 $\ge 99$ B. Dobbelaere, Smallest and fastest sorting networks for a given number of inputs, SorterHunter repository, sorting_networks.html, 2020-05-30. Literature
2020-06-07 $\ge 100$ B. Dobbelaere, Smallest and fastest sorting networks for a given number of inputs, SorterHunter repository, sorting_networks.html, 2020-06-07. Literature
2022-01-02 $\le 131$ B. Dobbelaere, Smallest and fastest sorting networks for a given number of inputs, SorterHunter repository, sorting_networks.html, 2022-01-02. Checked construction
via $\le 130$, sorting-network-size-25-upper-130
2022-07-04 $\le 130$ B. Dobbelaere, Smallest and fastest sorting networks for a given number of inputs, SorterHunter repository, sorting_networks.html, 2022-07-04. Checked construction
Certificate sorting-network-size-25-upper-130, submitted by daniel-munro, 2026-11-11
[construction from B. Dobbelaere, Smallest and fastest sorting networks for a given number of inputs, https://bertdobbelaere.github.io/sorting_networks.html (page updated 2026-10-10, retrieved 2026-11-11).]
2026-10-18 $\ge 106$ T.S. Tomar, Sorting networks on 13 inputs need at least 44 comparators, Zenodo, 2026, https://doi.org/10.5281/zenodo.23453293.
[via B. Dobbelaere, Smallest and fastest sorting networks for a given number of inputs, SorterHunter repository, sorting_networks.html, 2025-04-21.]
Literature

Other certificates

Certificates that aren't the best evidence for any bound above: other certificates are stronger evidence for the same bounds, or they prove only bounds weaker than any recorded.