| www.delorie.com/gnu/docs/avl/libavl_250.html | search |
![]() Buy GNU books! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
struct pavl_node *x = y->pavl_link[1];
if (x->pavl_balance == +1)
{ |
<@xref{\NODE\, , Rotate left at y.> in AVL tree; avl => pavl,158}
x->pavl_parent = y->pavl_parent;
y->pavl_parent = x;
if (y->pavl_link[1] != NULL)
y->pavl_link[1]->pavl_parent = y;
|
<@xref{\NODE\, , Rotate right at x.> then left at y in AVL tree; avl => pavl,159}
w->pavl_parent = y->pavl_parent;
x->pavl_parent = y->pavl_parent = w;
if (x->pavl_link[0] != NULL)
x->pavl_link[0]->pavl_parent = x;
if (y->pavl_link[1] != NULL)
y->pavl_link[1]->pavl_parent = y;
|
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |