Priority queues with decreasing keys

被引:0
|
作者
Brodal, Gerth Stolting [1 ]
机构
[1] Aarhus Univ, Dept Comp Sci, Aabogade 34, DK-8200 Aarhus, Denmark
关键词
Priority queue; Decreasing keys; Post-order heap; Dijkstra's algorithm; FIBONACCI HEAPS;
D O I
10.1016/j.tcs.2024.114563
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
A priority queue stores a multiset of items, each item being a (key, value) pair, and supports the insertion of a new item and extraction of an item with minimum key. In applications like Dijkstra's single source shortest path algorithm and Prim-Jarn & iacute;k's minimum spanning tree algorithm, the key of an item can decrease over time. Usually this is handled by either using a priority queue supporting the deletion of an arbitrary item or a dedicated Decrease Key operation, or by inserting the same item multiple times but with decreasing keys. In this paper we study what happens if the keys associated with the items in a priority queue can decrease over time without informing the priority queue, and how such a priority queue can be used in Dijkstra's algorithm. We show that binary heaps with bottom-up insertions fail to report items with unchanged keys in correct order, while binary heaps with top-down insertions report items with unchanged keys in correct order. Furthermore, we show that skew heaps, leftist heaps, and priority queues based on linking the roots of heap-ordered trees, like pairing heaps, binomial queues and Fibonacci heaps, work correctly with decreasing keys without any modifications. Finally, we show that the post-order heap by Harvey and Zatloukal, a variant of a binary heap with amortized constant time insertions and amortized logarithmic time deletions, works correctly with decreasing keys and is a strong contender for an implicit priority queue supporting decreasing keys in practice.
引用
收藏
页数:14
相关论文
共 50 条
  • [31] Priority queues with Bernoulli schedules
    Katayama, T
    TELETRAFFIC CONTRIBUTIONS FOR THE INFORMATION AGE, 1997, 2 : 309 - 318
  • [32] On packet marking at priority queues
    Gibbens, RJ
    Kelly, FP
    IEEE TRANSACTIONS ON AUTOMATIC CONTROL, 2002, 47 (06) : 1016 - 1020
  • [33] On priority queues with impatient customers
    Iravani, Foad
    Balcioglu, Baris
    QUEUEING SYSTEMS, 2008, 58 (04) : 239 - 260
  • [34] Fast meldable priority queues
    Brodal, GS
    ALGORITHMS AND DATA STRUCTURES, 1995, 955 : 282 - 290
  • [35] Permuting machines and priority queues
    Aldred, REL
    Atkinson, MD
    van Ditmarsch, HP
    Handley, CC
    Holton, DA
    McCaughan, DJ
    THEORETICAL COMPUTER SCIENCE, 2005, 349 (03) : 309 - 317
  • [36] PRIORITY-QUEUES WITH FEEDBACK
    SIMON, B
    JOURNAL OF THE ACM, 1984, 31 (01) : 134 - 149
  • [37] Priority queues on parallel machines
    Brodal, GS
    PARALLEL COMPUTING, 1999, 25 (08) : 987 - 1011
  • [38] PRIORITY-QUEUES AND PERMUTATIONS
    ATKINSON, MD
    BEALS, R
    SIAM JOURNAL ON COMPUTING, 1994, 23 (06) : 1225 - 1230
  • [39] Priority queues with binary priorities
    Kalorkoti, K
    Tulley, DH
    THEORETICAL COMPUTER SCIENCE, 2001, 262 (1-2) : 133 - 144
  • [40] Two new methods for constructing double-ended priority queues from priority queues
    Amr Elmasry
    Claus Jensen
    Jyrki Katajainen
    Computing, 2008, 83 : 193 - 204