Question: Let T be a binary tree such that all the external nodes have the same depth. Let De be the sum of the depths of
Let T be a binary tree such that all the external nodes have the same depth. Let De be the sum of the depths of all the external nodes of T, and let Di be the sum of the depths of all the internal nodes of T. Find constants a and b such that
![]()
where n is the number of nodes of T.
De +1 = aD; + bn,
Step by Step Solution
3.45 Rating (161 Votes )
There are 3 Steps involved in it
Given a binary tree T with n external nodes the sum of the depths ... View full answer
Get step-by-step solutions from verified subject matter experts
