2009数据结构英文试卷a及答案----new

2009数据结构英文试卷a及答案----new

ID:16650411

大小:98.00 KB

页数:8页

时间:2018-08-23

2009数据结构英文试卷a及答案----new_第1页
2009数据结构英文试卷a及答案----new_第2页
2009数据结构英文试卷a及答案----new_第3页
2009数据结构英文试卷a及答案----new_第4页
2009数据结构英文试卷a及答案----new_第5页
资源描述:

《2009数据结构英文试卷a及答案----new》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、北京交通大学2009年《数据结构与算法设计》试卷Finalexamination2009FallDataStructureandAlgorithmDesignClass:StudentNumber:Name:TeacherNo.123456789TotalMark1.Single-Choice(20points)(1)Considerthefollowingdefinitionofarecursivefunctionff.intff(intn){if(n==0)return1;return2*ff(n-1);}Ifn>0,whatisreturnedbyff(n)?(a)log2n(b)n2(

2、c)2n(d)2*n(2)Aninputintoastackislike1,2,3,4,5,6.Whichoutputisimpossible?.a.2,4,3,5,1,6b.3,2,5,6,4,1c.1,5,4,6,2,3d.4,5,3,6,2,1(3)Whichofthefollowingdatastructuresusesa"Last-in,First-out"policyforelementinsertionandremoval?(a)Stack(b)Tree(c)Hashtable(d)Queue(4)Ifdeletingtheithkeyfromacontiguouslistwit

3、hnkeys,keysneedtobeshiftedleftoneposition.a.n-ib.n-i+1c.id.n-i-1(5)Sortingakeysequence(28,84,24,47,18,30,71,35,23),itsstatusischangedasfollows.23,18,24,28,47,30,71,35,8418,23,24,28,35,30,47,71,8418,23,24,28,30,35,47,71,84Thesortingmethodiscalled(a).selectsorting(b).Shellsorting(c).mergesorting(d).qu

4、icksorting(6)ThenumberofkeywordineverynodeexceptrootinaB-treeoforder5is__atleastlocatedintheTomb,DongShenJiabang,deferthenextdayfocusedontheassassination.Linping,Zhejiang,1ofwhichliquorwinemasters(WuzhensaidinformationisCarpenter),whogotAfewbayonets,duetomissedfatal,whennightcame第7页北京交通大学2009年《数据结构与

5、算法设计》试卷a.1b.2c.3d.4(7)WhensortingarecordsequencewithmultiplekeysusingLeastSignificantDigitmethod,thesortingalgorithmusedforeverydigitexcepttheleastsignificantdigit.a.mustbestableb.mustbeunstablec.canbeeitherstableorunstable(8)InthefollowingfourBinaryTrees,isnotacompleteBinaryTree.abcd(9)Themaximumnu

6、mberofnodesonleveliofabinarytreeis.a.2i-1b.2ic.2id.2i-1(10)IftheBinaryTreeT2istransformedfromtheTreeT1,thenthepostordertraversalsequenceofT1isthetraversalsequenceofT2.a.preorderb.inorderc.postorderd.levelorder(11)Inthefollowingsortingalgorithm,isanunstablealgorithm.a.theinsertionsortb.thebubblesortc

7、.quicksortd.mergesort(12)Inordertofindaspecifickeyinanorderedlistwith100keysusingbinarysearchalgorithm,themaximumtimesofcomparisonsis.a.25b.10c.1d.7(13)TheresultoftraversinginorderlyaBinarySearchTreei

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。