SLIDE 1
Homework 4 Due Thursday Oct 7
- CLRS 12-4 (number of binary trees)
- CLRS 13.3-6 (rb insert implementation)
1
Homework 4 Due Thursday Oct 7 CLRS 12-4 (number of binary trees) - - PDF document
Homework 4 Due Thursday Oct 7 CLRS 12-4 (number of binary trees) CLRS 13.3-6 (rb insert implementation) 1 Chapter 13: Red-Black Trees A red-black tree is a node-colored BST. Each node is colored either black or red. The following special
1
2
3
4
5
6
7
8
9
10
11
new−x new−p new−s left−rotate at p new−d new−e
swap colors
right−rotate at g violation resolved 12
13
14
15
16
17
swap colors left−rotate
right−rotate
left−rotate
swap colors
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33