์๋ฃ๊ตฌ์กฐ) 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
- queue
- Android
- Algorithm
- OneToMany
- JPA
- Stack
- brute-force
- socket
- ํ๊ณ
- ํด์ธ์ฌํ
- FRAGMENT
- dfs
- bfs
- ์นํดํน
- Vo
- Data Structure
- ๊ฐ๋ฐ์
- webhacking.kr
- Android Studio
- git
- mysql
- sort
- graph
- C
- Java
- javascript
- ์ฐ์ํ ํ ํฌ์ฝ์ค
- reversing
- ํ๋ก๊ทธ๋๋จธ์ค
- ๋ฆฌ๋ฒ์ฑ
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |
๊ธ ๋ณด๊ดํจ