Rooted Trees. More definitions. root. internal vertex. descendants of g. ancestor of d. leaf. parent of d. child of c. subtree. sibling of d.
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
descendants of g
ancestor of d
parent of d
child of c
sibling of d
Definition 2. A rooted tree is called an m-ary tree if every internal vertex has no more than m children. The tree is called a full m-ary tree if every internal vertex has exactly m children. An m-ary tree with m = 2 is called a binary tree.
Are these full m-ary trees?
Theorem 2. A tree with n vertices has n - 1 edges
Theorem 3. A full m-ary tree with i internal vertices contains n = mi + 1 vertices
i = 4 internal vertices
m = 3
n = 3 × 4 + 1 = 13
Corollary 1. If an m-ary tree of height h has l leaves, then h logml. If the m-ary tree is full and balanced, then h = logml.