이 자료 구조는 단일 루트 노드를 가지고 있으며, 각 노드는 선택적으로 왼쪽과 오른쪽 자식
노드를 가질 수 있습니다. 노드의 숫자는 순회의 순서가 아니라 식별을 위한 것입니다.
루트
1
2
4
7
3
5
8
6
9
그림
12-2
트리 형태의 자료 구조 순회 트리 형태의 자료 구조 순회
노드들은 [예제
12
-
3
]에서 보인 것처럼 일반적인 레코드
Node
<
T
>
로 표현됩니다.
415 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.