K-ary Tree - Types of K-ary Trees

Types of K-ary Trees

  • A full k-ary tree is a k-ary tree where within each level every node has either 0 or k children.
  • A perfect k-ary tree is a full k-ary tree in which all leaf nodes are at the same depth.
  • A complete k-ary tree is a k-ary tree which is maximally space efficient. It must be completely filled on every level (meaning that each level has k children) except for the last level (which can have at most k children). However, if the last level is not complete, then all nodes of the tree must be "as far left as possible".

Read more about this topic:  K-ary Tree

Famous quotes containing the words types of, types and/or trees:

    “Our children evaluate themselves based on the opinions we have of them. When we use harsh words, biting comments, and a sarcastic tone of voice, we plant the seeds of self-doubt in their developing minds.... Children who receive a steady diet of these types of messages end up feeling powerless, inadequate, and unimportant. They start to believe that they are bad, and that they can never do enough.”
    —Stephanie Martson (20th century)

    “He types his laboured column—weary drudge!
    Senile fudge and solemn:
    Spare, editor, to condemn
    These dry leaves of his autumn.”
    —Robertson Davies (b. 1913)

    “If someone were to think that trees are made to support the sky, they would all seem too short.”
    —Franz Grillparzer (1791–1872)