| www.delorie.com/gnu/docs/avl/libavl_123.html | search |
![]() Buy GNU books! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The process of deletion from an RB tree is very much in line with the other algorithms for balanced trees that we've looked at already. This time, the steps are:
Here's an outline of the code. Step 1 is already done for us, because we can reuse the search code from AVL deletion.
See also: [ Cormen 1990], section 14.4.
7.5.1 Step 2: Delete 7.5.2 Step 3: Rebalance 7.5.3 Step 4: Finish Up 7.5.4 Symmetric Case
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |