The Height of an AVL Tree

An AVL tree is a binary search tree in which every node’s two subtrees differ in height by at most one. The height of a tree is the number of edges on its longest path from the root down to a leaf.

Solution

, a single node. , a root with one child. The smallest tree of height is a root with a smallest subtree of height and a smallest subtree of height , so

That gives , so .

Solution

. A tree of height needs at least nodes, and nodes are enough for that. A tree of height needs at least nodes, and nodes are not enough.

Solution

Let be the fewest nodes an AVL tree of height can have. Since , more than doubles every two levels, so . An AVL tree of height with nodes has , so , which is .