版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
目錄1.Introduction2.List3.Tree4.Search5.Index1.Introduction1/2單選題(1分)1.Whichapplicationcanbedevelopedbasedonthegraphdatastructure?StudentmanagementsystemFamilyinformationsystemTransportationnetworksFiledirectory答案:C2/2單選題(1分)Whichoneisnotapartofanabstractdatastructure?DataAbstractoperationsImplementationofOperations答案:C
1
/1
單選題
(1分)AT(n)=c1*n+c2BT(n)=c1*n*n+c2CT(n)=c1*i*j+c2
答案:B1/4單選題(1分)Ωindicatesthe____boundLowerExactUpper答案:A2/4單選題(1分)Θindicatesthe______bound.LowerExactUpper答案:B
3
/4
單選題
(1分)Whichoneisslowest:A)B)C)D)
答案:B
4
/4
單選題
(1分)Oindicatesthe_______boundALowerBExactCUpper
答案:C
1
/1
單選題
(1分)DetermineΘforthefollowingcodeintheaveragecase.Assumethatallvariablesareoftypeint.AΘ(1)BΘ(n*n)CΘ(n)DΘ(n*logn)
答案:C2.List
1
/1
單選題
(1分)A4B5C8D3
答案:B1/1單選題(1分)GiventhepositionofanelementinanarraybasedList,thetimecosttogetthevalueoftheelementis_____?Θ(1)Θ(n)Θ(n*n)Θ(logn)答案:A1/1單選題(1分)Whenweinsertoneelementintoanarraybasedlist,weneedtomovetheelementsinthearray.Whichoneofthefollowingcodefragmentsiscorrecttoperformthedatamovement?for(inti=fence;i<listsize;i++)listArray[i]=listArray[i-1];for(inti=fence;i<listsize;i++)listArray[i-1]=listArray[i];for(inti=listSize;i>fence;i--)listArray[i]=listArray[i-1];for(inti=listSize;i>fence;i--)listArray[i-1]=listArray[i];答案:C1/2單選題(1分)Thetimecosttoremoveanelementfromanarraybasedlistis______inaveragecase?Θ(1)Θ(n)Θ(n*n)Θ(logn)答案:B2/2單選題(1分)Thetimecosttoinsertanelementintoanarraybasedlistis_________inaveragecase?Θ(1)Θ(n)Θ(n*n)Θ(logn)答案:B1/2判斷題(1分)Comparedwitharraybasedlist,linkedlistrequiresmorememorytostoreelements.答案:√2/2判斷題(1分)Theelementsinalinkedlistmustbestoredcontinuouslyinmemory.答案:×1/1單選題(1分)Givenanemptylinkedlist,thecosttoinsertnelementsinthelistis___?Θ(1)Θ(n)Θ(n*n)Θ(logn)答案:B1/1單選題(1分)Whenweremoveoneelementfromalinkedlist,____'next'pointersinthelistwillbechangedatmost?0123答案:B1/1多選題(2分)Whichoperationsoflinkedlistaremoreefficientthanarraybasedlist?insertsearchremovesetPos答案:AC1/1單選題(1分)Whichoneisnotcorrect?StackisarestrictformoflistStackhastheLIFOproperty(lastinfirstout)TheinsertionoperationofstackisperformedatthetopofthestackTheremoveoperationofstackisperformedatthebottomofthestack答案:D1/1單選題(1分)Givenaqueue{1,2,3,4,5},where1isthefrontand5istherear.Whatwillbethequeuechangedtoafterexecutingthefollowingoperations:enqueue(8),dequeue(),dequeue(),enqueue(9),dequeue(),dequeue(),dequeue(),enqueue(10),10,9,88,9,104,5,8,9,1010,9,8,4,5答案:B3.Tree1/2填空題(1分)Afullbinarytreewith11nodeshas____leaves.答案:["6"]2/2填空題(2分)Acompletebinarytreewiththeheight4has____nodesatmost,and____nodesatleast.答案:["15"]2答案:["8"]1/1填空題(1分)Inanarraybasedcompletebinarytree,theparentoftheNo.15nodeisstoredintheNo.____positionofthearray.答案:["7"]
1
/1
填空題
(2分)________
答案:["abdceghf"]2答案:["dbaghecf"]1/2判斷題(1分)ABSTmustbeafullbinarytree?答案:×2/2判斷題(1分)TheheightofaBSTwithnnodesisalwayslessthann?答案:×1/1判斷題(1分)ThetimecosttosearchavalueinaBSTisalwaysΘ(logn)inaveragecase?答案:×1/1判斷題(1分)ThetimecosttoinsertonenodeonabalancedBSTisΘ(logn)inaveragecase?答案:√1/3判斷題(1分)Aheapmustbeacompletebinarytree答案:√2/3判斷題(1分)Aheapmustbeafullbinarytree答案:×3/3判斷題(1分)Theminimumvalueofaheapisalwaysstoredinitsrootnode.答案:×
1
/1
單選題
(1分)A)B)C)D)
答案:B4.Search1/2單選題(1分)Givenasortedarraycontainingnelements,thetimecostofbinarysearchisΘ(___)inaveragecase.n*nnlognn*logn答案:C2/2單選題(1分)ThetimecosttoinsertoneelementintoasortedarrayisΘ(___)inaveragecase.n*nnlognn*logn答案:B
1
/1
單選題
(1分)學(xué)生在文本框中輸入答案:,之后系統(tǒng)會根據(jù)數(shù)值判斷答案:是否正確。
A3B4C5D6
答案:B1
/1
單選題
(1分)A1B4C7D10
答案:D5.Index1/1單選題(1分)Thetimecosttoinsertorremoveoneelementinalinearindexis:Θ(1)Θ(n)Θ(n*n)Θ(logn)答案:B1/1單選題(1分)Afterinserttheelements(8,10,30,5,15,2,20)intoanempty2-3treeonebyone,thedepthofthenodecontaining10is_________0123答案:A1/3判斷題(1分)2-3treeisalwaysbalanced?答案:√2/3判斷題(1分)Thetimecosttosearchoneelementina2-3treeisΘ(logn)inaveragecase,andΘ(1)inbestcase.答案:√3/3填空題(1分
溫馨提示
- 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)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2026年甘肅建筑職業(yè)技術(shù)學(xué)院單招綜合素質(zhì)考試題庫參考答案詳解
- 2026年河南林業(yè)職業(yè)學(xué)院單招職業(yè)傾向性測試題庫及完整答案詳解1套
- 2026年山西衛(wèi)生健康職業(yè)學(xué)院單招職業(yè)適應(yīng)性測試題庫帶答案詳解
- 2026年遼源職業(yè)技術(shù)學(xué)院單招綜合素質(zhì)考試題庫參考答案詳解
- 2026年山東文化產(chǎn)業(yè)職業(yè)學(xué)院單招職業(yè)技能測試題庫參考答案詳解
- 2026年蘭州資源環(huán)境職業(yè)技術(shù)大學(xué)單招綜合素質(zhì)考試題庫帶答案詳解
- 上市銀行面試題庫及答案
- 水電站渠道加固承包協(xié)議書范本
- 2025年北京郵電大學(xué)人工智能學(xué)院招聘備考題庫(人才派遣)及完整答案詳解1套
- 2025年崇州市人民醫(yī)院醫(yī)共體成員單位自主招聘(補充招聘)備考題庫及答案詳解一套
- 燒結(jié)板生產(chǎn)除塵設(shè)備維護(hù)指南
- 婦聯(lián)法律知識講座內(nèi)容
- 人教版(2024)九年級全一冊物理全冊教案
- 食堂稱菜管理辦法
- 洪恩識字1-1300字文檔
- 2024年山東省汶上縣煙草公開招聘工作人員試題帶答案詳解
- 臨時用地復(fù)墾管理辦法
- 旅游景區(qū)廁所管理制度
- 深靜脈置管的并發(fā)癥與護(hù)理講課件
- 社區(qū)樓道長管理制度
- 溫泉酒店安全管理制度
評論
0/150
提交評論