| www.delorie.com/gnu/docs/avl/libavl_159.html | search |
![]() Buy GNU books! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Here is the corresponding code for the case where insertion occurs in the right subtree of y.
struct tavl_node *x = y->tavl_link[1];
if (x->tavl_balance == +1)
{ |
w = x; if (x->tavl_tag[0] == TAVL_THREAD) |
<@xref{\NODE\, , Rotate right at x.> then left at y in AVL tree; avl => tavl,159}
if (w->tavl_tag[0] == TAVL_THREAD) |
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |