Homework Assignment

Balanced Trees

Contents:


Overview

Topic: Balanced Trees
Related Reading: Ch. 11.1, 11.2, 11.5
Due:

Please make sure you adhere to the policies on academic integrity.


Problems to be Submitted (20 points)

  1. (5 points)

    Draw the AVL tree that results after inserting the sequence of elements 1, 2, 3, 4, 5, 6, in that order.

  2. (5 points)

    Continuing where you left off with the preceding problem, show the final result after the additional insertions 7, 8, 9, 10.

  3. (5 points)

    Draw the 2-3-4 tree that results after inserting the sequence of elements 1, 2, 3, 4, 5, 6, in that order.

  4. (5 points)

    Continuing where you left off with the preceding problem, show the final result after the additional insertions 7, 8, 9, 10.


Last modified: Sunday, 30 November 2008