欢迎来到天天文库
浏览记录
ID:15139110
大小:115.50 KB
页数:7页
时间:2018-08-01
《数据结构与算法分析 复习试卷b1》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、课程名称:任课教师:学号:姓名:四川大学期末考试试题(闭卷)(2009~2010学年第1学期)课程号:311036030课程名称:数据结构与算法分析(B卷)任课教师:孙界平,张卫华适用专业年级:软件工程2008级学号:姓名:考试须知四川大学学生参加由学校组织或由学校承办的各级各类考试,必须严格执行《四川大学考试工作管理办法》和《四川大学考场规则》。有考试违纪作弊行为的,一律按照《四川大学学生考试违纪作弊处罚条例》进行处理。四川大学各级各类考试的监考人员,必须严格执行《四川大学考试工作管理办法》、《四川大学考场规则》和《四川大学监考人员职
2、责》。有违反学校有关规定的,严格按照《四川大学教学事故认定及处理办法》进行处理。题号一(40%)二(8%)三(42%)四(10%)卷面成绩得分阅卷时间注意事项:1.请务必将本人所在学院、姓名、学号、任课教师姓名等信息准确填写在试题纸和添卷纸上;2.请将答案全部填写在本试题纸上;3.考试结束,请将试题纸、添卷纸和草稿纸一并交给监考老师。eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee评阅教师得分一、单项选择题(本大题共20小题,每小题2分,共40分)提示:在每小题列出的备选项中只有一个是符合题
3、目要求的,请将其代码写到答题纸上。错选、多选或未选均无分。1.Asethasthefollowingproperties:a)Mayhaveduplicates,elementhaveaposition.b)Mayhaveduplicates,elementsdonothaveaposition.c)Maynothaveduplicates,elementshaveaposition.*d)Maynothaveduplicates,elementsdonothaveaposition.2Whichofthefollowingisnota
4、goodprooftechnique.a)proofbycontradiction.*b)proofbyexample.c)proofbymathematicalinduction.3.Whenwewishtodescribetheupperboundforaproblemweuse:*a)Theupperboundofthebestalgorithmweknow.b)Thelowerboundofthebestalgorithmweknow.c)Wecan'ttalkabouttheupperboundofaproblembecaus
5、etherecanalwaysbeanarbitrarilyslowalgorithm.4.Thebestcaseforanalgorithmrefersto:a)Thesmallestpossibleinputsize.*b)Thespecificinputinstanceofagivensizethatgivesthelowestcost.注:字迹务必清晰,书写工整。本题共7页,本页为第7页教务处试题编号:课程名称:任课教师:学号:姓名:c)Thelargestpossibleinputsizethatmeetstherequire
6、dgrowthrate.d)Thespecificinputinstanceofagivensizethatgivesthegreatestcost.5.Inthelinked-listimplementationpresentedinthebook,aheadernodeisused:*a)Tosimplifyspecialcases.b)Becausetheinsertanddeleteroutineswon'tworkcorrectlywithoutit.c)Becausetherewouldbenootherwaytomaket
7、hecurrentpointerindicatethefirstelementonthelist.6.Recursionisgenerallyimplementedusinga)Asortedlist.*b)Astack.c)Aqueue.7.Therelationshipbetweenafullandacompletebinarytreeis:a)Everycompletebinarytreeisfull.b)Everyfullbinarytreeiscomplete.*c)Noneoftheabove.8.Wheneverynode
8、ofafullbinarytreestoresa4-bytedatafieldandtheinternalnodesstoretwo4-bytechildpointers,theoverheadfracti
此文档下载收益归作者所有