Binary Search Trees Chapter 19

Binary Search Trees Chapter 19 Binary Search Trees Chapter 19

axon.cs.byu.edu
from axon.cs.byu.edu More from this publisher
10.07.2015 Views

Figure 19.34A red–black tree: The insertion sequence is 10, 85, 15, 70, 20, 60, 30, 50, 65, 80, 90,40, 5, and 55 (shaded nodes are red).Data Structures & Problem Solving using JAVA/2E Mark Allen Weiss © 2002 Addison Wesley

Figure 19.35If S is black, a single rotation between parent and grandparent, with appropriatecolor changes, restores property 3 if X is an outside grandchild.Data Structures & Problem Solving using JAVA/2E Mark Allen Weiss © 2002 Addison Wesley

Figure <strong>19</strong>.34A red–black tree: The insertion sequence is 10, 85, 15, 70, 20, 60, 30, 50, 65, 80, 90,40, 5, and 55 (shaded nodes are red).Data Structures & Problem Solving using JAVA/2E Mark Allen Weiss © 2002 Addison Wesley

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!