Practical Applicability of Advanced Implementations of Priority Queues in Finding Shortest Paths

Michal Mrena, P. Sedlaček, M. Kvassay
{"title":"Practical Applicability of Advanced Implementations of Priority Queues in Finding Shortest Paths","authors":"Michal Mrena, P. Sedlaček, M. Kvassay","doi":"10.1109/DT.2019.8813457","DOIUrl":null,"url":null,"abstract":"A priority queue belongs to most useful abstract data types. It plays a key role in graph algorithms, such as Dijkstra’s or Prim’s algorithm, in data mining algorithms, such as OPTICS, in discrete-event simulation, or in CPU scheduling. Various implementations of priority queues have been proposed during years. Most powerful ones are based on heap data structure that allows performing inserts and removals in O(log n) time. Using specialized heaps, such as pairing or Fibonacci, inserts can be done in O(1) time. Furthermore, Fibonacci heap or more complex heaps, such as Brodal queue or strict Fibonacci heap, support execution of another operation that is increment of priority of any element stored in the priority queue in O(1) time. This fact can be used to decrease time complexity of various algorithms that use priority queues. On the other hand, the constant factors hidden behind O notation of most of the operations can be really big what can significantly decrease practical applicability of these advanced implementations of priority queues. In this paper, we focus on three implementations of priority queues that are Fibonacci heap, Brodal queue, and strict Fibonacci heap, and we try to investigate their applicability in Dijkstra’s algorithm implemented in C++ programing language.","PeriodicalId":357704,"journal":{"name":"2019 International Conference on Information and Digital Technologies (IDT)","volume":"58 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2019-06-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2019 International Conference on Information and Digital Technologies (IDT)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/DT.2019.8813457","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

A priority queue belongs to most useful abstract data types. It plays a key role in graph algorithms, such as Dijkstra’s or Prim’s algorithm, in data mining algorithms, such as OPTICS, in discrete-event simulation, or in CPU scheduling. Various implementations of priority queues have been proposed during years. Most powerful ones are based on heap data structure that allows performing inserts and removals in O(log n) time. Using specialized heaps, such as pairing or Fibonacci, inserts can be done in O(1) time. Furthermore, Fibonacci heap or more complex heaps, such as Brodal queue or strict Fibonacci heap, support execution of another operation that is increment of priority of any element stored in the priority queue in O(1) time. This fact can be used to decrease time complexity of various algorithms that use priority queues. On the other hand, the constant factors hidden behind O notation of most of the operations can be really big what can significantly decrease practical applicability of these advanced implementations of priority queues. In this paper, we focus on three implementations of priority queues that are Fibonacci heap, Brodal queue, and strict Fibonacci heap, and we try to investigate their applicability in Dijkstra’s algorithm implemented in C++ programing language.
优先级队列高级实现在最短路径查找中的实际应用
优先级队列属于最有用的抽象数据类型。它在图算法(如Dijkstra或Prim算法)、数据挖掘算法(如OPTICS)、离散事件模拟或CPU调度中起着关键作用。多年来,人们提出了各种优先级队列的实现方法。最强大的是基于堆数据结构,允许在O(log n)时间内执行插入和删除。使用特殊的堆,比如配对或斐波那契,插入可以在0(1)时间内完成。此外,Fibonacci堆或更复杂的堆,如Brodal队列或严格Fibonacci堆,支持执行另一种操作,即在O(1)时间内增加存储在优先级队列中的任何元素的优先级。这一事实可用于降低使用优先级队列的各种算法的时间复杂度。另一方面,隐藏在大多数操作的0符号后面的常数因素可能非常大,这可能会大大降低这些高级优先级队列实现的实际适用性。本文重点研究了Fibonacci堆、Brodal队列和严格Fibonacci堆这三种优先级队列的实现方法,并探讨了它们在Dijkstra算法中c++语言实现的适用性。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书