这是算法理论中的一个简单问题. 它们之间的区别在于,在一种情况下,您可以计算根节点和具体节点之间最短路径上的节点数和其他边数. 哪个是哪个?
algorithm tree terminology nodes data-structures
根据维基百科,
树的高度是树中从根到最深节点的路径长度.只有一个节点(根)的(根)树的高度为零(或一).
我不明白 - 它是零还是一个(或两者)?
tree height binary-tree discrete-mathematics
tree ×2
algorithm ×1
binary-tree ×1
data-structures ×1
discrete-mathematics ×1
height ×1
nodes ×1
terminology ×1