数据结构期末复习资料
第一篇:数据结构期末复习资料
《数据结构》课程复习资料
第一章:数据结构概述
1、掌握数据结构的定义,即数据结构三要素:数据的逻辑结构、存储结构、操作;
2、数据结构包括:逻辑结构和存储结构;
3、数据之间的关系:表(一对一之间的关系)、树(一对多之间的关系)、图(多对多之间的关系);
4、算法的定义:算法衡量的标准:时间复杂度和空间复杂度;
5、算法时间复杂度的求法:给定一段程序,求其时间复杂度;时间复杂度的比较;
6、为什么学习“数据结构”?“数据结构”课程主要学了哪些知识?
第二章:线性表
1、线性表按照存储结构不同分为顺序表、链式表;顺序表的特点:逻辑上相邻的两个元素在物理上也相邻;链式表的特点:逻辑上相邻的两个元素在物理上未必相邻;(“未必”的含义是可相邻也可以不相邻)
2、比较线性表顺序存储和链式存储的优缺点。
第三章:栈和队列
1、栈和队列的特点:栈:后进先出,队列:先进先出
2、熟悉栈和队列的基本操作:初始化栈、入栈操作、出栈操作、判断栈是否为空、取栈顶元素等。
3、根据实例,能够容易的判断出是栈的应用还是队列的应用?
4、重点掌握栈的应用:进制转换算法的思想或程序。
第四章:数组
1、牢记对称矩阵、三角矩阵、对角矩阵的特点,掌握矩阵中的元素Aij与一维数组SA[K]的对应关系。
2、掌握稀疏矩阵的三元组表示法。
第五章:串
1、掌握上课介绍的9种函数名称及其实现结果;
第六章:树
1、二叉树的5个性质;
2、二叉树前序、中序和后序遍历,根据2种遍历结果求第3种遍历结果。
3、完全二叉树、满二叉树、哈弗曼树的定义;
4、给定一组叶子权值,求带权路径长度最小的多少?
第七章:图
1、掌握图的术语:无向完全图、有向完全图、顶点的度等;
2、图的深度优先遍历和广度优先遍历;
3、图的邻接矩阵存储,给定一个图,求出邻接矩阵;或者给定一个邻接矩阵,构造图;
4、图的最小生成树;
第八章:查找
1、查找的定义:静态查找和动态查找
2、折半查找算法的思想;
第九章:排序
1、掌握排序的分类:插入排序、交换排序、选择排序;
2、重点掌握希尔排序、快速排序、简单选择排序;
第二篇:数据结构复习资料
数据结构复习资料
模块一:计算题
一.一棵二叉树的先序、中序和后序序列分别如下,其中有一部分未显示出来。试求出空格处的内容,并画出该二叉树。先序序列: B F ICEH G 中序序列:D KFIA EJC 后序序列: K FBHJ G A 解:在先序序列空格中依次填ADKJ,中序中依次填BHG,后序中依次填DIEC。
二叉树自画!
二.试列出如下图中全部可能的拓扑排序序列。
123456 解:全部可能的拓扑排序序列为:152364、152634、156234、561234、516234、512634、512364 三.已知哈希表地址空间为0..8,哈希函数为H(key)=key%7,采用线性探测再散列处理冲突,将数据序列{100,20,21,35,3,78,99,45}依次存入此哈希表中,列出插入时的比较次数,并求出在等概率下的平均查找长度以及查找因子。
解:哈希表及查找各关键字要比较的次数如下所示:
ASL=1(4×1+1×2+1×4+2×5)=2.5
8a=8/9
四.已知关键字序列{23,13,5,28,14,25},试构造二叉排序树。
解:
五.设有序列:w={23,24,27,80,28},试给出哈夫曼树; 哈夫曼树如下图所示:
六:已知一棵二叉树的先序序列与中序序列分别如下,试画出此二叉树。先序序列:ABCDEFGHIJ 中序序列:CBEDAGHFJI
解:先由先序序列的第一个结点确定二叉树的根结点,再由根结点在中序序列中左侧部分为左子树结点,在右侧部分为右子树结点,再由先序序列的第一个结点确定根结点的左右孩子结点,由类似的方法可确定其他结点,如下图所示。
七.(本题8分)
对于如下图所示的G,用Kruskal算法构造最小生成树,要求图示出每一步的变化情况。
解:用Kruskal算法构造最小生成树的过程如下图所示:
八.给出一组关键字29、18、25、47、58、12、51、10,写出归并排序方法进行排序时的变化过程。
解:
(l8,29)(25,47)(12,58)(l0,51)(l8,25,29,47)(10,12,51,58)(l0,12,18,25,29,47,51,58)
九.
三、(本题8分)
请画出如下图所示的邻接表。
解:邻接表如下图所示:
***45454∧∧∧∧5∧ 十.判断以下序列是否是小根堆? 如果不是,将它调整为小根堆。(1){ 12, 70, 33, 65, 24, 56, 48, 92, 86, 33 }(2){ 05, 23, 20, 28, 40, 38, 29, 61, 35, 76, 47, 100 } 解:(1)不是小根堆。调整为:{12,24,33,65,33,56,48,92,86,70}
(2)是小根堆。
十一. 设有如下图所示的AOE网(其中vi(i=l,2,…,6)表示事件,弧上表示活动的天数)。
v26v14v48217v311v693v5 找出所有的关键路径。
解:所有的关键路径有:v1→v2→v3→v5→v6,以及v1→v4→v6。十二.对给定的有7个顶点的有向图的邻接矩阵如下:(l)画出该有向图;
(2)若将图看成是AOE-网,画出关键路径。
25221835
5395
解:(1)由邻接矩阵所画的有向图如下图所示:
2212523***5)关键路径如下图所示:
22213715945 4(2
第三篇:期末复习资料
火、电器等)关小一点 25..how much yogurt多少 酸奶26..one teaspoon of salt
一茶匙盐 27.make fruit salad 制作水果沙拉
28.two pieces of bread 两片面包29.mix it all up 将它们混合在一起turkey slices 火鸡肉片,31.a slice of bread一片面包
32.takes turns(in)doing sth,.=do sth.in turns 轮流做某事 33.slices of duck 烤鸭片
34.roll pancake 卷上薄饼 35.make faces 作鬼脸make friends with 与……交朋友
make a noise吵闹, make mistakes犯错误, make the bed整理床铺 make one’s way to
往…走去,make room for给…腾出地方36.it’s easy to do sth.做某事容易
it’s hard(difficult)to do sth.做某事难,It’s necessary to do sth.做某事必要 37.put sth,in order 将某些东西按顺序排列38.a recipe for …………的烹调方法, ……的菜
1.let’s do sth让我们做某事。
2.How do you make a banana milk shake?你是怎样制作香蕉奶昔的?
3.How many bananas do we need?我们需要多少个香蕉?
4.How much yogurt do we need?我们需要多少酸奶?
5.First cut up three bananas.Next put the fruit in the bowl.Then put in two teaspoons of
honey and a cup of yogurt.Finally mix it all up.首先切三个香蕉,接着把水果放进一个
碗里,然后放进两茶匙蜂蜜和一杯酸奶,最后把所有的东西混合在一起。
Uint 8How was your school trip?
1.hang out/about/around闲逛2.take photos拍照3.outdoor activities 户外活动
4.outdoor sports户外运动 5.many visitors许多游客6.an umbrella一把雨伞7.win
first prize 赢得一等奖 8.get one’s autograph得到了某人的亲笔签名
9.Vistors’ Center游客中心10.have fun doing sth很高兴的做某事,做某事很高兴
11.in the end最后,终于=finally/ at last12.at the end of在……的末端,在…… 的尽头, 在……结束的时候13.sleep late=oversleep 睡过头,睡懒觉,起得晚 14.go
for a drive开车兜风15.on one’s day off在某人的休息日16.in the yard在院子里
17.have a yard sale 进行庭院旧货销售 18.get wet淋湿 get+形容词,变得…..19.singing competition歌咏比赛20.in the future 在将来21.school trip学校旅行22.watch a dolphin show 看海豚表演23.the class monitor班长24.take a bus back
to +地点。乘公交车返回某地=get back to +地点by bus25.have fun玩得高兴,过得
愉快=have a good/ nice/ wonderful/ great time=enjoy oneself26.in one’s opinion
依某人的看法27.in future今后=from now on28.all day = the whole day = all day
long整天29.sounds like a busy day off 听起来像是一个繁忙的休息日30.because
of+句子 = as a result of 因为,由于31.a famous actor 一个著名的演员 32.watch a
movie about sharks 看一部关于鲨鱼的电影 33.take/have a class 上课 34.help mom
and dad 帮助妈妈和爸爸 35.a basketball player一个篮球运动员36.again= once
more再一次,又一次37.put out放出来,摆出来38.come back from从…..归来
=return from39.see you soon=good-bye 再见40.none of …..当中没有一个.41.go to
the beach去海滩.42.have ice cream吃冰淇淋43.go to the zoo去动物园44.go to the
aquarium去水族馆45.hang out with one’s friends和朋友闲逛46.take photos=take a
photo=take pictures=take a picture照相 47.buy a souvenir买纪念品48.win a prize
赢得奖品(奖项)49.at the aquarium 在水族馆50.on the school trip在学校的旅游
51.after that 后来52.the Gift Shop礼品店53.at the beginning of…在….开始的时
候54.a terrible school trip糟糕的学校旅行55.that sounds interesting那听起来很有趣
56.in the rain在雨中57.take notes of=write down=copy down 写下,记下58.have fun
doing sth.很快乐的做某事59.play computer games玩电脑游戏60.can’t help doing sth.忍不住做某事 61.a heavy rain 一阵大雨62.all night = all night long整夜
不规则动词的过去式: do 做→didswim游泳→swamgo 去→went have吃,有→ hadtake拿去,带去→ tookhang →hungsee看见→ saweat吃→ atebuy买→ boughtwin赢得→ wonget得到→ gotmeet遇见→ metam/is →wasare→ werebring拿来,带来→ broughtput放 →putcut切 →cutbecome成为→ becamebegin开始→ begancan能,会→ couldcome来→ camefind发现,找到 → foundkeep保留,保持→ kept sleep睡觉 →sleptteach教 →toughttell告诉→ toldwrite写 →wroteknow知道 →knewthink想,认为,思考→ thought
与一般过去时连用的时间状语:
(1)Yesterday昨天the day before yesteday前天yesterday
morning/afternoon/evening昨天上午/下午/晚上
(2)last… 上一个------上一次-----last year去年last month 上个月
last Monday 上周周一,上个星期一,等等
(3)一段时间+agotwo minutes ago 两分钟前an hour ago一个
小时以前 3 days ago三天前
(4)Just now刚才a moment ago 刚才in1990: 在1990年in
2008: 在2008年 on May first,2010:在2010年5月1日 等in
the past 从前long ago 很久以前
重点句型:
1.Did you…+do…?你做----吗?-----Did you go to the zoo? 你去动物园了吗?-----Yes, I did.是的,我去了。/No, I didn’t.不,我没去。
2.That sounds + 形容词….那听起来----eg.That sounds interesting.那听起来很有趣。
3.What did you do on your last school trip?在上次的学校旅行中你做了什么?
4.----Were there any 那儿有鲨鱼吗?
-----No, there weren’t any sharks, but there were some really clever seals.不,没
有鲨鱼,但是有一些相当聪明的海豹。
5.How was your day off?= What was your day off like?你的休息日过得怎么样?
6.What else did you do?你还做别的事情了吗? Would you like anything else?你还想要点别的东西吗?
7.Finally,tired but happy, they took the bus bake to school.最后,他们乘公交车返回学校,虽然疲倦但很开心。
8.Class 9 had a great time 九班的学生在学校旅行中玩得很开心。He watched改成一般疑问句:Did he改成否定句: He didn’t watch TV last night.Unit 9When was he born?
1.be(was/were)born出生2.world record世界纪录3.too…..to…..太
----而不能 4.write music 谱曲 5.play for----效力于----6.national team国家队7.spend+钱 on sth 花钱在某物或某事上8.free time 空闲时间9.iceskating滑冰10.tour the U.S.周游美国11.be famous for----因----而出名
12.hum songs 哼唱歌曲13.take part in 参加14.be alive 活着的15.because of +名词,代词或动名词,因为eg.The football match was put off because of the rain.因为下雨,足球赛推迟了。16.at the age of---在----岁时 17.major in 主修18.skating champion滑冰冠军19.table tennis乒乓球运动20.ping-pong player 乒乓球运动员(选手)21.movie star 电影明星 22.a comedy called----一部叫----的喜剧片 called =named23.pieces of music几首音乐
24.start/begindoing sth开始做某事25.stop doing sth停止做某事 26.start/begin to do sth 开始做某事 27.stop to do sth停下来去做某事
28.well-known = famous 出名的,众所周知的29.a5-year-old girl 一个五岁大的女孩30.for 69 years and 5 months 共69年零五个月=as long as 69 years and 5 months31.spend+时间with sb.与某人一起度过----(时光)32.spend +时间/钱(in)doing sth 花费时间或金钱做某事33.international sports star 国际体育明星 34.has world record for hiccupping创打嗝的世界纪录35.for example 例如,举例说明= for instance36.a Brazilian soccer player 一个巴西的足球运动员 Brazil巴西→Brazilian巴西的,巴西人的。37.learn to do sth学着做某事38.first went to a movie 第一次去看电影39.a famous violinist一个出名的小提琴家40.a kind and loving grandmother 一个和蔼慈祥的祖母 41.the first Cinese pianist 第一个中国的钢琴家 42.women’s singles player 女单选手
43.see sb.do sth 看见某人做了某事see sb.doing sth看见某人正在做某事重点句型:
1.-----When was he born?-他什么时候出生的?----He was born in 1998.他出生于1998年。/ He was born on the moring of second February in 1999.他出生于1999年二月二号的上午。/He was born on April 6th,1998.他出生于1998年4月6日。
2.------How long did he hiccup?他打嗝多久了? for 69 years and 5 months.他打嗝打了69年零5个月。
3.-----When did he start hiccupping?他什么时候开始打嗝的?-----He started hiccupping in 1922.他1922年开始打嗝的。
4.You are never too young to start doing things.做事情无论多早都不为过。Too-----to-----太-----而不能-----too是副词,后跟形容词或副词,to是动词不定式符号,后跟动词原形。
5.He was also the first Chinese pianist in the 70-year history of the competition to win this prize.他也是在该项比赛70年的历史上第一个获此奖项的钢琴家。be the first(one)to do---第一个做----的人。the 70-year history 70年的历史 由数词+连字符号“-”+ 名词构成的复合形容词,在句中做定语。另一类复合形容词做定语的结构是:数词+名词(单数)+形容词(各单词之间用连字符号 “–“连接如:a 15-meter-tall tree一棵15米高的树 a 6-year-old boy 一个六岁大的男孩
6.What can I do to become 做什么能让我变得出名?
7.Is he alive?他还健在吗?alive 活着的,在世的。用在连系动词be 等之后做表语。而living,“活着的”,尤指现在的,没有死亡、消失的。可做表语,前置定语和后置定语。Eg:There are no living things on the moon.月球上没有生物。This is a living cat.Why do you say it isn’t alive.这是一只活的猫,你为什么说它不是活着的了呢?
Unit10I’m going to be a basketball player
重点短语:
1.grow up长大,成长2.computer programmer计算机程序员,电脑程序师3.computer science计算机科学4.a professional basketball player一个职业的篮球运动员 5.a job as an engineer 一份做工程师的工作6.take acting lessons上表演课7.practice doing sth 练习做某事8.study math really hard非常努力地学习数学9.move to+地点 搬到某地10.my dream job我理想的工作11.sound like+名词 听起来像------12.somewhere interesting 某个有趣的地方 13.an artist一个艺术家,一个画家14.a part-time job 一份兼职的工作15.a year or two = one or two years一两年an hour or two=one or two hours一两个小时
a day or two=one or two days一两天16.save some money存一些钱 17.at the same time同时18.hold art exhibitions 举办艺术展19.travel all over the world周游世界20.retire somewhere quiet and beautiful 在安静美丽的地方安享晚年 21.send sth.to sb.把某物寄给某人22.New Year’s resolutions 新年决心,新年计划 23.learn to do sth.学习做某事24.play an instrument弹(演)奏 一种乐器25.make the soccer team组建足球队26.get good grades 取得好成绩 27.eat healthier food 吃更健康的食物 28.get /take lots of exercise做大量的运动
29.take guitar lessons 上吉他课30.learn a foreign language学习一门外语31.over= more than 超过eg.There are over 90 students in our class.32.get a letter from sb.收到某人的来信=hear from sb./ receive a letter from sb.33.five faxes5 份传真34.heep fit 保持健康=keep/stay healthy或者 keep in good health35.communicate better with sb.与某人更好的交流(沟通)36.a job as a language teacher 一份当语言老师的工作37.made one’s New Year’s resolutions制定某人的新年决心 38.enjoy doing sth.喜欢做某事39.exchange student交换生40.make a list列一个清单 41.have a welcome party 开一个欢迎晚会 42.all over the world =around the world全世界 43.I’m not sure yet.我还不确定。44.a reporter for fashion magazine 时装杂志记者.45.sounds interesting听起来很有趣be going to do 表示主观打算、准备或有信心做某事
与一般将来时连用的时间状语:
(1)tomorrow 明天the day after tomorrow后天tomorrow morning明天早上
(2)next week下周next year明年next Monday下周一
(3)in + 一段时间、、、、、后in a week一周后in a month一个月后in two days 两天后
(4)this evening 今晚 this year今年this term本学期
(5)from now on 今后,从现在起 in the future 在将来 in March 2015在2015年的3月份
重点句子:
1.----What are you going to be when you grow up?你长大以后打算做什么?
-----I’m going to be a computer programmer.我打算做一名电脑程序设计师。
----How are you going to do that?你打算怎样做呢?
----I’m going to study computer science.我打算学习计算机科学。
2.When I grow up, I’m going to do what I want to do.当我长大后,我打算做我想做的事情。
3.Pairs sounds likethat I could enjoy.巴黎听起来像是我喜欢的那种城市。
4.I’m going to study French at the same time.同时,我还打算学习法语。
5.One day, I’m going to retire somewhere quiet and beautiful.将来某一天我会在一个安静而美丽的地方安享晚年。
6.Some girls are going to exercise more to keep fit.一些女孩打算多锻炼以保持健康。
7.Some parents are going to study the subjects their children learn at school.有些父母打算学习孩子在学校学习的科目(课程)。
8.He is going to be an actor when he grows up.当他长大后他打算当演员。当句中用到whenafterbeforeuntil 等引导的时间状语从句,在从句用到一般现在时,主句谓语结构可用“be going to+动词原形”表达。简称:主将从一般。(主句用将来时从句用一般现在时。)Eg:I am going to be an actor when I grow up.He is going to wait until Mr Zhou comes.9.be going to 与there be句型连用时,be going to后应用 be动词原形,不用 have。即:there is/are going to be-------
eg.There is going to be a heavy snow tomorrow.Be going to和 be doing 都可表示将要发生的动作,但是表示位置移动 的动词,如: gocomeleaveflyarrive等,一般不用be going to的结构,而多用“be+doing”表示将要发生的动作
Eg:He is flying to Beijing next week.My father is leaving for Kunming in two days.leave for=go to
Unit11 Could you please clean your room?
重点短语:
1.do chores= do housework做家务2.take out拿出,取出take out the trash倒垃圾 3.fold the clothes 叠衣服4.make the bed 整理床铺 make one’s bed5.work on从事,忙于
6.living room起居室,客厅7.sweep the floor扫地8.go to a meeting去开会 9.have a rest休息10.hate to do / doing sth.讨厌做某事11.go to the store 去商店购物 12.stay out late 在外面待到很晚13.get a ride搭车give sb.a ride 让某人搭便车14.do the dishes= wash the dishes洗餐具15.do the laundry = wash the clothes =do some washing洗衣服16.thanks for doing sth.因做----而表示感谢 17.take care of=look after 照顾,照看18.play with sb.与某人玩耍 play with fire 玩火19.forget to do sth忘记去做某事 20.on vacation 度假 21.be in = be at home在家22.come over to +地点 顺便拜访23.get angry with sb.生某人的气
24.take---for a walk 带某人去散步25.be not in=be out =be not at home不在家26.invite sb.to do sth 邀请某人做某事27.invite sb.to+地点 邀请某人到某地29.borrow sth.from sb.向某人借某物 30.lend sth.to sb.把某物借给某人 lend sb.sth31.CD player CD播放器32.go out 外出 33.make breakfast/lunch做早餐、午餐34.help sb.with sth在某事上帮助某人 35.help sb.(to)do sth.帮助某人做某事
1.----Could you(please)do sth?表示委婉请求别人做某事
肯定回答:---Yes,sure./Of course,I can./No problem./With pleasure./Certainly.等
否定回答:---Sorry,I can’t.I have to------Sorry, I am going to----/I’m afraid I can’t.I have to---如:---Could you please make your bed?请你整理你的床铺好吗?
---Yes, sure.好的,当然可以。
---Could you do the laundry?请你洗衣服好吗?
---Sorry, I can’t.I am going to do my homework.抱歉,我不能。我要做作业。
2.Could I do sth?表示委婉的请求别人允许自己做某事。
肯定回答:Yes, you can./Yes, please.Certainly/Sure, you can.否定回答: Sorry, you can’t./I’m afraid you can’t.Eg.---Could I go to the movies? 我可以去看电影吗?
---Yes, you can.是的,你可以。
----Could I use your computer?我可以用你的电脑吗?
-----Sorry, you can’t.I am going to work on it.抱歉,你不能。我正准备用它来工作。
3.Thanks for taking care of my dog.感谢你照看我的狗。
4.Take him for a walk.带他去散步。
5.Don’t forget to clean his bed.别忘了打扫他的床铺(窝)。
6.My mother gets really angry when I forget to clean my room.我忘记打扫我的房间时,我妈妈会
真的很生气。
Unit 12What’ s the best radio station?
1.radio station 无线电台2.(be)close to„„离„„近3.movietheater电影院
4.friendly service友好的服务5.clothing store 服装店6.think about思考,考虑
7.do a survey of….作…的调查8.as for 至于,关于9.talentshow才艺表演
10.musical group 音乐组合11.win the prize for 获得…奖12.the price of----的价格13.be friendly to sb.对某人友好 14.comfortable seats 舒适的座位15.big screens大屏幕
16.a beautiful piano piece优美的钢琴曲17.TV show电视节目18.movie theater电影院 =cinema19.Yunnan Province =the province of Yunnan云南省 20.think of 认为21.cut the price 降价,减价22.in winter 在冬季23.200 yuan a night每晚200元24.in the day time=during the day在白天 25.in southern /northern China 在中国南部/北部=in the south/north of China 26.old enough(年龄)足够大long enough 足够长27.one of the +形容词的最高级+复数名词最--------之一eg: Beijing is one of the biggest cities in the world.北京是世界上最大的城市之一。Alice is one of the best students in our class.爱丽斯是我们班最优秀的学生之一。
重点句型:
1.What do you think about„„? 你认为„„怎么样?
Eg:What do young people think about places in town? 年轻人对城里的一些地方有什么看法呢?
2.We did a survey of…我们对„„作了一次调查。
Eg:We did a survey of our readers and this is我们对我们的读者做了一项调查,下面是我们了解到的情况。
3.How much is/are„„?„„多少钱。Eg:How much is this book?这本书多少钱?
4.the price of„is„ „„的价格是„„
Eg:.The price of a hotel room is about 320 yuan a night.宾馆房间的价格大约是每晚320元。
5.need to do sth.需要做某事eg:Tourists need to wear warm clothes.6„enough for+名词/ 代词+to do sth.„„足够„„做某事。Eg:It’s late enough for us to stop work.时间够晚了,我们收工吧。
7.----Can I ask you some questions? 我可以问你一些问题吗?---Sure.8.Last week’s talent show was a great success.上周的才艺表演是非常成功的。/上个星期的才艺表演获得了巨大的成功。
9.My sister Isabel is the funniest person I know.我妹妹伊莎贝尔是我知道的最滑稽的人。
10..He danced without music.在没有音乐伴奏的情况下,他跳了一曲。Without意为“没有”,后可接名词,代词和动名词。Fish can’tlive without water./ The boy left without saying a word.那个男孩没说一句话就离开了(走了)。
11.It doesn’t often rain or snow.不经常下雨和下雪。or作为并列连词,用于否定句中,意为“和”。Eg:I don’t like apples or pears.我不喜欢苹果和梨。
介词in,on,to 的用法:in表示方位时,指一地在另一地的管辖范围内。如:Taiwan is in the southeast of China.台湾在中国的东南部。On表示方位时指的是双方没有所属或管辖关系但是双方接壤。如:North Korea is on the east of China.朝鲜在中国的东面。To表示方位时指双方不接壤,两者间通常隔着江河海洋或别的地方。如: Japan is to the east of China.日本在中国的东方(面)。
希望同学们健康快乐的成长,加油!Come on!
第四篇:数据结构期末复习总结
一、填空题
4.数据结构按逻辑结构可分为两大类,它们分别是 线性结构 非线性结构
4.算法分析的两个主要方面是:
12.在顺序表中插入,需要移动元素。具体移动的元素个数与 表长和该元素在表中的位置有关。
13.线性表中结点的集合是的。
14.向一个长度为n的向量的第i个元素(1≤i≤n+1)之前插入一个元素时,需向后移动个元素。
15.向一个长度为n的向量中删除第i个元素(1≤i≤n)时,需向前移动个元素。
16.在顺序表中访问任意一结点的时间复杂度均为因此,顺序表也称为的数据结构。
17.顺序表中逻辑上相邻的元素的物理位置相邻。单链表中逻辑上相邻的元素的物理位置 相邻。
18.在单链表中,除了首元结点外,任一结点的存储位置由 其直接前驱结点的链域的值指示。
19. 在n个结点的单链表中要删除已知结点*p,需找到它的,其时间复杂度为。
20.向量、栈和队列都是结构,可以在向量的位置插入和删除元素;对于栈只能在栈顶插入和删除元素;对于队列只能在队尾插入和队首删除元素。
23.不包含任何字符(长度为0)的串称为空串;由一个或多个空格(仅由空格符)组成的串称为空白串。
24.子串的定位运算称为串的模式匹配; 被匹配的主串称为目标串,子串称为模式。
25.假设有二维数组A6×8,每个元素用相邻的6个字节存储,存储器按字节编址。已知A的起始存储位置(基地址)为1000,则数组A的体积(存储量)为288 B;末尾元素A57的第一个字节地址为;若按行存储时,元素A14的第一个字节地址为 ;若按列存储时,元素A47的第一个字节地
数据结构期末复习资料
本文2025-01-10 01:37:14发表“精品范文”栏目。
本文链接:https://www.sowenku.com/article/172502.html