I am stuck on the induction case of a problem.
The problem:
Define the height of a tree as the maximum number of edges between the root and any leaf. We consider the height of an empty tree to be -1, and the height of a tree consisting of a single node to be 0. Prove by induction that every non-empty binary tree of height h contains fewer than 2 (h+1) nodes.
So I started:
Base case: h = 0 (Since a non-empty tree consists of a single node
or
more, the first case would be an empty node)
= 2 (0+1) = 2(1)= 2 When height is 0 the tree consists of a single, so yes 1 node is less than 2 nodes. Inductive step = h less than or greater to 0 This is where I am stuck... I know that the statement is true, since the height will always be 1 less than the number of nodes, I just don't know how to prove it algebraically.
Thanks in advance.