I know that the number of leaves in a binary tree of height h
can be at most 2^h
, and I also know how to prove this using induction. Where do I go from here?
I found this previously answered question, but this doesn't make any sense to me because I don't understand what the proof by contradiction in the theorem section has anything to do with a binary tree's height being at least log(n)
. I was expecting him to talk about how log(n)
relates to the number of leaves and height, but instead he goes on to talk about how to do a proof by contradiction using n = 2^a + b
.
Can anyone help me understand how we can prove that the height of a BT with n leaves will be at least log n?