知识卡片
深度高度按边数衡量
- 节点深度是根到该节点路径的边数;
- 节点高度是它到叶子的最长向下路径边数。
整棵树高度等于根的高度,也等于所有节点中的最大深度。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 附录B 集合等离散数学基础 · 查看原书依据
The length of the simple path from the root r to a node x is the depth of x in T. A level of a tree consists of all nodes at the same depth. The height of a node in a tree is the number of
参考来源
- 位置:《算法导论(第4版)》附录B《集合等离散数学基础》(OEBPS/appendix002.xhtml,文本字符[35000,40000))。
- 结论依据:附录B树的证明和定义、图着色问题;图B.6–B.8及对应公式图已查看。
- 原始内容:The length of the simple path from the root r to a node x is the depth of x in T . A level of a tree consists of all nodes at the same depth. The height of a node in a tree is the number of