More on Balanced Trees - PowerPoint PPT Presentation

About This Presentation
Title:

More on Balanced Trees

Description:

Your book also discusses both black-red trees and AA-trees which are other forms ... trying to zoom through the many rules of black-red trees we will code up some of ... – PowerPoint PPT presentation

Number of Views:20
Avg rating:3.0/5.0
Slides: 6
Provided by: mark721
Category:
Tags: an | balanced | black | book | essay | how | more | to | trees | write

less

Transcript and Presenter's Notes

Title: More on Balanced Trees


1
More on Balanced Trees
  • 4-17-2002

2
Opening Discussion
  • What did we talk about last class?
  • Do you have any questions about the assignments?
  • Only one person got the minute essay from last
    time correct, but the reason is that I wasnt
    clear on the fact that rotations are done coming
    back UP the tree.

3
Black-Red Trees and AA-trees
  • Your book also discusses both black-red trees and
    AA-trees which are other forms of balanced trees.
    You should strongly consider reading it.
  • Today Im going for depth instead of breadth.
    Instead of trying to zoom through the many rules
    of black-red trees we will code up some of an AVL
    tree.

4
Code
  • We are going to write as much code as possible of
    an implementation of an AVL tree. We will look
    closely at the methods for doing rotations to see
    how they can be implemented and what the
    deficiencies of the two possibilities are.

5
Minute Essay
  • We will try another AVL tree. This time draw the
    AVL trees that result as we add these values to
    an empty tree 1, 4, 8, 2, 3, 9.
  • Hopefully you are making progress on your
    assignments. Remember I want everything you
    intend to turn in by the second reading day.
Write a Comment
User Comments (0)
About PowerShow.com