数据结构英文试题.docVIP

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
数据结构英文试题,数据结构面试题,数据结构试题及答案,java数据结构面试题,数据结构试题,数据结构面试题及答案,数据结构笔试题,数据结构自考试题,数据结构与算法面试题,数据结构笔试题及答案

杭州电子工业学院学生考试卷(A)卷 考试课程 数据结构与算法 考试日期 年 月 日 成绩 班级 2000软件 姓名 学号 1.(8分) Imagine we have two empty stacks of integers, s1 and s2. draw a picture of each stack after the following operations: PushStack (s1, 3); PushStack (s1, -5); PushStack (s1, 7); PushStack (s1, -9); PushStack (s1, 11); PushStack (s1, -13); while (not emptyStack (s1)) { popStack (s1, x); if (x 0) { pushStack (s2, x); } } //while 2. (8分) Using manual transformation, change the following postfix or prefix expressions to infix form. a. ABC+*D- b. -*A+BCD 3. (8分) what would be the contents of queue Q1 after the following code is executed and the following data are entered? Q1 = CreateQueue S1 = CreateStack loop (not end of file) read number if (number not 0) pushStack (S1, number) else popStack (S1, x) popStack (S1, x) loop (not emptyStack (S1)) popStack (S1, x) enqueue (Q1, x) end loop end if end loop The data are 5, 7, 12, 4, 0, 4, 6, 8, 67, 34, 23 , 5, 0, 44, 33, 22, 6, 0. 4. (8分) Create a AVL tree using the following data entered as a sequential set : 7, 10, 14, 23, 33, 56, 66, 70, 80, 90. 5. (8分) Show the resulting heap after 33, 22, and 8 are added to the following heap : 50, 30, 40, 20, 10, 25, 35, 10, 5. 6. (8分) After two passes of a sorting algorithm, the follow array : 48, 5, 29, 36, 7, 61, 88 has been rearranged as shown below : 5, 7, 48, 29, 36, 61, 88 which sorting algorithm is being used (straight selection, bubble, straight insertion) ? Defend your answer. 7. (8分)A graph can be used to show relationships, for example, from the following list of people belonging to the same club (vertices) and their friendships (edges). People = {George, Jim, Jean, Frank, Fred, John, Susan} FriendShip = {(George, Jean), (Frank, Fred), (George, John), (Jim, Fred), (Jim, Frank), (Jim, Susan), (Susan, Frank) } Give the adjacency list representation of this graph. Algorithm Design 1. (11分)Write an algorithm that traverses a linked list a

文档评论(0)

tianma2015 + 关注
实名认证
文档贡献者

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

1亿VIP精品文档

相关文档