A. Levitin “Introduction to the Design & Analysis of Algorithms,” 3rd ed., Ch. 6 ©2012 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved.
29
2-3 tree construction – an example2-3 tree construction – an example
Construct a 2-3 tree the list 9, 5, 8, 3, 2, 4, 7Construct a 2-3 tree the list 9, 5, 8, 3, 2, 4, 7
9
>
8
955, 9 5, 8, 9
8
93, 5
2, 3, 5
8
9
>
>
3, 8
92 5
3, 8
92 4, 5
3, 8
4, 5, 72 9
> 3, 5, 8
2 4 7 9
5
3
42
8
97
LEAVES?