With a strict comparator, verifying $x=y$ takes two comparisons. We study stable sorting under prefix deadlines: the order of the first $i$ records must be determined before any record beyond position $i+L$ is compared. An untrusted schedule predicts, for each later record, which of the first $q$ records shares its key. Even with correct predictions, schedules with equal label frequencies can require $n+o(n)$ or $2n-o(n)$ comparisons. A packing quantity explains this gap: for each label $c$, let $P_c$ be the largest number of its predicted positions pairwise more than $L$ apart. With at most $e$ wrong predictions and $Q=q+e$, the optimal worst-case comparison count is $n-1+\log_2(Q!)+\sum_c P_c-\mathbf{1}_{e=0}\min_c P_c+O(Q)$ for every schedule and lookahead $L$. The lower bound counts deadline-forced cycles in the comparison graph. The algorithm verifies all predicted equalities except for the largest key, whose records it only checks to be nondecreasing; one early new maximum cancels this saving. Without a schedule, a sorter can learn a repeated permutation from the keys; at zero lookahead, one new maximum raises its leading coefficient from $2-1/q$ to $2$. If each key's successor is predicted from its previous occurrence with $E$ mistakes, lookahead $\lceil\sqrt n\,\rceil$ suffices for $n+o(n)$ comparisons when $q(E+1)=o(n)$, while $o(\sqrt n)$ forces $2n-o(n)$. On two 32,768-record inputs, our implementation is within 3 and 7 comparisons of the optimum.


翻译:暂无翻译

0
下载
关闭预览

相关内容

《通过聚类和 ORBAT 地图进行战场态势感知》
专知会员服务
37+阅读 · 2025年2月9日
Stabilizing Transformers for Reinforcement Learning
专知会员服务
61+阅读 · 2019年10月17日
一文理解Ranking Loss/Margin Loss/Triplet Loss
极市平台
16+阅读 · 2020年8月10日
论文盘点:CVPR 2019 - 文本检测专题
PaperWeekly
14+阅读 · 2019年5月31日
面试时让你手推公式不在害怕 | 梯度下降
计算机视觉life
14+阅读 · 2019年3月27日
disentangled-representation-papers
CreateAMind
26+阅读 · 2018年9月12日
Reinforcement Learning: An Introduction 2018第二版 500页
CreateAMind
14+阅读 · 2018年4月27日
Focal Loss for Dense Object Detection
统计学习与视觉计算组
12+阅读 · 2018年3月15日
国家自然科学基金
122+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
国家自然科学基金
6+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
2+阅读 · 2014年12月31日
国家自然科学基金
55+阅读 · 2011年12月31日
Arxiv
0+阅读 · 11月19日
VIP会员
最新内容
《评估人机编队性能的标准指标》
专知会员服务
11+阅读 · 11月30日
《美陆军装甲排的自动化任务分配模型》59页
专知会员服务
10+阅读 · 11月30日
乌克兰海陆空无人力量
专知会员服务
6+阅读 · 11月30日
超越技术:美战争部的AI变革管理
专知会员服务
10+阅读 · 11月27日
北约400亿美元反无人机能力投资建设
专知会员服务
8+阅读 · 11月25日
反小型无人机系统方案评估(27页)
专知会员服务
17+阅读 · 11月25日
相关VIP内容
《通过聚类和 ORBAT 地图进行战场态势感知》
专知会员服务
37+阅读 · 2025年2月9日
Stabilizing Transformers for Reinforcement Learning
专知会员服务
61+阅读 · 2019年10月17日
相关资讯
一文理解Ranking Loss/Margin Loss/Triplet Loss
极市平台
16+阅读 · 2020年8月10日
论文盘点:CVPR 2019 - 文本检测专题
PaperWeekly
14+阅读 · 2019年5月31日
面试时让你手推公式不在害怕 | 梯度下降
计算机视觉life
14+阅读 · 2019年3月27日
disentangled-representation-papers
CreateAMind
26+阅读 · 2018年9月12日
Reinforcement Learning: An Introduction 2018第二版 500页
CreateAMind
14+阅读 · 2018年4月27日
Focal Loss for Dense Object Detection
统计学习与视觉计算组
12+阅读 · 2018年3月15日
相关基金
国家自然科学基金
122+阅读 · 2015年12月31日
国家自然科学基金
2+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2014年12月31日
国家自然科学基金
6+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
2+阅读 · 2014年12月31日
国家自然科学基金
55+阅读 · 2011年12月31日
Top
微信扫码咨询专知VIP会员