电大数据结构填空题小抄参考

上传人:仙*** 文档编号:31724432 上传时间:2021-10-12 格式:DOC 页数:3 大小:200.04KB
收藏 版权申诉 举报 下载
电大数据结构填空题小抄参考_第1页
第1页 / 共3页
电大数据结构填空题小抄参考_第2页
第2页 / 共3页
电大数据结构填空题小抄参考_第3页
第3页 / 共3页
资源描述:

《电大数据结构填空题小抄参考》由会员分享,可在线阅读,更多相关《电大数据结构填空题小抄参考(3页珍藏版)》请在装配图网上搜索。

1、专业好文档1把数据存储到计算机中,并具体体现数据之间的逻辑结构称为 物理(存储)结构。2设有一个不带头结点的单向循环链表,结点的指针域为next,指针p指向尾结点,现要使p指向第一个结点,可用语句 p=p-next 。3结构中的数据元素存在一对一的关系称为 线性 结构。4要在一个带头结点的单向循环链表中删除头结点,得到一个新的不带头结点的单向循环链表,若结点的指针域为next,头指针为head,尾指针为p,则可执行head=head- next; p-next=head。5在双向链表中,每个结点有两个指针域,一个指向 结点的直接后继,另一个指向 结点的直接前驱。6设有一个非空的链栈,栈顶指针为

2、hs,要进行出栈操作,用x保存出栈结点的值,栈结点的指针域为next,数据域为data,则可执行x= hs-data;和hs= hs-next;7设有一个头指针为head的单向链表,p指向表中某一个结点,且有p-next= =NULL,通过操作p-next=head ,就可使该单向链表构造成单向循环链表。8循环队列的最大存储空间为MaxSize,队头指针为f,队尾指针为r,当(r+1)%MaxSize=f 时表明队列已满。9从一个栈顶指针为h的链栈中删除一个结点时,用x保存被删结点的值,可执行x=h-data;和h=h-next。(结点的指针域为next)10程序段 int count=0;

3、char *s=” ABCD”; while(*s!=0)s+;count+; 执行后count= 411两个串相等的充分必要条件是 串长度相等且对应位置的字符相等 。12一棵二叉树总结点数为11,叶结点数为5,该树有 4 个双分支结点,2个单分支结点。13对二叉树的遍历可分为 先序、中序、后序、层次 四种不同的遍历次序。14设一棵完全二叉树,其最高层上最右边的叶结点的编号为偶数,该叶节点的双亲结点的编号为9,该完全二叉树一共有 18 个结点。15一棵有n个叶结点的二叉树,其每一个非叶结点的度数都为2,则该树共有 2n-1 个结点。16双向循环链表中,p指向表中某结点,则通过p可以访问到p所指

4、结点的直接后继结点和直接前驱结点,这种说法是 正确 的。17一棵有14个结点的完全二叉树,则它的最高层上有 7 个结点。18栈和队列的操作特点分别是 先进后出 和 先进先出。19如图2所示的二叉树,其先序遍历序列为 abdgcefhi。efgibachd 20折半查找只适用于 顺序存储结构 存储的有序表 。21哈希函数是记录关键字值与该记录 存储地址 之间所构造的对应关系。22深度为k的二叉树最多有 2k-1 结点。23二叉树排序中任一棵子树都是二叉排序树,这种说法是 正确 的。24串的两种最基本的存储方式是 顺序存储 和 链式存储。1通常数据的逻辑结构包括 集合;线性;树形;图状 四种类型。

5、2结构中的元素之间存在多对多的关系称为 图状 结构。3设有一个单向链表,结点的指针域为next,头指针为head,p指向尾结点,为了使该单向链表改为单向循环链表,可用语句 p-next=head 。4设有一个单向循环链表,结点的指针域为next,头指针为head,指针p指向表中某结点,若逻辑表达式 p-next= =head的结果为真,则p所指结点为尾结点。5设有一个单向循环链表,头指针为head,链表中结点的指针域为next,p指向尾结点的直接前驱结点,若要删除尾结点,得到一个新的单向循环链表,可执行操作p-next=head 。 6设有一个链栈,栈顶指针为hs,现有一个s所指向的结点要入栈

6、,则可执行操作s- next=hs; hs=s 。7在一个链队中,f和r分别为队头和队尾指针,队结点的指针域为next,则插入一个s所指结点的操作为r-next=s;r=s;8在一个链队中,f和r分别为队头和队尾指针,队结点的指针域为next,s指向一个要入队的结点,则入队操作为r-next=s;r=s;9循环队列的队头指针为f,队尾指针为r,当 r= =f 时表明队列为空。 10循环队列的最大存储空间为MaxSize=6,采用少用一个元素空间以有效地判断栈空或栈满,若队头指针front=4,当队尾指针rear= 3 时队满,队列中共有5个元素。11A在存储时占 1个字节。“A”在存储时占 2

7、 个字节。12程序段 char *s=”aBcD”;n=0; while(*s!=0) if(*sa&*snext= p-next和p-next=s;的操作。4要在一个单向链表中删除p所指向的结点,已知q指向p所指结点的直接前驱结点,若链表中结点的指针域为next,则可执行q-next= p-next。5设有一个非空的链栈,栈顶指针为hs,要进行出栈操作,用x保存出栈结点的值,栈结点的指针域为next,则可执行x=hs-data;hs=hs-next。6设有一个链栈,栈顶指针为hs,现有一个s所指向的结点要入栈,则可执行操作s-next=hs和hs=s;7在一个不带头结点的非空链队中,f和r分

8、别为队头和队尾指针,队结点的数据域为data,指针域为next,若要进行出队操作,并用变量x存放出队元素的数据值,则相关操作为x=f-data; f=f-next。8在一个不带头结点的非空链队中,f和r分别为队头和队尾指针,队结点的数据域为data,指针域为next,若要进行出队操作,并用变量x存放出队元素的数据值,则相关操作为 x=f-data; f=f-next;。9循环队列的最大存储空间为MaxSize=8,采用少用一个元素空间以有效的判断栈空或栈满,若队头指针front=4,则当队尾指针rear= 4时,队列为空,当rear= 2时,队列有6个元素。10,顺序存储字符串“ABCD”需要

9、占用 5 个字节。11稀疏矩阵存储时,采用一个由 行号;列号;非零元 3部分信息组成的三元组唯一确定矩阵中的一个非零元素。12一棵二叉树叶结点(终端结点)数为5,单分支结点数为2,该树共有11个结点。13一棵二叉树顺序编号为6的结点(树中各结点的编号与等深度的完全二叉中对应位置上结点的编号相同),若它存在右孩子,则右孩子的编号为 13。14设一棵完全二叉树,其最高层上最右边的叶结点的编号为奇数,该叶节点的双亲结点的编号为10,该完全二叉树一共有 21 个结点。15结构中的数据元素存在多对多的关系称为 图状 结构。16结构中的数据元素存在一对多的关系称为 树形 结构。17结构中的数据元素存在一对

10、多的关系称为 树形 结构。18结构中的数据元素存在一对一的关系称为 线性 结构。19如图2所示的二叉树,其前序遍历序列为abdefcg。gfabdec21在队列的顺序存储结构中,当插入一个新的队列元素时, 尾 指针的值增1,当删除一个元素队列时,头 指针的值增1。22图的深度优先搜索和广度优先搜索序列不一定是唯一的。此断言是 正确 的。(回答正确或不正确) 23循环队列的引入,目的是为了克服 假上溢。24按某关键字对记录序列排序,若关键字 相等 的记录在排序前和排序后仍保持它们的前后关系,则排序算法是稳定的,否则是不稳定的。Winger Tuivasa-Sheck, who scored tw

11、o tries in the Kiwis 20-18 semi-final win over England, has been passed fit after a lower-leg injury, while Slater has been named at full-back but is still recovering from a knee injury aggravated against USA.Both sides boast 100% records heading into the encounter but Australia have not conceded a

12、try since Josh Charnleys effort in their first pool match against England on the opening day.Aussie winger Jarryd Hayne is the competitions top try scorer with nine, closely followed by Tuivasa-Sheck with eight.But it is recently named Rugby League International Federation player of the year Sonny B

13、ill Williams who has attracted the most interest in the tournament so far.The Kiwi - with a tournament high 17 offloads - has the chance of becoming the first player to win the World Cup in both rugby league and rugby union after triumphing with the All Blacks in 2011.Id give every award back in a h

14、eartbeat just to get across the line this weekend, said Williams.The (lack of) air up there Watch mCayman Islands-based Webb, the head of Fifas anti-racism taskforce, is in London for the Football Associations 150th anniversary celebrations and will attend Citys Premier League match at Chelsea on Su

15、nday.I am going to be at the match tomorrow and I have asked to meet Yaya Toure, he told BBC Sport.For me its about how he felt and I would like to speak to him first to find out what his experience was.Uefa hasopened disciplinary proceedings against CSKAfor the racist behaviour of their fans during

16、Citys 2-1 win.Michel Platini, president of European footballs governing body, has also ordered an immediate investigation into the referees actions.CSKA said they were surprised and disappointed by Toures complaint. In a statement the Russian side added: We found no racist insults from fans of CSKA.

17、 Baumgartner the disappointing news: Mission aborted.The supersonic descent could happen as early as Sunda.The weather plays an important role in this mission. Starting at the ground, conditions have to be very calm - winds less than 2 mph, with no precipitation or humidity and limited cloud cover.

18、The balloon, with capsule attached, will move through the lower level of the atmosphere (the troposphere) where our day-to-day weather lives. It will climb higher than the tip of Mount Everest (5.5 miles/8.85 kilometers), drifting even higher than the cruising altitude of commercial airliners (5.6 m

19、iles/9.17 kilometers) and into the stratosphere. As he crosses the boundary layer (called the tropopause),e can expect a lot of turbulence.The balloon will slowly drift to the edge of space at 120,000 feet ( Then, I would assume, he will slowly step out onto something resembling an Olympic diving pl

20、atform.They blew it in 2008 when they got caught cold in the final and they will not make the same mistake against the Kiwis in Manchester.Five years ago they cruised through to the final and so far history has repeated itself here - the last try they conceded was scored by Englands Josh Charnley in

21、 the opening game of the tournament.That could be classed as a weakness, a team under-cooked - but I have been impressed by the Kangaroos focus in their games since then.They have been concentrating on the sort of stuff that wins you tough, even contests - strong defence, especially on their own goa

22、l-line, completing sets and a good kick-chase. Theyve been great at all the unglamorous stuff that often goes unnoticed in the stands but not by your team-mates.It is as though their entire tournament has been preparation for the final.In Johnathan Thurston, Cooper Cronk, Cameron Smith and either Bi

23、lly Slater or Greg Inglis at full-back they have a spine that is unmatched in rugby league. They have played in so many high-pressure games - a priceless asset going into Saturday.The Kiwis are a lot less experienced but winning a dramatic match like their semi-final against England will do wonders for their confidence.They defeated Australia in the Four Nations final in 2010 and the last World Cup, and know they can rise to the big occasion.

展开阅读全文
温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!