• For an
m-ary tree with height
h, the upper bound for the maximum number of leaves is m^h. • The height
h of an
m-ary tree does not include the root node, with a tree containing only a root node having a height of 0. • The height of a tree is equal to the maximum depth
D of any node in the tree. • The total number of nodes N in a complete
m-ary tree is \sum_{i=0}^h m^i = \frac{m^{h+1} - 1}{m-1}, while the height
h is \begin{align} & \frac{m^{h+1} - 1}{m-1} \geq N > \frac{m^h - 1}{m-1} \\[8pt] & m^{h+1} \geq (m - 1) \cdot N + 1 > m^h \\[8pt] & h+1 \geq \log_m \left((m - 1) \cdot N + 1\right) > h \\[8pt] & h \ge \left\lceil\log_m ((m - 1) \cdot N + 1) - 1\right\rceil. \end{align} By the definition of Big-Ω, the maximum depth D = h \ge \left\lceil\log_m ((m - 1) \cdot N + 1) - 1\right\rceil =O(\log_m n) = O(\log n/\log m). • The height of a complete
m-ary tree with
n nodes is \lfloor \log_m ((m-1)\cdot n) \rfloor. • The total number of possible
m-ary tree with
n nodes is C_n = \frac{1}{(m-1)n+1} \cdot \binom{m \cdot n}{n} (which is a
Catalan number). == Traversal methods for
m-ary trees==