Title: Splay Tree
1Splay Tree
- ???? ????? ?- Amortized Time
?
?
2????? ????
??? ?? ????? ?????? ???? ?? Rotate
3(No Transcript)
4(No Transcript)
5????? ???
???? k3 ???? (????) ?????? ?????? ?? k1
6?????
7(No Transcript)
8?
9Zig-zag
Zig-zig
10???? ??????
11Splaying at Node 1
12????? (???? ????? ????? ?????? ????? ????)
13???? ?????
14???? ?????
???? ?????
15??? ?????
??? ?????
16Result of splaying at node 1 a tree of all left
children
???? ????? ??????
17Result of splaying previous tree at node 2
18Result of splaying previous tree at node 3
19Result of splaying previous tree at node 4
20Result of splaying previous tree at node 5
21Result of splaying previous tree at node 6
22Result of splaying previous tree at node 7
23Result of splaying previous tree at node 8
24Result of splaying previous tree at node 9
25?????
1) ?????? ????? - ?????? ?????? ??? ?? ??? (???
???? ??? ??????)
?
Amortized?