Definition: A tree in which every level, except possibly the deepest, is entirely filled. At depth n, the height of the tree, all nodes are as far left as possible.
Generalization (I am a kind of ...)
Specialization (... is a kind of me.)
complete binary tree, perfect k-ary tree.
See also complete graph.
Note: A complete tree may be viewed as a perfect k-ary tree possibly with additional leaf nodes at depth n+1, all toward the left.
What [CLR90, page 95] calls a complete tree, we call a perfect k-ary tree.
If you have suggestions, corrections, or comments, please get in touch with Paul Black.
Entry modified 26 May 2011.
HTML page formatted Wed Mar 13 12:42:45 2019.
Cite this as:
Paul E. Black, "complete tree", in Dictionary of Algorithms and Data Structures [online], Paul E. Black, ed. 26 May 2011. (accessed TODAY) Available from: https://www.nist.gov/dads/HTML/completetree.html