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

朴素排序演化数据是最优且鲁棒的

Naively Sorting Evolving Data is Optimal and Robust

George Giakkoupis, Marcos Kiwi, Dimitrios Los

AI总结:

研究演化数据模型中的排序问题,证明朴素相邻交换排序算法在一般扰动分布和平均演化步数有界条件下,能以高概率实现最优总偏差和最大偏差,解决了先前开放问题。

摘要:

我们研究演化数据模型中的排序问题,该模型由[AKMU11]提出,其中真实的全序关系在排序算法处理输入时发生变化。更准确地说,算法的每次比较操作后跟着一系列演化步骤,演化步骤通过一个“小”的随机值扰动随机项的排名。目标是维持一个随时间推移始终接近真实顺序的排列。先前的工作分析了经典排序算法的改进版本,假设演化步骤仅使项的排名改变1,且两次比较之间发生固定常数数量$b$次演化步骤。事实上,先前唯一实现最优线性总偏差的结果,由[BvDEGJ18a]提出,仅适用于$b=1$的情况。\n我们分析了由[M14]提出的一种非常简单的排序算法,该算法在每步采样一对相邻项,若顺序错误则交换它们。我们证明,在非常一般的模型设置下,该算法以高概率实现并维持最优总偏差$O(n)$和最优最大偏差$O(\log n)$。即,每次演化步骤引入的扰动从具有有界矩母函数的一般分布中采样,且仅要求两次排序步骤之间的平均演化步骤数受(任意)常数限制,该平均值是在线性数量步骤上计算的。\n证明的关键要素是一种新颖的势函数论证,它在项列表中插入“间隙”,以及一个通用分析框架,该框架将排序分析与演化步骤分析分离,适用于先前方法不适用的多种设置。我们的结果解决了上述工作中的猜想和开放问题,并为[BvDEGJ18b]中的经验观察提供了理论支持。

英文摘要:

We study sorting in the evolving data model, introduced by [AKMU11], where the true total order changes while the sorting algorithm is processing the input. More precisely, each comparison operation of the algorithm is followed by a sequence of evolution steps, where an evolution step perturbs the rank of a random item by a "small" random value. The goal is to maintain an ordering that remains close to the true order over time. Previous works have analyzed adaptations of classic sorting algorithms, assuming that an evolution step changes the rank of an item by just one, and that a fixed constant number $b$ of evolution steps take place between two comparisons. In fact, the only previous result achieving optimal linear total deviation, by [BvDEGJ18a], applies just for $b=1$. We analyze a very simple sorting algorithm suggested by [M14], which samples a random pair of adjacent items in each step and swaps them if they are out of order. We show that the algorithm achieves and maintains, with high probability, optimal total deviation, $O(n)$, and optimal maximum deviation, $O(\log n)$, under very general model settings. Namely, the perturbation introduced by each evolution step is sampled from a general distribution of bounded moment generating function, and we just require that the average number of evolution steps between two sorting steps be bounded by an (arbitrary) constant, where the average is over a linear number of steps. The key ingredients of our proof are a novel potential function argument that inserts "gaps" in the list of items, and a general analysis framework which separates the analysis of sorting from that of the evolution steps, and is applicable to a variety of settings for which previous approaches do not apply. Our results settle conjectures and open problems in the aforementioned works, and provide theoretical support for empirical observations in [BvDEGJ18b].

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

↑