雨課堂在線學(xué)堂《數(shù)據(jù)結(jié)構(gòu)(Data Structures)》單元考核測試答案_第1頁
雨課堂在線學(xué)堂《數(shù)據(jù)結(jié)構(gòu)(Data Structures)》單元考核測試答案_第2頁
雨課堂在線學(xué)堂《數(shù)據(jù)結(jié)構(gòu)(Data Structures)》單元考核測試答案_第3頁
雨課堂在線學(xué)堂《數(shù)據(jù)結(jié)構(gòu)(Data Structures)》單元考核測試答案_第4頁
雨課堂在線學(xué)堂《數(shù)據(jù)結(jié)構(gòu)(Data Structures)》單元考核測試答案_第5頁
已閱讀5頁,還剩11頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(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)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論