์๋ฃ๊ตฌ์กฐ) Tree, Binary Tree (ํธ๋ฆฌ, ์ด์งํธ๋ฆฌ)
Tree ์ฉ์ด : Root, Child, Parent, Siblings, Leaf=Terminal, Branch=Internal, Degree, Height, Level => ๋ชจ๋ ๋ ธ๋์ Degree(์ฐจ์)๊ฐ 2์ดํ Binary Tree ๊ตฌํ ์์ฐจ ์๋ฃ๊ตฌ์กฐ (ex. ๋ฐฐ์ด) Node (of Node i)IndexConditionParentfloor( i/2 )i > 1Left Child2i2i ≤ nRight Child2i+1(2i+1) ≤ nRoot10 < n ์ฐ๊ฒฐ ์๋ฃ๊ตฌ์กฐ (ex. ํ๋จ ์ฝ๋) class TreeNode { Object data; TreeNode left; TreeNode right; }Traversal (์ํ) : Pre-order, In-order, Post-order D L R (..
Data Structure
2019. 9. 12. 19:10
๊ณต์ง์ฌํญ
์ต๊ทผ์ ์ฌ๋ผ์จ ๊ธ
์ต๊ทผ์ ๋ฌ๋ฆฐ ๋๊ธ
- Total
- Today
- Yesterday
TAG
- brute-force
- socket
- OneToMany
- dfs
- mysql
- FRAGMENT
- Vo
- Algorithm
- JPA
- ํ๋ก๊ทธ๋๋จธ์ค
- ์นํดํน
- Android Studio
- ๊ฐ๋ฐ์
- Data Structure
- ์ฐ์ํ ํ ํฌ์ฝ์ค
- queue
- sort
- bfs
- javascript
- Stack
- ํด์ธ์ฌํ
- webhacking.kr
- graph
- ํ๊ณ
- Android
- reversing
- Java
- C
- git
- ๋ฆฌ๋ฒ์ฑ
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |
๊ธ ๋ณด๊ดํจ