Min-max heaps and generalized priority queues
- 1 October 1986
- journal article
- Published by Association for Computing Machinery (ACM) in Communications of the ACM
- Vol. 29 (10) , 996-1000
- https://doi.org/10.1145/6617.6621
Abstract
A simple implementation of double-ended priority queues is presented. The proposed structure, called a min-max heap, can be built in linear time; in contrast to conventional heaps, it allows both FindMin and FindMax to be performed in constant time; Insert, DeleteMin, and DeleteMax operations can be performed in logarithmic time. Min-max heaps can be generalized to support other similar order-statistics operations efficiently (e.g., constant time FindMedian and logarithmic time DeleteMedian); furthermore, the notion of min-max ordering can be extended to other heap-ordered structures, such as leftist trees.Keywords
This publication has 3 references indexed in Scilit:
- An algorithm for merging heapsActa Informatica, 1985
- Implicit data structures (Preliminary Draft)Published by Association for Computing Machinery (ACM) ,1979
- Algorithm 245: TreesortCommunications of the ACM, 1964