计算机科学 > 数据结构与算法
[提交于 2018年5月14日]
标题:Quadratic Time Algorithms Appear to be Optimal for Sorting Evolving Data
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We empirically study sorting in the evolving data model. In this model, a sorting algorithm maintains an approximation to the sorted order of a list of data items while simultaneously, with each comparison made by the algorithm, an adversary randomly swaps the order of adjacent items in the true sorted order. Previous work studies only two versions of quicksort, and has a gap between the lower bound of Omega(n) and the best upper bound of O(n log log n). The experiments we perform in this paper provide empirical evidence that some quadratic-time algorithms such as insertion sort and bubble sort are asymptotically optimal for any constant rate of random swaps. In fact, these algorithms perform as well as or better than algorithms such as quicksort that are more efficient in the traditional algorithm analysis model.
提交历史
来自:Timothy Johnson[v1] 2018年5月14日 星期一 20:54:56 UTC