

下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
2011年~2012年第一學(xué) 數(shù)據(jù)結(jié)構(gòu)與算法分 期末試卷〖A卷★考試時間共120分鐘題123456789總得閱卷得閱卷(得閱卷Pleasetranslatethefollowingtermsintoalgorithmefficiencyysis; datatype;linkedlist;LIFO;template;pseudocode;enqueue;inordertraversal;amortizedysis;diminishingincrementsort.得閱卷(得閱卷Pleasetranslatethefollowingtermsinto得閱卷(得閱卷TrueorFalseQuestions(Circlethecorrect 1.Iff(n)isapolynomialofdegreek,thenf(n)=(nk) 2.Letf(n)=nlognandg(n)=n1.5.Thenthefunctionf(n)growsfasterthan 3.AnO(n2)algorithmc waysbeslowerthananO(n3)algorithmiftheconstantislarge 4.Inaninordertraversal,theworkatanodeisdoneafteritschildrenare 5.Intheworstcase,theheightofthebinarysearchtreescanbelinearinthenumberofnodesinthetree.得閱卷(得閱卷Describeinformallyasmany(atleasttwo)algorithmsaspossibletosolvetheSelectionProblem:Findthekth-largestnumberfromagroupofnnumbers.得閱卷(得閱卷WhythefollowingprogramisterriblyinefficientforcomputingFibonaccilongfib(intn{if(n<=1)return1;returnfib(n–1)+fib(n–2}得閱卷(得閱卷Describethefollowingoperationsofastack.push_back,pop_back.得閱卷(得閱卷ForthefollowingwhichnodeistheWhichnodesaretheWhichnodeistheparentofListthechildrenofComputethedepthandheightof得閱卷(得閱卷Converta+b*c+(d*e+f)*gintopostfix得閱卷(得閱卷WriteoutthedefinitionofAVLtree.Showtheresultofinserting2,1,4,5,9,3,6,7intoaninitiallyemptyAVL得閱卷(得閱卷Shownbelowisthecodeforsometemplate<typenameconstComparable&???(vector<Comparable>&a,intleft,intright{intcenter=(left+right)/2;if(a[center]<a[left])swap(a[left],a[center]if(a[right]<a[left])swap(a[left],a[right]);if(a[right]<a[center])swap(a[center],a[right]);swap(a[center],a[right-1]);returna[right
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年黑龍江省建筑安全員-C證考試題庫
- 出售 海邊 平房合同范本
- 分手補償贈與合同范本
- 廠區(qū)搬家運輸合同范本
- 鳩江地標性酒店施工方案
- 廠房通風(fēng)采購合同范本
- 養(yǎng)殖合同范例雞
- 2025重慶市安全員《C證》考試題庫及答案
- 工傷申請授權(quán)委托書范本
- 交評合同范本
- 2024年黑龍江省牡丹江市中考歷史試卷
- 滬科版八年級物理知識點總結(jié)
- 孫權(quán)勸學(xué)(原卷版)-2024年中考語文之文言文對比閱讀
- 高速公路日常清掃與養(yǎng)護方案
- 風(fēng)電epc合同模板
- 2024年新人教版一年級數(shù)學(xué)下冊《第2單元第5課時 20以內(nèi)的退位減法解決問題(1)》教學(xué)課件
- 2022年陜西省普通高校職業(yè)教育單獨招生統(tǒng)一考試語文甲(A)試題
- 失業(yè)保險待遇申領(lǐng)表
- 2024-2025學(xué)年初中信息技術(shù)(信息科技)第二冊河北大學(xué)版(第3版)教學(xué)設(shè)計合集
- 期末測試卷(一)(試題)2023-2024學(xué)年二年級上冊數(shù)學(xué)蘇教版
- 攜程在線能力測評真題
評論
0/150
提交評論