|
ABSTRACT
In this paper, we investigate the complexity of heaps. In particular, we study the construction problem and the search problem for heaps. We derive an adversary-based lower bound for the heap construction problem. It is shown that 1.5(n + 1)–log(n + 1)–2 comparisons are necessary to construct a heap of size n in the worst case. This is the first non-trivial adversary lower bound for this problem, which improves the previous best lower bound based on an information theoretical argument for the heap construction. Furthermore, we prove fairly trivial tight upper and lower bounds on the number of comparisons needed to search for a given element in a heap. An optimal 3/4n-time search algorithm is presented. Our lower bound for searching is also demonstrated by an adversary argument, which improves the information theory bound for the problem as well.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
1
|
M. Aigner: Producing posets. Discrete Mathematics 35 (1981), 1-15.
|
| |
2
|
M. J. Atallah and S. R. Kosaraju' An adversary-based lower bound for sorting. Information Processing Letters 13 (1981), 55- 57.
|
| |
3
|
M. D. Atkinson: The complexity of orders. Proceedings of the NATO Advanced Study Institute on Algorithms and Orders (1987), 195-230.
|
 |
4
|
|
| |
5
|
B. Bollob~s and I. Simon: Repeated random insertion into a priority queue. Journal of Algorithms 6 (1985), 466~477.
|
| |
6
|
|
| |
7
|
S. Carlsson and J. Chen: A new lower bound for heap construction. Technical Report LU- CS-TR:90-67, Department of Computer Science, Lund University, 1990.
|
| |
8
|
J. Chen, S. Carlsson and Th. Strothotte: Bounds for Producing Partial Orders. Proceedings of the International Conference for Young Computer Scientists (1991), 275-279.
|
| |
9
|
|
 |
10
|
|
 |
11
|
|
| |
12
|
|
| |
13
|
|
| |
14
|
|
| |
15
|
|
| |
16
|
A. Sch5nhage: The production of partial orders. Astdrisque 38-39 (1976), 229-246.
|
| |
17
|
A. Sch5nhage, M. Paterson and N. Pippenger: Finding the median. Journal of Computer and System Sciences 13 (1976), 184-199.
|
| |
18
|
J. W. J. Williams: Algorithm 232: Heapsort. Communications of the ACM 7 (1964), 347- 348.
|
| |
19
|
|
Peer to Peer - Readers of this Article have also read:
-
Data structures for quadtree approximation and compression
Communications of the ACM
28, 9
Hanan Samet
-
A hierarchical single-key-lock access control using the Chinese remainder theorem
Proceedings of the 1992 ACM/SIGAPP Symposium on Applied computing
Kim S. Lee
, Huizhu Lu
, D. D. Fisher
-
An intelligent component database for behavioral synthesis
Proceedings of the 27th ACM/IEEE conference on Design automation
Gwo-Dong Chen
, Daniel D. Gajski
-
The GemStone object database management system
Communications of the ACM
34, 10
Paul Butterworth
, Allen Otis
, Jacob Stein
-
Putting innovation to work: adoption strategies for multimedia communication systems
Communications of the ACM
34, 12
Ellen Francik
, Susan Ehrlich Rudman
, Donna Cooper
, Stephen Levine
|