Height(T)≤log(34)log(weight(T))
Proof
- With IH as ∀k∈N,0≤k≤n,Height(T′)≤log(4/3)log(k+1) where size(T′)=k
- Then, size(T)+1
- =n+1 (where n=size(T))
- =l+r+1+1
- ≥3r+1+r+1 as l+1≥3r+1 by WBT condition
- =(r+1)∗4/3
- ⟹r+1≤4/3n+1
- WLOG, assume Height(T.left)<Height(T.right)
- Thus, height(T)=height(T.right)+1 by defn of height
- l=size(T.left)
- r=size(T.right)
- height(T.right)+1≤log(4/3)log(r+1)+1
- ≤log(4/3)log(4/3n+1)+1
- =log(4/3)log(n+1)