This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* C++ ์ด์ฉํ์ฌ Red Black Tree ๊ตฌํํ๊ธฐ | |
* | |
* ๋ชฉ์ : Red Black Tree ๊ณต๋ถ ํ๊ธฐ ์ํด ์์ฑํ์ผ๋ฉฐ, | |
* C++ ์ด์ฉํ์ฌ ์์ฑํ์๋ ๋ถ๋ค์๊ฒ ๋์์ด ๋๊ณ ์ ํ๋ค. | |
* | |
* ์ค๋ช : key ๊ฐ์ int๋ง ๊ฐ๋ฅ ํ๋ฉฐ ์ค๋ณต key๋ ํ์ฉ x | |
* ์ด์ค ์ฐ๊ฒฐ ๋ฆฌ์คํธ๋ก ๊ตฌํ | |
* Red / Black์ ์๋ณํ๊ธฐ ์ฝ๊ฒ enum์ด์ฉ ํ์ผ๋ฉฐ, bool ์ด์ฉ์ ๋ฐ์ดํฐ ํฌ๊ธฐ ์ ์ฝ | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* C++ ์ด์ฉํ์ฌ Splay Tree ๊ตฌํํ๊ธฐ | |
* | |
* ๋ชฉ์ : Splay Tree ๊ณต๋ถ ํ๊ธฐ ์ํด ์์ฑํ์ผ๋ฉฐ, | |
* C++ ์ด์ฉํ์ฌ ์์ฑํ์๋ ๋ถ๋ค์๊ฒ ๋์์ด ๋๊ณ ์ ํ๋ค. | |
* | |
* ์ค๋ช : key ๊ฐ์ int๋ง ๊ฐ๋ฅ ํ๋ฉฐ ์ค๋ณต key๋ ํ์ฉ x | |
* ๋จ์ ์ฐ๊ฒฐ ๋ฆฌ์คํธ๋ก ๊ตฌํ | |
* | |
* class SplayTree |
OlderNewer