트리의 level과 depth에서...
위키에서는 트리의 level과 depth를 아래와 같이 정의하였던데...
Depth –The depth of a node is the number of edges from the node to the tree's root node.
Level – The level of a node is defined by 1 + the number of connections between the node and the root.
강의에서는 level과 depth를 같은 것으로 설명하셨더라구요. 어떤 것이 맞는지 궁금합니다.
comment