DEPTH counting starts at 1 at the root.
How many leaves does a 3-ary tree have if its depth is 8? (HINT: see the pattern for a full binary tree of depth n and modify it).
We observe the following for a full 3-ary tree :
So, as seen, the general formula for the number of leaves in a full 3-ary tree of depth n, is given by
= 3n - 1
Thus, for n = 8. the number of leaves is given by
= 38 - 1
= 37
= 2187
Get Answers For Free
Most questions answered within 1 hours.