Question: Define the internal path length, I(T), of a tree T to be the sum of the depths of all the internal positions in T. Likewise,
Define the internal path length, I(T), of a tree T to be the sum of the depths of all the internal positions in T. Likewise, define the external path length, E(T), of a tree T to be the sum of the depths of all the external positions in T. Show that if T is a proper binary tree with n positions, then E(T) = I(T)+n−1.
Step by Step Solution
3.43 Rating (150 Votes )
There are 3 Steps involved in it
The proof for this statement is based on the fact that for any proper binary tre... View full answer
Get step-by-step solutions from verified subject matter experts
