久久久国产精品秘人口麻豆|永久免费AV无语国产|人成电影免费中文字幕|久久AV嫩草影院2

    1. <dfn id="yitbn"><samp id="yitbn"><progress id="yitbn"></progress></samp></dfn>

          <div id="yitbn"></div>

          1. 首頁 考試吧論壇 Exam8視線 考試商城 網(wǎng)絡(luò)課程 模擬考試 考友錄 實(shí)用文檔 求職招聘 論文下載
            2011中考 | 2011高考 | 2012考研 | 考研培訓(xùn) | 在職研 | 自學(xué)考試 | 成人高考 | 法律碩士 | MBA考試
            MPA考試 | 中科院
            四六級 | 職稱英語 | 商務(wù)英語 | 公共英語 | 托福 | 雅思 | 專四專八 | 口譯筆譯 | 博思 | GRE GMAT
            新概念英語 | 成人英語三級 | 申碩英語 | 攻碩英語 | 職稱日語 | 日語學(xué)習(xí) | 法語 | 德語 | 韓語
            計(jì)算機(jī)等級考試 | 軟件水平考試 | 職稱計(jì)算機(jī) | 微軟認(rèn)證 | 思科認(rèn)證 | Oracle認(rèn)證 | Linux認(rèn)證
            華為認(rèn)證 | Java認(rèn)證
            公務(wù)員 | 報(bào)關(guān)員 | 銀行從業(yè)資格 | 證券從業(yè)資格 | 期貨從業(yè)資格 | 司法考試 | 法律顧問 | 導(dǎo)游資格
            報(bào)檢員 | 教師資格 | 社會(huì)工作者 | 外銷員 | 國際商務(wù)師 | 跟單員 | 單證員 | 物流師 | 價(jià)格鑒證師
            人力資源 | 管理咨詢師考試 | 秘書資格 | 心理咨詢師考試 | 出版專業(yè)資格 | 廣告師職業(yè)水平
            駕駛員 | 網(wǎng)絡(luò)編輯
            衛(wèi)生資格 | 執(zhí)業(yè)醫(yī)師 | 執(zhí)業(yè)藥師 | 執(zhí)業(yè)護(hù)士
            會(huì)計(jì)從業(yè)資格考試會(huì)計(jì)證) | 經(jīng)濟(jì)師 | 會(huì)計(jì)職稱 | 注冊會(huì)計(jì)師 | 審計(jì)師 | 注冊稅務(wù)師
            注冊資產(chǎn)評估師 | 高級會(huì)計(jì)師 | ACCA | 統(tǒng)計(jì)師 | 精算師 | 理財(cái)規(guī)劃師 | 國際內(nèi)審師
            一級建造師 | 二級建造師 | 造價(jià)工程師 | 造價(jià)員 | 咨詢工程師 | 監(jiān)理工程師 | 安全工程師
            質(zhì)量工程師 | 物業(yè)管理師 | 招標(biāo)師 | 結(jié)構(gòu)工程師 | 建筑師 | 房地產(chǎn)估價(jià)師 | 土地估價(jià)師 | 巖土師
            設(shè)備監(jiān)理師 | 房地產(chǎn)經(jīng)紀(jì)人 | 投資項(xiàng)目管理師 | 土地登記代理人 | 環(huán)境影響評價(jià)師 | 環(huán)保工程師
            城市規(guī)劃師 | 公路監(jiān)理師 | 公路造價(jià)師 | 安全評價(jià)師 | 電氣工程師 | 注冊測繪師 | 注冊計(jì)量師
            繽紛校園 | 實(shí)用文檔 | 英語學(xué)習(xí) | 作文大全 | 求職招聘 | 論文下載 | 訪談 | 游戲
            您現(xiàn)在的位置: 考試吧(eeeigo.com) > 軟件水平考試 > 復(fù)習(xí)資料 > 程序員資料 > 正文

            2011年軟考程序員考試復(fù)習(xí)筆試知識(shí)點(diǎn)整理(20)

            考試吧提供了“2011年軟考程序員考試復(fù)習(xí)筆試知識(shí)點(diǎn)整理”,供考生參考。

              private:

              struct AvlNode

              {

              Comparable element;

              AvlNode *left;

              AvlNode *right;

              int height;

              AvlNode( const Comparable &theElement, AvlNode *lt,

              AvlNode *rt, int h = 0 )

              : element( theElement ), left( lt ),right( rt ), height( h ) { }

              };

              AvlNode *root;

              /**

              * Internal method to insert into asubtree.

              * x is the item to insert.

              * t is the node that roots the subtree.

              * Set the new root of the subtree.

              */

              void insert( const Comparable & x,AvlNode * & t )

              {

              if( t == NULL )

              t = new AvlNode( x, NULL, NULL );

              else if( x < t->element )

              {

              insert( x, t->left );

              if( height( t->left ) - height(t->right ) == 2 )

              if( x left->element )

              rotateWithLeftChild( t );

              else

              doubleWithLeftChild( t );

              }

              else if( t->element < x )

              {

              insert( x, t->right );

              if( height( t->right ) - height(t->left ) == 2 )

              if( t->right->element< x )

              rotateWithRightChild( t );

              else

              doubleWithRightChild( t );

              }

              t->height = max( height( t->left), height( t->right ) ) + 1;

              }

              /**

              * Internal method to find the smallestitem in a subtree t.

              * Return node containing the smallestitem.

              */

              AvlNode * findMin( AvlNode *t ) const

              {

              if( t == NULL )

              return NULL;

              if( t->left == NULL )

              return t;

              return findMin( t->left );

              }

              /**

              * Internal method to find the largest itemin a subtree t.

              * Return node containing the largest item.

              */

              AvlNode * findMax( AvlNode *t ) const

              {

              if( t != NULL )

              while( t->right != NULL )

              t = t->right;

              return t;

              }

              /**

              * Internal method to test if an item is ina subtree.

              * x is item to search for.

              * t is the node that roots the tree.

              */

              bool contains( const Comparable & x,AvlNode *t ) const

              {

              if( t == NULL )

              return false;

              else if( x < t->element )

              return contains( x, t->left );

              else if( t->element < x )

              return contains( x, t->right );

              else

              return true; // Match

              }

              /****** NONRECURSIVEVERSION*************************

              bool contains( const Comparable & x,AvlNode *t ) const

              {

              while( t != NULL )

              if( x < t->element )

              t = t->left;

              else if( t->element < x )

              t = t->right;

              else

              return true; // Match

              return false; // No match

              }

              *****************************************************/

            上一頁  1 2 3 4 5 下一頁
              相關(guān)推薦:

              軟考程序員考試歷年真題重點(diǎn)題總結(jié)及答案

              2011年上半年軟考報(bào)名時(shí)間及方式匯總

              軟考程序員考試歷年真題匯總(2007年-2010年)

            文章搜索
            軟件水平考試欄目導(dǎo)航
            版權(quán)聲明:如果軟件水平考試網(wǎng)所轉(zhuǎn)載內(nèi)容不慎侵犯了您的權(quán)益,請與我們聯(lián)系800@eeeigo.com,我們將會(huì)及時(shí)處理。如轉(zhuǎn)載本軟件水平考試網(wǎng)內(nèi)容,請注明出處。