The total external path length, of a binary tree with external nodes is, , where is the path length of external node ),
View worked solution
Answer: B
The total external path length () of a binary tree with external nodes is the sum of the depths of all external nodes. Let denote the depth of the -th external node for . Thus, .
By Kraft's Inequality for any binary tree, the depths of the external nodes must satisfy:
Using the properties of entropy or Gibbs' inequality, we can find the minimum value of . Let for all . Then:
This lower bound is achieved when the binary tree is perfectly balanced, where each external node has a depth of approximately . Therefore, always holds.
Free practice · Your answers on this page are not saved.
