- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
数据结构(本)课程作业3608(Data structure (Ben) homework 3608)
数据结构(本)课程作业3608(Data structure (Ben) homework 3608)
Books are friends, although not enthusiastic, but very loyal -- Hugo
Data structure (this) course assignments
Assignment 2
(this section covers the contents of chapter 3-5 of the textbook)
1. Single choice
1. If the element 1, 2, 3 goes on the stack, then the stack order cannot be ().
A. 3, 2, 1, B. 2, 1, 3
C. 3, 1, 2, D. 1, 3, 2
2. The queue entry sequence for one queue is 1, 2, 3, 4
The output sequence of the queue is ()
A. 4, 3, 2, 1, B. 1, 2, 3, 4
C. 1, 4, 3, 2 d. 3, 2, 4, 1
3. When the new element is pressed into the sequential stack, it should ()
A. Move the top pointer of the stack first, then deposit the element b. first, store the element and then move the top pointer of the stack
C. the order doesnt matter
4. At the top of a stack, the node of a p pointer is pushed to the stack and should be executed ().
A.t op - next = p;
P. - next = top - next; Top - next = p;
C.p - next = top; Top = p;
D.p - next = top - next; Top = top - next;
5. When a node is deleted in a stack top of a stack, save the value of the deleted node with x, then execute ()
A.x = top; Top = top - next;
B.x = top - data;
C.t op = top - next; X = top - data;
D.x = top - data; Top = top - next;
6. In general, the conversion of recursive algorithm to equivalent non-recursive algorithm should be set ().
A. stack b. queue
C. Stack or queue D. Array
7. The suffix expression of expression a * (b + c) -d is ()
A.a BCD * + -b.a BC + * d - c + d. - + * abcd
8. Determine that the condition for a sequential queue sq (m0 at most) is ()
The A.s q- rear - sq- front = = m0 B.s q- rear - sq- front - 1 = = m0
C s q- front = sq- rear D.s q- front = sq- rear + 1
9. Determine that a cyclic queue Q (m0) is the condition of ()
Front = q- rear b.q- front! = Q - rear
C q- front = = (q- rear + 1). = (Q - rear + 1) % m0
10. The condition to determine that a loop queue Q (maximum element is m0) is ()
Front = q- rear b.q- front! = Q - rear
C q- front
您可能关注的文档
- 基础化学考试大纲(Basic chemistry exam outline).doc
- 塑料包装(Plastic packaging).doc
- 塑料特性.(Plastic properties.).doc
- 塑胶制品如何去除内应力(How can plastic products remove internal stress).doc
- 声优趣闻(The making interesting).doc
- 塑胶地板施工工艺(Plastic floor construction process).doc
- 塞班系统c盘文件解析(The symbian system c disk file resolution).doc
- 墙体在建筑空间中的作用(The function of the wall in building space).doc
- 复习题((Review questions ().doc
- 外卖培训课(Take-out training).doc
- 数据结构.都穿、(Data structures. All wear,).doc
- 数据结构(本)课程辅导与练习-第6章(Data structure (this) tutorial and practice - chapter 6).doc
- 数据结构_一元多项式运算器_cpp代码(visual c++)(Data structure _ unary polynomial arithmetic unit _ CPP code (visual c + +)).doc
- 数据结构练习题26(The data structure exercise problem 26).doc
- 数控加工中心刀具对刀原理方法及其应用(The method of cutting tool of nc machining center and its application).doc
- 数码宝贝月光攻略(Digital baby moon strategy).doc
- 数理方法大纲(Mathematical method outline).doc
- 数码相机使用维护技巧(Digital cameras use maintenance techniques).doc
- 数码相机的常用拍摄模式(A common shooting mode for digital cameras).doc
- 数码管显示码盘脉冲个数(Digital tube display code disk pulse number).doc
最近下载
- 中国云新南航空公司acars系统培训.ppt VIP
- 马克思主义宗教观87814.ppt VIP
- 《城市轨道交通通信与信号》教案 第11课 城市轨道交通通信系统(一).docx VIP
- 大众蔚领保养手册.docx VIP
- 部编人教版小学4四年级语文上册(全册)优秀教案设计.doc VIP
- 道德与法治新教材培训心得体会.pptx VIP
- 2026年高考化学大一轮复习第3讲离子共存 离子的检验与推断.pptx VIP
- 冯唐成事心法读书札记.docx VIP
- 第1课 时代精神的精华-【中职专用】2024年中职思想政治《哲学与人生》金牌课件(高教版2023·基础模块).pptx VIP
- 《新闻采访与写作》电子课件 第三章 新闻采写的客体——新闻事实.ppt VIP
文档评论(0)