Home » Programming & Data Structure » Programming and data structure miscellaneous » Question

Programming and data structure miscellaneous

Programming & Data Structure

  1. In a complete k-array tree, every internal node has exactly k children. The number of leaves in such a tree with n internal nodes is
    1. nk
    2. (n – 1) k + 1
    3. n (k – 1) + 1
    4. n (k – 1)
Correct Option: C

No. of internal nodes = n Each node has k children
So total nk
Leaf nodes = nk – n
= n(k – 1)
So considering not node also.
No. of leaf nodes = n(k – 1) + 1
Hence (c) is correct option.



Your comments will be displayed only after manual approval.