www.delorie.com/gnu/docs/avl/libavl_263.html   search  
 
Buy GNU books!


GNU libavl 2.0.1

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

16.3.1 Step 2: Insert

The code to do the insertion is based on that for PBSTs. We need only add initialization of the new node's color.

 
&#60;@xref{\NODE\, , Step 2: Insert PBST node; pbst =>.&#62; prb,492}
n-&#62;prb_color = PRB_RED;
This code is included in @refalso{555


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003