- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
命题人:石锐 组题人:
命题人:石锐 组题人: 审题人:王茜 命题时间:2013.6.16 教务处制
学院 专业、班 年级 学号 姓名
公平竞争、诚实守信、严肃考纪、拒绝作弊
封
线
密
2012 ~2013 学年 第 2 学期
开课学院: 计算机学院 课程号:
考试日期: 2013-7-02
考试时间: 120 分钟
题 号
一
二
三
四
五
六
七
八
九
十
总 分
得 分
一、Single Choice(30 points)
1. Here is a series of C++ statements using the list ADT in the book.
L1.append(10);
L1.append(20);
L1.append(15);
If these statements are applied to an empty list, the result will look like:( )
a) 10 20 15 | b) | 10 20 15
c) 15 20 10 | d) | 15 20 10
2. When comparing the array-based and linked implementations, the array-based implementation has: ( )
a) faster direct access to elements by position,but slower insert/delete from the current position.
b) slower direct access to elements by position,but faster insert/delete from the current position.
c) both faster direct access to elements by position, and faster insert/delete from the current position.
d) both slower direct access to elements by position, and slower insert/delete from the current position.
3. For a list of length n, the linked-list implementations prev function requires worst-case time: ( )
a) O(1) b) O(log n). c) O(n). d) O(n^2).
4. Finding the element in an array-based list with a given key value requires worst case time: ( )
a) O(1). b) O(log n). c) O(n). d) O(n^2).
5. The Full Binary Tree Theorem states that: ( )
a) The number of leaves in a non-empty full binary tree is one more than the number of internal nodes.
b) The number of leaves in a non-empty full binary tree is one less than the number of internal nodes.
c) The number of leaves in a non-empty full binary tree is one half of the number of internal nodes.
d) The number of internal nodes in a non-empty full binary tree is one half of the number of leaves.
6. If a node is at position r in the array implementation for a complete b
您可能关注的文档
最近下载
- (2025秋新版)苏教版科学三年级上册《3单元 地球上的水体》教案.pdf VIP
- 2013款北京现代胜达_汽车使用手册用户操作图解驾驶车主车辆说明书电子版.pdf
- 煤矿建设项目竣工验收报告.docx
- 2022年钢筋工程量计算例题 .pdf VIP
- 6个百分百七个到位.docx VIP
- 初中现代文阅读记叙文散文答题技巧.pptx VIP
- 数学(中考总复习)第六章第27课时《尺规作图》复习课件.pptx
- hse检查表范本.doc VIP
- GBT709—2019热轧钢板和钢带的尺寸、外形、重量及允许偏差.docx VIP
- 4.1文物中的乘法口诀 (课件) 2025-2026学年北师大版数学二年级上册.pptx VIP
原创力文档


文档评论(0)