数据结构第3章链表

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

世界观人人都有,而哲学只有经过系统的学习的人才能掌握它。世界观是自发成的,是不系统的、不自觉的、缺乏严密的逻辑和理论论证,而哲学则是把自发的、零散的、朴素的世界观加以理论化和系统化,因而具有严密的逻辑和完整的理论体系。appearanceoftheweldappearancequalitytechnicalrequirementsoftheprojectmustnothaveamoltenmetalstreamdoesnotmeltthebasemetaltoweld,weldseamandheat-affectedzonesurfacemustnothavecracks,pores,defectssuchascraterandash,surfacesmoothing,weldandbasemetalshouldbeevenlysmoothtransition.Width2-3mmfromtheedgeofweldGroove.Surfacereinforcementshouldbelessthanorequalto1+0.2timestheslopeedgewidth,andshouldnotbegreaterthan4mm.Depthofundercutshouldbelessthanorequalto0.5mm,totallengthoftheweldsonbothsidesundercutnotexceed10%oftheweldlength,andlongcontinuousshouldnotbegreaterthan100mm.Wrongsideshouldbelessthanorat0.2T,andshouldnotbegreaterthan2mm(wallthicknessmmt)incompleteornotallow7.57.5.1installationqualityprocessstandardsoftheelectricalenclosureCabinetsurfaceisclean,neat,nosignificantphenomenonofconvex,closetonature,closethedoor.7.5.2CabinetCabinetfacepaintsnopaint,returnedtorusted,consistentcolor.7.5.3uniformindirectgapfromtoptobottom,slotwidth1.5mm7.5.4adjacentCabinetsurfaceroughnessis0.7.5.5thecabinetsfirmlyfixed,craftsbeautiful.7.5.6Cabinetsurfacegauge,switchcabinetmarkclear,neat,firmpaste.7.5.7Terminalrowofneat,isreliable,theappearanceiscleanandnotdamaged.7.5.8cablesneatandclean,solidbinding,bindingprocessinappearance.7.5.9thefirstcableproductionfirm,craftsbeautiful,clearsignagedoesnotfade.7.5.10fireproofpluggingtight,nocracksandpores.7.67.6.1ofthestandardelectricalwiringqualitytechnologycablea,themulti-corewirebuncharrangementshouldbeparalleltoeachother,horizontalwireharnessorwireshouldbeperpendiculartothelongitudinalmulti-corewirebunch.Thedistancebetweenthewireharnessandwireharnesssymmetry,andascloseaspossible.B-corewiringharnessintoround,multi-corewirebunchusedgwirebinding,fastening第3章链表一、复习要点本章重点讨论最简单的链表结构——单链表。详细地介绍了单链表的抽象数据类型,单链表的类定义,相应操作的实现,引入了带表头结点的单链表结构。进一步定义了用模板描述的单链表类。作为一种应用,讨论了一元多项式的类定义及其加法操作的实现。此外,讨论了循环链表和双向链表。在复习这一章时需要对C++语言中的指针和引用类型的使用有清楚的理解。对带表头结点的链表和不带表头结点的链表在插入、删除、搜索时的差别有清楚的认识。而且需要明确:链表是一种实现级的结构。本章复习的要点:1、基本知识点单链表是一种线性结构,链表各结点的物理存储可以是不连续的,因此各结点的逻辑次序与物理存放次序可以不一致。必须理解单链表的定义和特点,单链表的抽象数据类型和类定义,单链表成员函数,如构造函数、搜索、插入、删除等操作的实现,对比带表头结点单链表的搜索、插入、删除操作,比较其优缺点。其次是循环链表的定义和特点,它与单链表的差别,它的搜索、插入、删除操作的实现。最后是双向链表的定义,它的插入与删除操作的实现。2、算法设计单链表的迭代求解算法,包括统计链表结点个数,在链表中寻找与给定值value匹配的结点,在链表中寻找第i个结点,在链表中第i个位置插入新结点,删去第i个结点,单链表各结点顺序逆转算法,在单链表中按从左到右和从右到左的顺序遍历的逆转链算法。带表头结点的单链表的迭代算法,包括统计链表结点个数,在链表中寻找与给定值value匹配的结点,在链表中寻找第i个结点,在链表中第i个位置插入新结点,删去第i个结点,连续删除链表中含有value值的结点,两个有序链表的合并。单链表的递归算法,包括统计链表结点个数,在链表中寻找与给定值value匹配的结点,在链表中寻找第i个结点,求链表各结点值的和,求链表各结点的值的平均值。循环链表的迭代算法:包括统计链表结点个数,在链表中寻找与给定值value匹配的结点,在链表中寻找第i个结点,在链表中第i个位置插入新结点,删去第i个结点,将循环链表链入单链表的表头。多项式的建立,两个多项式的相加,两个多项式的相减。用单链表实现字符串操作,每个结点仅存一个字符。二、难点和重点1、单链表:单链表定义、相应操作的实现。单链表的两种定义方式(复合方式与嵌套方式)单链表的搜索算法与插入、删除算法单链表的递归与迭代算法2、循环链表:单链表与循环链表的异同3、双向链表:带表头结点的双向循环链表双向循环链表的定义,带表头结点的优点双向链表的搜索、插入与删除算法4、多项式:多项式的定义、多项式的表示及加法46世界观人人都有,而哲学只有经过系统的学习的人才能掌握它。世界观是自发成的,是不系统的、不自觉的、缺乏严密的逻辑和理论论证,而哲学则是把自发的、零散的、朴素的世界观加以理论化和系统化,因而具有严密的逻辑和完整的理论体系。appearanceoftheweldappearancequalitytechnicalrequirementsoftheprojectmustnothaveamoltenmetalstreamdoesnotmeltthebasemetaltoweld,weldseamandheat-affectedzonesurfacemustnothavecracks,pores,defectssuchascraterandash,surfacesmoothing,weldandbasemetalshouldbeevenlysmoothtransition.Width2-3mmfromtheedgeofweldGroove.Surfacereinforcementshouldbelessthanorequalto1+0.2timestheslopeedgewidth,andshouldnotbegreaterthan4mm.Depthofundercutshouldbelessthanorequalto0.5mm,totallengthoftheweldsonbothsidesundercutnotexceed10%oftheweldlength,andlongcontinuousshouldnotbegreaterthan100mm.Wrongsideshouldbelessthanorat0.2T,andshouldnotbegreaterthan2mm(wallthicknessmmt)incompleteornotallow7.57.5.1installationqualityprocessstandardsoftheelectricalenclosureCabinetsurfaceisclean,neat,nosignificantphenomenonofconvex,closetonature,closethedoor.7.5.2CabinetCabinetfacepaintsnopaint,returnedtorusted,consistentcolor.7.5.3uniformindirectgapfromtoptobottom,slotwidth1.5mm7.5.4adjacentCabinetsurfaceroughnessis0.7.5.5thecabinetsfirmlyfixed,craftsbeautiful.7.5.6Cabinetsurfacegauge,switchcabinetmarkclear,neat,firmpaste.7.5.7Terminalrowofneat,isreliable,theappearanceiscleanandnotdamaged.7.5.8cablesneatandclean,solidbinding,bindingprocessinappearance.7.5.9thefirstcableproductionfirm,craftsbeautiful,clearsignagedoesnotfade.7.5.10fireproofpluggingtight,nocracksandpores.7.67.6.1ofthestandardelectricalwiringqualitytechnologycablea,themulti-corewirebuncharrangementshouldbeparalleltoeachother,horizontalwireharnessorwireshouldbeperpendiculartothelongitudinalmulti-corewirebunch.Thedistancebetweenthewireharnessandwireharnesssymmetry,andascloseaspossible.B-corewiringharnessintoround,multi-corewirebunchusedgwirebinding,fastening46多项式.的三种表示多项式链接表示的优点多项式加法的实现(有序链表的合并算法)三、教材中习题的解析3-1线性表可用顺序表或链表存储。试问:(1)两种存储表示各有哪些主要优缺点?(2)如果有n个表同时并存,并且在处理过程中各表的长度会动态发生变化,表的总数也可能自动改变、在此情况下,应选用哪种存储表示?为什么?(3)若表的总数基本稳定,且很少进行插入和删除,但要求以最快的速度存取表中的元素,这时,应采用哪种存储表示?为什么?【解答】(1)顺序存储表示是将数据元素存放于一个连续的存储空间中,实现顺序存取或(按下标)直接存取。它的存储效率高,存取速度快。但它的空间大小一经定义,在

1 / 25
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功