选择16个元素中的第7小元素恰好需要28次比较
Selecting the 7th Smallest of 16 Elements Takes Exactly 28 Comparisons
AI总结:
该研究确定16个元素中第7小元素的最坏情况比较次数为28,改进了相关选择问题的上界,所有结果均经Lean 4形式验证,算法通过多种搜索方法得到。
摘要:
设$V_i(n)$表示从$n$个不同元素中找到第$i$小元素所需的最坏情况下的最少比较次数。我们构造算法证明$V_7(16)\le28$、$V_8(16)\le29$,将此前报道的上界30和31分别改进;结合已知下界,这些结果确定$V_7(16)=28$,并使$V_8(16)$的取值范围为\{28,29\}。对于17个元素,我们确定$V_5(17)=27$,并将第6至9小元素的上界分别改进为29、30、31、31。每个新上界都有显式决策图证书,由独立于搜索过程开发的静态检查器验证。我们还结合Fussenegger-Gabow权重及其逆序对应项,推导了偏序状态下选择问题的一个下界。所有新上界和该下界均在Lean 4中完成形式验证。对于$V_8(16)$,我们证明仅基于决策树叶子总数的下界无法确立$V_8(16)\ge29$。这些算法通过固定预算搜索、信息引导的比较排序和证明数搜索得到,其中证明数搜索在找到28次比较的算法中起关键作用;实验中,反驳比较预算的成本仍远高于在预算内找到算法的成本。
英文摘要:
Let $V_i(n)$ denote the minimum worst-case number of comparisons needed to find the $i$-th smallest of $n$ distinct elements. We construct algorithms showing $V_7(16)\le28$ and $V_8(16)\le29$, improving the previously reported upper bounds of 30 and 31. Together with known lower bounds, these results establish $V_7(16)=28$ and leave $V_8(16)\in\{28,29\}$. For 17 elements, we establish $V_5(17)=27$ and improve the upper bounds for ranks 6 through 9 to 29, 30, 31, and 31, respectively. Every new upper bound has an explicit decision-graph certificate verified by a static checker developed independently of the search. We also derive a lower bound for selection from a partially ordered state by combining the Fussenegger-Gabow weight with its order-reversed counterpart. All new upper bounds and this lower bound are formally verified in Lean 4. For $V_8(16)$, we show that a lower bound based solely on the total number of decision-tree leaves cannot establish $V_8(16)\ge29$. The algorithms were found using fixed-budget search, information-guided comparison ordering, and proof-number search. Proof-number search was decisive in finding the 28-comparison algorithm; in our experiments, refuting a comparison budget remained substantially more expensive than finding an algorithm within it.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。