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 条
  • [41] Two new methods for constructing double-ended priority queues from priority queues
    Elmasry, Amr
    Jensen, Claus
    Katajainen, Jyrki
    COMPUTING, 2008, 83 (04) : 293 - 304
  • [42] Ergodicity of Two Class Priority Queues with Preemptive Priority
    Mistryukov A.V.
    Ushakov V.G.
    Journal of Mathematical Sciences, 2022, 267 (2) : 255 - 259
  • [43] PARAMETRIC PRIORITY RULES - AN APPROACH OPTIMIZATION IN PRIORITY QUEUES
    BALACHAN.KR
    OPERATIONS RESEARCH, 1970, 18 (03) : 526 - &
  • [44] Succinct Priority Indexing Structures for the Management of Large Priority Queues
    Wang, Hao
    Lin, Bill
    IWQOS: 2009 IEEE 17TH INTERNATIONAL WORKSHOP ON QUALITY OF SERVICE, 2009, : 268 - 272
  • [45] QUEUE LENGTH DEPENDENT PRIORITY QUEUES
    BALACHANDRAN, KR
    MANAGEMENT SCIENCE SERIES A-THEORY, 1971, 17 (07): : 463 - 471
  • [46] The effect of customer awareness on priority queues
    Wang, Zhongbin
    Fang, Lei
    NAVAL RESEARCH LOGISTICS, 2022, 69 (05) : 801 - 815
  • [47] Equivalence between priority queues and sorting
    Thorup, M
    FOCS 2002: 43RD ANNUAL IEEE SYMPOSIUM ON FOUNDATIONS OF COMPUTER SCIENCE, PROCEEDINGS, 2002, : 125 - 134
  • [48] Priority queues, pairing, and adaptive sorting
    Elmasry, A
    AUTOMATA, LANGUAGES AND PROGRAMMING, 2002, 2380 : 183 - 194
  • [49] PRIORITY QUEUES WITH RANDOM ORDER OF SERVICE
    DURR, L
    OPERATIONS RESEARCH, 1971, 19 (02) : 455 - &
  • [50] The priority token bank in a network of queues
    Lynn, MA
    Peha, JM
    ICC'97: 1997 IEEE INTERNATIONAL CONFERENCE ON COMMUNICATIONS - TOWARDS THE KNOWLEDGE MILLENNIUM, CONFERENCE RECORD - VOLS 1-3, 1997, : 1387 - 1391