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.
Authors differ in their definitions. 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 16 January 2020.
HTML page formatted Tue Jan 21 16:28:40 2020.
Cite this as:
Paul E. Black, "complete tree", in Dictionary of Algorithms and Data Structures [online], Paul E. Black, ed. 16 January 2020. (accessed TODAY) Available from: https://www.nist.gov/dads/HTML/completetree.html