专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅
    public overrideobjectKey{get{this.key;}}    public overrideuDegree{get{this.degree;}}    //public overrideuHeight{get{this.height;}}    public overrideboolIsEmpty//propertytakestheplaceofIsEmpty    {       false;//generaltreewon'tbeemptyforever    }       public overrideboo [阅读全文] [PDF]
  广义树和基本树主要区别就是有任意度   using;  using.Collections;  DataStructure{    ///<summary>    ///GeneralTree摘要介绍说明    ///generaltreeisatreewhichhasaarbitrarydegreeandnoemptytree    ///useArrayListtoreplaceListAsLinkedList     ///</summary>    publicGeneralTree:Tree  {      protec [阅读全文] [PDF]
  N叉树每节点度数都相同为Nusing;using.Collections;DataStructure{  ///<summary>  ///NaryTree摘要介绍说明-----N叉树  ///</summary>  publicNaryTree:Tree  {    //membervariables    protectedobjectkey;    protectedudegree;    protectedArrayListtreeList=ArrayList;    //protecteduheight=0;//暂时默认 [阅读全文] [PDF]
publicoverrideuDegree    {       get       {         this.degree;       }    }               //只用于空树结点    publicvirtualvoidAttachKey(object_obj)    {       (!IsEmpty)         throwException("My:thisnodemustbeaemptytreenode!");       this.key=_obj;       this.treeList=Arra [阅读全文] [PDF]
1 共4条 分1页