数据结构与算法(C#实现)系列---AVLTree(一)[5]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 heavenkiller 的 blog

              avlb.attachsubtree(2,(avltree)this[1]);

 

             

              this.key=this[0].key;

              this[0]=this[0][0];

              this[1]=avlb;

              //调整两个节点的高度

              ((avltree)this.right).adjustheight();

              this.adjustheight();

         }

         protected void lrrotation()

         {

本文关键:数据结构,算法,C#,.Net
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top