Calculate the number of vertices in a full 5-ary tree with 45 internal vertices.Also find out the number of leaves.
A full "m" ‐ary tree with "i" internal vertices has "n=m\\cdot i+1" vertices.
A full "m" ‐ary tree with "i" internal vertices has "l=(m-1)i+1" leaves.
Comments
Leave a comment