...
首页> 外文期刊>Journal of the Association for Computing Machinery >Equivalence between Priority Queues and Sorting
【24h】

Equivalence between Priority Queues and Sorting

机译:优先级队列与排序之间的对等关系

获取原文
获取原文并翻译 | 示例

摘要

We present a general deterministic linear space reduction from priority queues to sorting implying that if we can sort up to n keys in S(n) time per key, then there is a priority queue supporting delete and insert in O(S(n)) time and find-min in constant time. Conversely, a priority queue can trivially be used for sorting: first insert all keys to be sorted, then extract them in sorted order by repeatedly deleting the minimum. Asymptotically, this settles the complexity of priority queues in terms of that of sorting. Previously, at SODA'96, such a result was presented by the author for the special case of monotone priority queues where the minimum is not allowed to decrease. Besides nailing down the complexity of priority queues to that of sorting, and vice versa, our result yields several improved bounds for linear space integer priority queues with find-min in constant time: Deterministically. We get O(loglogn) update time using a sorting algorithm of Han from STOC'02. This improves the O((loglogn)(logloglogn)) update time of Han from SODA'01. Randomized. We get O((log log)~(1/2)n) expected update time using a randomized sorting algorithm of Han and Thorup from FOCS'02. This improves the O(loglogn) expected update time of Thorup from SODA'96. Deterministically in AC~0 (without multiplication). For any ε > 0, we get O((loglogn)~(1+ε)) update time using an AC~0 sorting algorithm of Han and Thorup from FOCS'02. This improves the O((log log n)~2) update time of Thorup from SODA'98. Randomized in AC~0. We get O(loglogn) expected update time using a randomized AC~0 sorting algorithm of Thorup from SODA'97. This improves the O((loglogn)~(1+ε)) expected update time of Thorup also from SODA'97. The above bounds assume that each integer is stored in a single word and that word operations take unit time as in the word RAM.
机译:我们提供了从优先级队列到排序的一般确定性线性空间缩减,这意味着如果我们可以在每个键的S(n)时间内对n个键进行排序,那么就有一个优先级队列支持在O(S(n))中进行删除和插入时间和固定时间的查找时间。相反,可以将优先级队列简单地用于排序:首先插入所有要排序的键,然后通过重复删除最小值来按排序顺序提取它们。渐近地,这从排序的角度解决了优先级队列的复杂性。以前,在SODA'96上,作者针对不允许降低最小值的单调优先级队列的特殊情况提出了这种结果。除了将优先级队列的复杂性降低到排序的复杂度(反之亦然)之外,我们的结果还为具有恒定时间find-min的线性空间整数优先级队列带来了几个改进的边界:确定性。我们使用来自STOC'02的Han排序算法获得O(loglogn)更新时间。这从SODA'01缩短了Han的O((loglogn)(logloglogn))更新时间。随机的。我们使用来自FOCS'02的Han和Thorup的随机排序算法获得O((log log)〜(1/2)n)预期更新时间。这改善了SODA'96中Thorup的O(loglogn)预期更新时间。确定性地为AC〜0(无乘法)。对于任何ε> 0,我们使用FOCS'02中Han和Thorup的AC〜0排序算法获得O((loglogn)〜(1 +ε))更新时间。这样可以缩短SODA'98中Thorup的O((log log n)〜2)更新时间。随机分配于AC〜0。我们使用SODA'97中Thorup的随机AC〜0排序算法获得O(loglogn)预期更新时间。这也改善了SODA'97中Thorup的O((loglogn)〜(1 +ε))预期更新时间。以上范围假定每个整数都存储在单个字中,并且字操作占用的时间与字RAM中的时间相同。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号