- 0
- 0
- 约8.07千字
- 约 11页
- 2026-01-21 发布于江西
- 举报
北京交通大学软件学院
2017―2018学年第一学期期末考试试题
DataStructureandAlgorithmDesign(A)
Class:
____StudentNumber:
_____Name:________Teacher________
No.
I
II
III
IV
V
VI
Total
Mark
I.Single-Choice(20points)
1.Theheightofabinarytreethatcontains1023elementsisatmost( 1 ) andatleast( 2 ).
A.1022 B.1023 C.1024 D.9 E.10 F.11
2.Ifthesequenceofpushingelementsintoastackisa,b,c,whichoutput
sequenceisimpossible?(
).
C.cba
D.cab
A.abc
B.bca
3.Howmanyminimum-costspanningtreesarethereforanundirectedconnected
graphwithnverticesandeedges?(
)
C.n-e
D.notsure
A.mustbeonlyone
B.n-1
4.WhenusingtheadjacencymatrixAtorepresentaundirectedgraphwithnnodes
andeedges,thedegreeofthenodevicanbecomputedbyformula(
).
A.
B.
/2
C.e/2
D.
5.Intheworstcase,timecomplexityofquicksortwillbedegradedto(
).
A.O(n)
B.O(n2)
C.O(nlogn)
6.Inordertofindaspecifickeyinanorderedlistwith100keysusingbinarysearch
algorithm,themaximumtimesofcomparisonsis
(
).
A.
25
B.10
C.1
D.7
7.Considerthefollowingpseudo-code,whichindicatespartofastandardbinarytree algorithm.
print(node)
{
data;
if(thereisaleftchild) if(thereisarightchild)}
print(leftchild);
print(rightchild);
Whichofthefollowingisthestandardnameforthisalgorithm?( ) A.Inordertraversal B.Preordertraversal
C.Postordertraversal D. Binarysearch
8.WhichisnotthepropertyofaB-treeoforderm? ( )
A.Therootnodehasmsubtreeatmost
B.Allleafnodesareatthesamelevel.
C.Thekeysineverynodeareordered.
D.Allleafnodesareconnectedbylinks.
9.Supposethatwehave1000distinctintegers,whichareintherangefrom0to50.IfusingRadixSortaccordingtotheLeastSignificantDigitfirst,( )bucketsareneededtoconstructed.
A.10 B.50 C.51 D.1000
AnswertableforQuestionI (writeyouranswersofQuestionIhere)
1(1)
1(2)
2
3
4
5
6
7
8
9
B
E
D
D
A
B
D
B
D
A
II.Fillintheblank(2points*5)
AnswertableforII(PleasewriteyouranswersofIIhere)
1
2
2
3
4
preorder
11
2,3,⑤,5
i*n+j
5,4,3,2,1
1.Thestrategyofdepth-firstsearchingalgorithmforagraphissimilarto
thatof___
_traversalalgorithmforanormaltree.
2.Hereisahashtable,whosesi
您可能关注的文档
- 兰州大学《运筹学》2017-2018学年期末试卷.docx
- 2023年中国石油大学(华东)《数据结构》期末练习题1.docx
- 2023年中国石油大学(华东)《数据结构》期末练习题2.docx
- 2023年中国石油大学(华东)《数据结构》期末练习题3.docx
- 2023年重庆大学《数据结构》期末练习题1.docx
- 2023年重庆大学《数据结构》期末练习题3.docx
- 安徽大学《数据结构》2017-2018学年期末试卷.docx
- 安徽大学《数据结构》2018-2019学年期末试卷.docx
- 安徽大学《数据结构》2019-2020学年期末试卷.docx
- 安徽大学《数据结构》2020-2021学年期末试卷.docx
- 安徽省华师联盟2025-2026学年高三上学期1月质量检测生物试卷+答案.doc
- 安徽省华师联盟2025-2026学年高三上学期1月质量检测语文试卷+答案.doc
- 四川省绵阳南山中学实验学校2025-2026学年高三上学期1月月考数学含答案.doc
- 2026届辽宁省大连市高三上学期双基考试物理试卷+答案.doc
- 辽宁名校联盟2026年1月高三上期末联考质量检测化学含答案.doc
- 辽宁名校联盟2026年1月高三上期末联考质量检测生物含答案.doc
- 辽宁名校联盟2026年1月高三上期末联考质量检测英语含答案.doc
- 辽宁名校联盟2026年1月高三上期末联考质量检测政治含答案.doc
- 黑龙江省龙江教育联盟2026年1月高三上学期期末考试化学含答案.doc
- 黑龙江省龙江教育联盟2026年1月高三上学期期末考试生物含答案.doc
最近下载
- 关于成立、调整胸痛中心委员会成员的通知(新).docx VIP
- 2022-2023学年天津市武清区英华实验学校八年级(上)期末物理试卷+答案解析(附后).pdf VIP
- 计算机基础知识点总结.docx VIP
- 计算机基础知识点总结.doc VIP
- 2024-2025学年高一英语上学期期末试题分类汇编:读后续写(教师版).pdf VIP
- 第一课++在生活中学民法用民法+同步练习 高中政治统编版选择性必修二法律与生活.docx VIP
- 循环流化床锅炉高导热耐磨耐火材料备.pdf VIP
- 靶向药物治疗的护理要点.pptx
- CHINO千野CP350&370数字式显示调节仪说明书.pdf
- 区块链跨链通信技术研发及互操作性.pptx
原创力文档

文档评论(0)