retagged by
377 views
1 votes
1 votes

An $m-ary$ tree is a tree in which every node has at most $m$ children. 
In an $m-ary$ tree with $p$ nodes and height $l$ $($starting from $0)$, which of the following is the tightest upper bound for the maximum number of leaves as a function of $l$, $m$, and $p$?

  1.     $\lg m \times p$
  2.     $\lg m \times l \times \lg p$
  3.     $l^m$
  4.     $m^l$
retagged by

1 Answer

1 votes
1 votes
For the maximum number of children to leaf nodes, we have to attach  'm' children to every non-leaf nodes.

Height =0 Maximum Number of node= m^0=1

Height =1 Maximum Number of node= m^1=m

Height =2 Maximum Number of node= m^2

               .

               .

Height =l Maximum Number of node= m^l
Answer:

Related questions

0 votes
0 votes
1 answer
1