일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- architecture
- Pipelining
- DB
- system
- mysql
- php
- computer
- Java
- MIPS
- data structure
- html
- instruction
- control
- for
- web
- github
- MacOS
- Linux
- Algorithm
- DS
- DoM
- XML
- DATAPATH
- CSS
- javascript
- while
- function
- react
- python
- Class
- Today
- Total
목록DS (10)
YYYEJI
Left_Child-Right_Sibling이란? 트리(tree)를 이진트리(binary tree)로 변형하는 규칙입니다. left child와 right sibling을 기억해 주세요! 트리(tree) → 이진트리(binary tree) 아래의 트리(tree)를 이진트리(binary tree)로 변형해 보도록 하겠습니다. 처음에는 root(ⓐ)를 하나 그려줍니다. root node의 left child는 ⓑ 노드이고, root(ⓐ) 노드의 sibling(형제)은 없기 때문에 아래와 같이 그려집니다. ⓑ 노드의 left child는 ⓔ 노드이고, sibling(형제)는 ⓒ 노드입니다. ⓔ 노드의 child는 없고 sibling은 ⓕ 노드이며, ⓒ 노드의 child도 없고 sibling은 ⓓ 노드이므로 아..
트리(Tree)란? 트리(Tree)는 node로 이루어진 계층적 종속관계를 표현하는 비선형 자료구조입니다. - Root라는 특별한 node가 존재 - root와 연결된 n(>=0)개의 subtree로 구성 - subtree도 각각의 tree임 - 사이클(cycle)이 존재할 수 X 트리(Tree) 관련 용어(Terminology) Node - tree에서 data를 저장하는 기본 단위 원소 Root - 가장 상위에 있는 한 개의 node Branch - node와 node간의 연결 (parent - child) - branch로 연결된 두 node의 관계 Sibling - 동일한 parent를 갖는 nodes Degree - node의 차수 Degree of a node - node subtree의 개수..