An in-place priority queue with O(1) Time for Push and lg n + O(1) comparisons for pop

Stefan Edelkamp, Amr Elmasry, Jyrki Katajainen

1 Citation (Scopus)

Abstract

An in-place priority queue is a data structure that is stored in an array, uses constant extra space in addition to the array elements, and supports the operations top (find-min), push (insert), and pop (delete-min). In this paper we introduce an in-place priority queue, for which top and push take O(1) worst-case time, and pop takes O(lg n) worst-case time and involves at most lg n + O(1) element comparisons, where n denotes the number of elements currently in the data structure. The achieved bounds are optimal to within additive constant terms for the number of element comparisons, hereby solving a long-standing open problem. Compared to binary heaps, we surpass the comparison bound for pop and the time bound for push. Our data structure is similar to a binary heap with two crucial differences: (1) To improve the comparison bound for pop, we reinforce a stronger heap order at the bottom levels of the heap such that the element at any right child is not smaller than that at its left sibling. (2) To speed up push, we buffer insertions and allow O(lg2 n) nodes to violate heap order in relation to their parents.

Original languageEnglish
Title of host publicationComputer science - theory and applications : 10th International Computer Science Symposium in Russia, CSR 2015, Listvyanka, Russia, July 13-17, 2015, Proceedings
EditorsLev D. Beklemishev, Daniil V. Musatov
Number of pages15
PublisherSpringer
Publication date2015
Pages204-218
ISBN (Print)978-3-319-20296-9
ISBN (Electronic)978-3-319-20297-6
DOIs
Publication statusPublished - 2015
EventInternational Computer Science Symposium in Russia 2015 - Listvyanka, Russian Federation
Duration: 13 Jul 201517 Jul 2015
Conference number: 10

Conference

ConferenceInternational Computer Science Symposium in Russia 2015
Number10
Country/TerritoryRussian Federation
CityListvyanka
Period13/07/201517/07/2015
SeriesLecture notes in computer science
Volume9139
ISSN0302-9743

Fingerprint

Dive into the research topics of 'An in-place priority queue with O(1) Time for Push and lg n + O(1) comparisons for pop'. Together they form a unique fingerprint.

Cite this