Bounds for min-max heaps
type: Item
instance of: scholarly article
title: Bounds for min-max heaps
zbMATH Open document ID: 0642.68056
DOI: 10.1007/BF01933726
author: Jörg-Rüdiger Sack
author: Alnoor Hasham
published in: BIT
publication date: 1987-01-01T00:00:00Z
review text: Very recently a new data structure, called a min-max heap, was presented for implementing the double-ended priority queue. A min-max heap on n keys is constructed in O(n) time; the minimum and maximum keys are found in constant time, and the operations of deleting the minimum, deleting the maximum and inserting a new key into the heap are performed in O(log n) time. In addition, the data structure can be stored implicitly, i.e. in an array of n elements without using any additional pointers. In this paper, we present lower bound results on the number of comparisons required, in the worst case, for the operations i) to construct a min-max heap on a given set of keys; ii) to convert a min-max heap into a max-min heap; and iii) to merge two min-max heaps into one min-max heap. New upper bounds for the convert and merge operations are also derived. It is found that the main difference between traditional heaps and min-max heaps lies in the time needed to perform the merge operation. While traditional heaps can be merged efficiently, it is shown that min-max heaps are not sublinearly mergeable. Even the seemingly simple task of converting a min-max heap into a max-min heap cannot be performed in less than linear time.
Mathematics Subject Classification ID: 68M20
Mathematics Subject Classification ID: 68Q25
Mathematics Subject Classification ID: 68P05
zbMATH DE Number: 4047085
zbMATH Keywords: double-ended priority queue
zbMATH Keywords: min-max heaps
Wikidata QID: Q62037532
describes a project that uses: heapsort
MaRDI profile type: Publication
cites work: Q4091421
cites work: Min-max heaps and generalized priority queues
cites work: A Counting Approach to Lower Bounds for Selection Problems
cites work: Q3945583
cites work: Q5585020
cites work: Q3026346
description: scientific article; zbMATH DE number 4047085