Trees - TOC
- Trees
- General Trees
- Binary Trees
- Implementing Trees
- Tree Traversal Algorithm
- Case Study: An Expression Tree
- Exercises
Exercises์ ํ๋ก์ ํธ๋ถํฐ ๋จผ์ ๋ณด๊ณ , top-down ์์ผ๋ก ์ ๊ทผํ๊ธฐ.
์ฑ
์ ๋ณด๊ณ ๋์ ๋จผ์ ์ดํดํ๊ณ , ์ฑ
์ ๋์ ์์ด ์ง์ ๋ค ํ์ด์ฌ์ผ๋ก ์ฝ๋ฉํด๋ณด๊ธฐ.
Goal
์ผ๋จ ์์์ ์๋ ๋๊ฐ ํ๋ก์ ํธ๋ฅผ ํด๋ณด๊ธฐ.
Project: P-8.65
Implement the tree ADT using a linked structure as described in Section
8.3.3. Provide a reasonable set of update methods for your tree.
linked structure๋ก ์ฑ
์ ๋จผ์ ๋์ค๋๊น. ์ด๊ฒ๋ถํฐ ๋จผ์ ๊ตฌํํด๋ณด๊ธฐ. ๊ทธ๋ฌ๊ณ ๋์ ์๊ฐ์ด ๋จ์ผ๋ฉด array indexing์ผ๋ก ๊ตฌํํด๋ณด๊ธฐ.
Project: P-8.64
Implement the binary tree ADT using the array-based representation described in Section 8.3.2.