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.36If S is black, a double rotation involving X, the parent, and the grandparent, withappropriate color changes, restores property 3 if X is an inside grandchild.Data Structures & Problem Solving using JAVA/2E Mark Allen Weiss © 2002 Addison Wesley

Figure 19.37If S is red, a single rotation between parent and grandparent, with appropriate colorchanges, restores property 3 between X and P.Data Structures & Problem Solving using JAVA/2E Mark Allen Weiss © 2002 Addison Wesley

Figure <strong>19</strong>.37If S is red, a single rotation between parent and grandparent, with appropriate colorchanges, restores property 3 between X and P.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!