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:

    ... there are two types of happiness and I have chosen that of the murderers. For I am happy. There was a time when I thought I had reached the limit of distress. Beyond that limit, there is a sterile and magnificent happiness.
    Albert Camus (1913–1960)

    The American man is a very simple and cheap mechanism. The American woman I find a complicated and expensive one. Contrasts of feminine types are possible. I am not absolutely sure that there is more than one American man.
    Henry Brooks Adams (1838–1918)

    The trees are coming into leaf
    Like something almost being said....
    Philip Larkin (1922–1986)