<1>depth and no. of entries
depth max no. of level
the min no. of nodes to reach depth d for a heap
= 1 + 2 + 4 +....+ 2d-1 + 1
= 2d
since
the total no. of nodes n
>= the min. no. of nodes to reach depth d
==> n >= 2d
==> log2 n >= d
<2> Worst-case Times for tree operations
The worst-case time performance for the
following operations are all O(d) . d : depth of tree
Note :
n ==> log2 n
2n ==> log2 n + 1