计算机科学 > 数据结构与算法
[提交于 2021年1月15日 (v1),最后修订于 2022年7月24日 (此版本, v3)]
标题:An Answer to the Bose-Nelson Sorting Problem for 11 and 12 Channels
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We show that 11-channel sorting networks have at least 35 comparators and that 12-channel sorting networks have at least 39 comparators. This positively settles the optimality of the corresponding sorting networks given in The Art of Computer Programming vol. 3 and closes the two smallest open instances of the Bose-Nelson sorting problem. We obtain these bounds by generalizing a result of Van Voorhis from sorting networks to a more general class of comparator networks. From this we derive a dynamic programming algorithm that computes the optimal size for a sorting network with a given number of channels. From an execution of this algorithm we construct a certificate containing a derivation of the corresponding lower size bound, which we check using a program formally verified using the Isabelle/HOL proof assistant.