로그인 바로가기 하위 메뉴 바로가기 본문 바로가기

자료구조 및 알고리즘 개론 II

임시 이미지 KAIST 산업및시스템공학과 문일철 교수 KOOC (KAIST Open Online Course)
http://www.edwith.org/intro-data-and-algo-2-2018/forum/5988
좋아요 49 수강생 1971

트리의 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를 같은 것으로 설명하셨더라구요. 어떤 것이 맞는지 궁금합니다.