Affiliation:
1. Carleton Univ., Ottawa, Ont., Canada
2. Univ. Stuttgart, Stuttgart, W. Germany
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.
Publisher
Association for Computing Machinery (ACM)
Reference11 articles.
1. Algorithm 245: Treesort
2. Gannet G.H. Handbook ofAlgorithms and Data Structures. Addison- Wesley Reading Mass. 1984. Gannet G.H. Handbook ofAlgorithms and Data Structures. Addison- Wesley Reading Mass. 1984.
Cited by
106 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献