|
Introduction
Syllabus
Guidelines for labs
Lab sections
Take quiz & check grades
| |
Properties:
 | height of the heap (maximum distance from a node to the root) is TETA(lg n)
 | since the heap is based on a complete binary tree. |
|
 | most operations run in time proportional to the height of the tree, therefore O(lg
n) |
Structure:
- typedef struct
- {
- recordtype array[N];
- int heapsize;
- int arraysize;
- }aheap;
|