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

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

本文简介:选择自 heavenkiller 的 blog

         {

              this.adjustheight();

              //大于1则说明不平衡

              if( math.abs(this.balancefactor())>1)

              {

                   if(this.balancefactor()>0)

                   {

                       if (((avltree)this.left).balancefactor()>0)

                            this.llrotation();

                       else

                            this.lrrotation();

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

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

go top