浙江大学2006–2007学年秋季学期 数据结构基础 课程期末考试试卷.doc

浙江大学2006–2007学年秋季学期 数据结构基础 课程期末考试试卷.doc

  1. 1、本文档共6页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
浙江大学2006–2007学年秋季学期 《数据结构基础》课程期末考试试卷 开课学院: 软件学院 , 考试形式:闭卷, 允许带_ 无 入场 考试时间:_2006_年_11_月_11_日, 所需时间: 120 分钟 考生姓名: ___学号: 专业: ____教师: 题序 一 二 三 四 总 分 得分 评卷人 NOTE: Please write your answers on the answer sheet. 注意:请将答案填写在答题纸上。 Please select the answer for the following problems. (20 points) Suppose that n numbers are pushed onto a stack in the order 1, 2, …, n–1, n. If n is the first number that is popped out of the stack, then the i-th number popped must be (2 points) a. i b. n–i+1 c. n–i d. any one is possible The property(s) that a list does NOT have is(are) (2 points) a. no need to pre-estimate the total space b. no need to move items for insertion and deletion c. quick random access d. the space taken is proportional to the length of the list In the following integer sequences, is(are) NOT a heap. (2 points) a. (100,85,98,77,80,60,82,40,20,10,66) b. (100,98,85,82,80,77,66,60,40,20,10) c. (10,20,40,60,66,77,80,82,85,98,100) d. (100,85,40,77,80,60,66,98,82,10,20) If depth-first search can visit every vertex with any starting vertex, then that graph must be a . (2 points) a. tree b. graph contains cycles c. complete graph d. connected graph Given an integer sequence {15,9,7,8,20,-1,4,}after the first run of Shellsort, the sequence becomes {15,-l,4,8,20,9,7}, the increment must be (2 points) a. 1 b. 2 c. 3 d. 4 Place m items in a hash table with an array size of s, the loading factor is . (2 points) a. s + m b. m / s c. m * s d. m - s Breath-first search with the adjacency list representation of a graph is similar to the traversal of a binary tree (2 points) a. preorder b. inorder c. postorder d. leverl-order Among the following sorting algorithms, has the average run time O(NlogN) with small extra space. (2 points) a. Quick sort b. Heap sort c. Merge sort d. Radix sort In a

文档评论(0)

xcs88858 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8130065136000003

1亿VIP精品文档

相关文档