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 language | English |
---|---|
Title of host publication | Computer science - theory and applications : 10th International Computer Science Symposium in Russia, CSR 2015, Listvyanka, Russia, July 13-17, 2015, Proceedings |
Editors | Lev D. Beklemishev, Daniil V. Musatov |
Number of pages | 15 |
Publisher | Springer |
Publication date | 2015 |
Pages | 204-218 |
ISBN (Print) | 978-3-319-20296-9 |
ISBN (Electronic) | 978-3-319-20297-6 |
DOIs | |
Publication status | Published - 2015 |
Event | International Computer Science Symposium in Russia 2015 - Listvyanka, Russian Federation Duration: 13 Jul 2015 → 17 Jul 2015 Conference number: 10 |
Conference
Conference | International Computer Science Symposium in Russia 2015 |
---|---|
Number | 10 |
Country/Territory | Russian Federation |
City | Listvyanka |
Period | 13/07/2015 → 17/07/2015 |
Series | Lecture notes in computer science |
---|---|
Volume | 9139 |
ISSN | 0302-9743 |