Thursday, September 28, 2006

Red Black Trees  

Topics

  

Readings

Chapter 7, Section 7.1.7.  Although the title says "4-2 Trees" it contains both 4-2 trees and Red Black Trees, which are fundamentally the same, although the code for each would be differently implemented.  Note that the book's pseudocode algorithm is iterative and not recursive, and is very confusing to try to implement.  They gloss over a number of important details.  My C# implementation uses recursion and rotation.  My code's algorithm comes from another book and is very similar to an AVL tree.

Back to Csc 220 Data Structures
  Scott Badman   Office: B132   Phone: 353-2250   sbadman@parkland.edu  

Parkland College, 2400 W. Bradley Avenue, Champaign, IL 61821