A Note on the Construction of Data Structure "DEAP"
暂无分享,去创建一个
The d&p, recently proposed by Svante Carlsson [2], is an efficient implementation of a doubl*ended priority queue. The deap is a variation of the heap [8] and was proposed as an alternative to the min~max heap [1,4,6]. The operations FindMn and FindMax can be performed in O(1) comparisons, DeleteMin and Delete&x in O(log n) comparisons, Insert in O(log log n) comparisons and Create in O(n) comparisons. In this note we present some new results on the cost of constructing the deap. In particular, for a deap on n elements: l 2.07.. . n 2 log a comparisons are necessary, in the worst and average cases, to construct the deap; this improves the previous lower bound of roughly #n comparisons. 0 2.49.. . n comparisons are sufficient, in the worst case, to construct the deap; this result corrects the originally claimed upper bound of 2.07n comparisons [2], which we here show to be incorrect.
[1] Jörg-Rüdiger Sack,et al. Bounds for min-max heaps , 1987, BIT.
[2] Nicola Santoro,et al. Min-max heaps and generalized priority queues , 1986, CACM.
[3] Patrik Eriksson,et al. Two New Algorithms for Constructing Min-Max Heaps , 1988, SWAT.
[4] Svante Carlsson,et al. The Deap-A Double-Ended Heap to Implement Double-Ended Priority Queues , 1987, Inf. Process. Lett..
[5] Jean Vuillemin,et al. A data structure for manipulating priority queues , 1978, CACM.