File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
docs/cs-basics/data-structure Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -51,34 +51,34 @@ public class Node {
5151
5252### 1.左倾染色
5353
54- ![ 幻灯片1] ( D:\Desktop\JavaGuide\docs\cs-basics\data-structure\ pictures\ 红黑树\ 红黑树1.PNG)
54+ ![ 幻灯片1] ( pictures/ 红黑树/ 红黑树1.PNG )
5555
5656- 染色时根据当前节点的爷爷节点,找到当前节点的叔叔节点。
5757- 再把父节点染黑、叔叔节点染黑,爷爷节点染红。但爷爷节点染红是临时的,当平衡树高操作后会把根节点染黑。
5858
5959### 2.右倾染色
6060
61- ![ 幻灯片2] ( D:\Desktop\JavaGuide\docs\cs-basics\data-structure\ pictures\ 红黑树\ 红黑树2.PNG)
61+ ![ 幻灯片2] ( pictures/ 红黑树/ 红黑树2.PNG )
6262
6363### 3.左旋调衡
6464
6565#### 3.1一次左旋
6666
67- ![ 幻灯片3] ( D:\Desktop\JavaGuide\docs\cs-basics\data-structure\ pictures\ 红黑树\ 红黑树3.PNG)
67+ ![ 幻灯片3] ( pictures/ 红黑树/ 红黑树3.PNG )
6868
6969#### 3.2右旋+左旋
7070
71- ![ 幻灯片4] ( D:\Desktop\JavaGuide\docs\cs-basics\data-structure\ pictures\ 红黑树\ 红黑树4.PNG)
71+ ![ 幻灯片4] ( pictures/ 红黑树/ 红黑树4.PNG )
7272
7373### 4.右旋调衡
7474
7575#### 4.1一次右旋
7676
77- ![ 幻灯片5] ( D:\Desktop\JavaGuide\docs\cs-basics\data-structure\ pictures\ 红黑树\ 红黑树5.PNG)
77+ ![ 幻灯片5] ( pictures/ 红黑树/ 红黑树5.PNG )
7878
7979#### 4.2左旋+右旋
8080
81- ![ 幻灯片6] ( D:\Desktop\JavaGuide\docs\cs-basics\data-structure\ pictures\ 红黑树\ 红黑树6.PNG)
81+ ![ 幻灯片6] ( pictures/ 红黑树/ 红黑树6.PNG )
8282
8383** 红黑树的应用** :TreeMap、TreeSet 以及 JDK1.8 的 HashMap 底层都用到了红黑树。
8484
You can’t perform that action at this time.
0 commit comments