If I have a complete binary tree and I need to find the average number of comparison to find any random key. Can I use this strategy like :-
We can keep track of number of nodes per level and apply:-
Summation (Level * number of nodes at that level) / total number of nodes.
Here summation is Sigma.
And here I will consider level of root = 0 or 1 ?
Well defaUlt we tAke as 0 but still...