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

自适应排序,也适用于二叉搜索树(BST)模型

Adaptive Sorting, also in the BST Model

IT University of Copenhagen(哥本哈根工业大学);Institute of Science and Technology Austria (ISTA)(奥地利科学技术研究所)

Ivor van der Hoog, Eva Rotenberg, Daniel Rutschmann

AI总结:

本文完善了自适应排序熵度量的关系层级,提出BST模型下的SproutSort和SkeletonSort两种reg自适应排序算法,达到该模型迄今最优的自适应性并简化了实现。

摘要:

排序是最基础的算法问题之一,自适应排序算法会利用输入中便于排序的特征,这些特征通常由熵度量来刻画。已有大量此类度量被研究,由此引出两个自然问题:它们之间存在何种关联?是否存在对这些度量具有自适应性的算法?本文完善了已有研究中熵度量之间的关系层级,证明经典度量Reg是该层级的核心来源。我们证实现有数据结构可生成Reg自适应排序算法,从而达到层级中所有度量的自适应界。鉴于McIlroy指出Reg的定义在数学上存在不便,我们研究一种稍弱但更简单的度量reg。对于无重复元素的输入,我们证明O(n + log reg) = O(n + log Reg),因此这种简化保留了自适应界。最后,我们开展算法设计,在离线二叉搜索树(BST)模型中提出reg自适应算法SproutSort,其访问代价为O(n + log reg),成为该模型中迄今最具自适应性的算法;还提出简单的随机指针机算法SkeletonSort,可在期望O(n + log reg)时间内对不同键排序,为自适应层级中该高度的排序算法提供了大幅简化的实现方案。

英文摘要:

Sorting is one of the most basic algorithmic problems. Adaptive sorting algorithms exploit features that make an input easier to sort, often captured by entropy measures. Many such measures have been studied, raising two natural questions: how do they relate to one another, and are there algorithms that are adaptive to them? We complete a hierarchy of relations between previously studied entropy measures and show that the classical measure Reg is a source of this hierarchy. We prove that an existing data structure yields a Reg-adaptive sorting algorithm, thereby achieving the adaptive bounds of every measure in the hierarchy. Following McIlroy's observation that Reg has a mathematically inconvenient definition, we study a slightly weaker but simpler measure, reg. For inputs without duplicates, we show that O(n + log reg) = O(n + log Reg), so this simplification preserves the adaptive bound. Finally, we do algorithms design and introduce SproutSort, a reg-adaptive algorithm in the offline binary search tree (BST) model. SproutSort achieves an access cost of O(n + log reg), making it the most adaptive algorithm in this model to date. We also introduce SkeletonSort, a simple randomised pointer-machine algorithm that sorts distinct keys in expected O(n + log reg) time, offering a considerably simpler implementation of a sorting algorithm this high in the adaptive hierarchy.

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

↑