Re: [Haskell-cafe] I need help on AVL trees

2007-04-27 Thread Adrian Hey
Stefan O'Rear wrote: On Fri, Apr 27, 2007 at 05:27:37AM -0700, iliali16 wrote: Can someone advise me how can I build an AVL tree becouse I have difficulties with the rotations. Since if I add a node I want to be abel to check whether the tree is balanced or not if balanced ok but if not I need t

Re: [Haskell-cafe] I need help on AVL trees

2007-04-27 Thread Stefan O'Rear
On Fri, Apr 27, 2007 at 05:27:37AM -0700, iliali16 wrote: > Can someone advise me how can I build an AVL tree becouse I have difficulties > with the rotations. Since if I add a node I want to be abel to check whether > the tree is balanced or not if balanced ok but if not I need to do one of > the

[Haskell-cafe] I need help on AVL trees

2007-04-27 Thread iliali16
Can someone advise me how can I build an AVL tree becouse I have difficulties with the rotations. Since if I add a node I want to be abel to check whether the tree is balanced or not if balanced ok but if not I need to do one of the 4 rotations which is a problem for me and I want to be able to gi