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 Citationer (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.

OriginalsprogEngelsk
TitelComputer science - theory and applications : 10th International Computer Science Symposium in Russia, CSR 2015, Listvyanka, Russia, July 13-17, 2015, Proceedings
RedaktørerLev D. Beklemishev, Daniil V. Musatov
Antal sider15
ForlagSpringer
Publikationsdato2015
Sider204-218
ISBN (Trykt)978-3-319-20296-9
ISBN (Elektronisk)978-3-319-20297-6
DOI
StatusUdgivet - 2015
BegivenhedInternational Computer Science Symposium in Russia 2015 - Listvyanka, Rusland
Varighed: 13 jul. 201517 jul. 2015
Konferencens nummer: 10

Konference

KonferenceInternational Computer Science Symposium in Russia 2015
Nummer10
Land/OmrådeRusland
ByListvyanka
Periode13/07/201517/07/2015
NavnLecture notes in computer science
Vol/bind9139
ISSN0302-9743

Fingeraftryk

Dyk ned i forskningsemnerne om 'An in-place priority queue with O(1) Time for Push and lg n + O(1) comparisons for pop'. Sammen danner de et unikt fingeraftryk.

Citationsformater