目录
一,满二叉树
除最后一层无任何子节点外,每一层上的所有结点都有两个子结点的二叉树,叫满二叉树。
也就是说,如果一个二叉树的层数为k,且结点总数是(2^k) -1 ,则它就是满二叉树,反之亦然。
二,FBT(Full Binary Tree)
A binary tree in which each node has exactly zero or two children.
In other words, every node is either a leaf or has two children.
For efficiency, any Huffman coding is a full binary tree.
虽然Full Binary Tree翻译过来就是满二叉树,但是因为国内外定义不同,所以我用满二叉树和FBT这2个不同的词来表示。
三,PBT(Perfect Binary Tree)
A binary tree with all leaf nodes at the same depth. All internal nodes have degree 2.
这个定义其实就是上面的满二叉树的定义。
因为中文只有一个词,而英文有2个词,所以以后我会尽量用FBT(Full Binary Tree)和PBT(Perfect Binary Tree)来表述。
四,关系总结
PBT是FBT中的一种特例,满二叉树是FBT的直译,却是PBT的意译。