You are on page 1of 1

4 Handout 18: Problem Set 5 Solutions

   ?
   (    ?      ( 

 ( ?
  ? >  



  ( 

(    


( (
? >    
(
? >
( (

Figure 1: Unbalanced AVL tree – Case 1

  ?
   (  ?         (  


   (  ?  
    ? >  (
?


 (
      ( ? >

 
(


   (


>   ( ( !
>  
( !
( ( (

  ?

    ? >       ? >
( 

   (    (
   
 

 



 >  
( ! ( (
(

Figure 2: Unbalanced AVL tree – Case 2

You might also like