This commit is contained in:
krahets
2023-08-27 23:41:10 +08:00
parent 8c9cf3f087
commit 016f13d882
66 changed files with 262 additions and 270 deletions

View File

@@ -3730,9 +3730,9 @@
<li>「叶节点 leaf node」没有子节点的节点其两个指针均指向 <span class="arithmatex">\(\text{None}\)</span></li>
<li>「边 edge」连接两个节点的线段即节点引用指针</li>
<li>节点所在的「层 level」从顶至底递增根节点所在层为 1 。</li>
<li>节点的「度 degree」节点的子节点的数量。在二叉树中度的取值范围是 0, 1, 2 。</li>
<li>节点的「度 degree」节点的子节点的数量。在二叉树中度的取值范围是 0、1、2 。</li>
<li>二叉树的「高度 height」从根节点到最远叶节点所经过的边的数量。</li>
<li>节点的「深度 depth」 :从根节点到该节点所经过的边的数量。</li>
<li>节点的「深度 depth」从根节点到该节点所经过的边的数量。</li>
<li>节点的「高度 height」从最远叶节点到该节点所经过的边的数量。</li>
</ul>
<p><img alt="二叉树的常用术语" src="../binary_tree.assets/binary_tree_terminology.png" /></p>