arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1412.5302cs.DScs.DM
收藏

最优深度排序网络

Optimal-Depth Sorting Networks

Daniel Bundala, Michael Codish, Luís Cruz-Filipe, Peter Schneider-Kamp, Jakub Závodný

摘要:

我们解决了一个40年前的关于排序网络深度最优性的公开问题。1973年,唐纳德·E.高德纳在《计算机编程的艺术》第三卷中详细描述了对当时已知的最小深度的网络进行排序,其中n =< 16个输入,引用了n =< 8的最优性。1989年,Parberry证明了9 =< n =< 10个输入的网络的最优性。在这篇文章中,我们提出了一种获得这种最优性结果的一般技术,并使用它来证明11 =< n =< 16个输入的其余开放情况的最优性。我们展示了如何利用对称性在n个输入上构造一个小的两层网络集合,使得如果在给定深度的n个输入上存在一个排序网络,则存在一个其第一层在该集合中的网络。对于结果集中的每个网络,我们构造一个命题公式,其可满足性对于给定深度的排序网络的存在是必要的。使用现成的SAT求解器,我们表明,排序网络列出的克努特是最佳的。对于n =< 10个输入,我们的算法比以前的算法快了几个数量级。

英文摘要:

We solve a 40-year-old open problem on the depth optimality of sorting networks. In 1973, Donald E. Knuth detailed, in Volume 3 of "The Art of Computer Programming", sorting networks of the smallest depth known at the time for n =< 16 inputs, quoting optimality for n =< 8. In 1989, Parberry proved the optimality of the networks with 9 =< n =< 10 inputs. In this article, we present a general technique for obtaining such optimality results, and use it to prove the optimality of the remaining open cases of 11 =< n =< 16 inputs. We show how to exploit symmetry to construct a small set of two-layer networks on n inputs such that if there is a sorting network on n inputs of a given depth, then there is one whose first layers are in this set. For each network in the resulting set, we construct a propositional formula whose satisfiability is necessary for the existence of a sorting network of a given depth. Using an off-the-shelf SAT solver we show that the sorting networks listed by Knuth are optimal. For n =< 10 inputs, our algorithm is orders of magnitude faster than the prior ones.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑