arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2304.11952cs.DS
收藏

给野猪排序

Sorting wild pigs

Emma Caizergues, François Durand, Fabien Mathieu

AI总结:

针对随时可能中断的比较排序场景,论文提出基于估计器的任意时间排序算法族 Corsort,仿真显示其终止时间近最优且中间排序结果更准确。

摘要:

Cargèse 的饲养员 Chjara 有 n 头野猪。她希望按体重给自己的畜群排序,以便更好地满足买家的需求。每头牲畜的体重都互不相同,但 Chjara 并不知道这些体重。她所能使用的只有一台 Roberval 天平,而要比较两头猪,必须付出一次杂技般操作的代价。这台天平相当老旧,随时可能损坏。因此,Chjara 希望以最少的称量次数给畜群排序,同时还希望在每次称量之后都能对结果有一个良好估计。为帮助 Chjara,我们提出寻找一种良好的任意时间排序算法这一问题,评价标准是临时结果与完全有序列表之间的 Kendall tau 距离,并给出以下贡献:我们引入了 Corsort,这是一族基于估计器的任意时间排序算法。通过仿真,我们表明配置良好的 Corsort 具有接近最优的终止时间,并且与我们所知的最佳排序算法相比,能够提供更好的中间估计。

英文摘要:

Chjara, breeder in Carg{è}se, has n wild pigs. She would like to sort her herd by weight to better meet the demands of her buyers. Each beast has a distinct weight, alas unknown to Chjara. All she has at her disposal is a Roberval scale, which allows her to compare two pigs only at the cost of an acrobatic manoeuvre. The balance, quite old, can break at any time. Chjara therefore wants to sort his herd in a minimum of weighings, but also to have a good estimate of the result after each weighing.To help Chjara, we pose the problem of finding a good anytime sorting algorithm, in the sense of Kendall's tau distance between provisional result and perfectly sorted list, and we bring the following contributions:- We introduce Corsort, a family of anytime sorting algorithms based on estimators.- By simulation, we show that a well-configured Corsort has a near-optimal termination time, and provides better intermediate estimates than the best sorting algorithms we are aware of.

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

↑