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 E. Black.
Entry modified 26 May 2011.
HTML page formatted Thu May 26 15:59:49 2011.
Cite this as:
Paul E. Black, "complete tree", in Dictionary of Algorithms and Data Structures [online], Paul E. Black, ed., U.S. National Institute of Standards and Technology. 26 May 2011. (accessed TODAY) Available from: http://www.nist.gov/dads/HTML/completetree.html