English

Joint Size and Depth Optimization of Sorting Networks

Data Structures and Algorithms 2018-06-04 v1

Abstract

Sorting networks are oblivious sorting algorithms with many interesting theoretical properties and practical applications. One of the related classical challenges is the search of optimal networks respect to size (number of comparators) of depth (number of layers). However, up to our knowledge, the joint size-depth optimality of small sorting networks has not been addressed before. This paper presents size-depth optimality results for networks up to 1212 channels. Our results show that there are sorting networks for n9n\leq9 inputs that are optimal in both size and depth, but this is not the case for 1010 and 1212 channels. For n=10n=10 inputs, we were able to proof that optimal-depth optimal sorting networks with 77 layers require 3131 comparators while optimal-size networks with 2929 comparators need 88 layers. For n=11n=11 inputs we show that networks with 88 or 99 layers require at least 3535 comparators (the best known upper bound for the minimal size). And for networks with n=12n=12 inputs and 88 layers we need 4040 comparators, while for 99 layers the best known size is 3939.

Keywords

Cite

@article{arxiv.1806.00305,
  title  = {Joint Size and Depth Optimization of Sorting Networks},
  author = {José A. R. Fonollosa},
  journal= {arXiv preprint arXiv:1806.00305},
  year   = {2018}
}
R2 v1 2026-06-23T02:16:00.820Z