严蔚敏数据结构题集(C语言版)完整答案.doc

上传人:b****1 文档编号:142896 上传时间:2022-10-04 格式:DOC 页数:114 大小:906KB
下载 相关 举报
严蔚敏数据结构题集(C语言版)完整答案.doc_第1页
第1页 / 共114页
严蔚敏数据结构题集(C语言版)完整答案.doc_第2页
第2页 / 共114页
严蔚敏数据结构题集(C语言版)完整答案.doc_第3页
第3页 / 共114页
严蔚敏数据结构题集(C语言版)完整答案.doc_第4页
第4页 / 共114页
严蔚敏数据结构题集(C语言版)完整答案.doc_第5页
第5页 / 共114页
点击查看更多>>
下载资源
资源描述

严蔚敏数据结构题集(C语言版)完整答案.doc

《严蔚敏数据结构题集(C语言版)完整答案.doc》由会员分享,可在线阅读,更多相关《严蔚敏数据结构题集(C语言版)完整答案.doc(114页珍藏版)》请在冰豆网上搜索。

严蔚敏数据结构题集(C语言版)完整答案.doc

Wewillcontinuetoimprovethecompany'sinternalcontrolsystem,andsteadyimprovementinabilitytomanageandcontrol,optimizebusinessprocesses,toensuresmoothprocesses,responsibilitiesinplace;tofurtherstrengtheninternalcontrols,playacontrolpostindependentoversightroleofevaluationcomplyingwiththird-partyresponsibility;toactivelymakeuseofinternalaudittoolsdetectpotentialmanagement,streamline,standardizerelatedtransactions,strengtheningoperationsinaccordancewithlaw.Deepeningtheinformationmanagementtoensurefullcommunication"zeroresistance".  ToconstantlyperfectERP,andBFS++,andPI,andMIS,andSCM,informationsystembasedconstruction,fullintegrationinformationsystem,achievedinformationresourcesshared;toexpandPortalsystemapplicationofbreadthanddepth,playinformationsystemonenterpriseofAssistantrole;toperfectdailyrunmaintenanceoperationofrecords,promoteproblemreasonsanalysisandsystemhandover;tostrengtheningBFS++,andERP,andSCM,technologyapplicationoftraining,improveemployeesapplicationinformationsystemofcapacityandlevel.Humanisticcaretoensure"zero."  TostrengtheningHumanitiescare,continuestofostercompanywindclear,andgasare,andheartShunofcultureatmosphere;strengtheninglovehelpedtrapped,caredifficultemployees;carriedoutstyleactivities,richemployeeslife;strengtheninghealthandlabourprotection,organizationcareerhealthmedical,controlcareeragainst;continuestoimplementationpsychologicalwarningpreventionsystem,trainingemployeeshealthofcharacter,andstableofmoodandenterprisingofattitude,createdfriendlyfraternityofHumanitiesenvironment.Tostrengthenriskmanagement,ensurethatthebusinessof"zerorisk".Tostrengthenedbusinessplansmanagement,willbusinessbusinessplanscovertoalllevel,ensurethebusinesscancontrolincontrol;tocloseconcernfinancial,andcoalelectriclinkage,andenergy-savingscheduling,nationalpolicytrends,strengtheningtrack,activeshould;toimplementationState-ownedassetsmethod,furtherspecificationbusinessfinancialmanagement;toperfectrisktubecontrolsystem,achievedriskrecognition,andmeasure,andassessment,andreport,andcontrolfeedbackofclosedringmanagement,improveriskpreventioncapacity.  Tofurtherstandardizetrading,andstrivetoachieve"accordingtolaw,standardizeandfair."Innovationofperformancemanagement,toensurethatpotentialemployees"zerofly".Tostrengthenperformancemanagement,processcontrol,enhanceemployeeevaluationandlevelsofeffectivecommunicationtoimproveperformancemanagement.Tofurtherquantifyandrefineemployeestandards...Work,fullplayparty,andbranch,andmembersin"fivetypeEnterprise"constructionintheofcorerole,andfightingfortressroleandpioneermodelrole;tocontinuestostrengthening"fourgood"leadershipconstruction,fullplaylevelscadresinenterprisedevelopmentinthe

严蔚敏数据结构C语言版答案详解

第1章绪论

1.1简述下列术语:

数据,数据元素、数据对象、数据结构、存储结构、数据类型和抽象数据类型。

解:

数据是对客观事物的符号表示。

在计算机科学中是指所有能输入到计算机中并被计算机程序处理的符号的总称。

数据元素是数据的基本单位,在计算机程序中通常作为一个整体进行考虑和处理。

数据对象是性质相同的数据元素的集合,是数据的一个子集。

数据结构是相互之间存在一种或多种特定关系的数据元素的集合。

存储结构是数据结构在计算机中的表示。

数据类型是一个值的集合和定义在这个值集上的一组操作的总称。

抽象数据类型是指一个数学模型以及定义在该模型上的一组操作。

是对一般数据类型的扩展。

1.2试描述数据结构和抽象数据类型的概念与程序设计语言中数据类型概念的区别。

解:

抽象数据类型包含一般数据类型的概念,但含义比一般数据类型更广、更抽象。

一般数据类型由具体语言系统内部定义,直接提供给编程者定义用户数据,因此称它们为预定义数据类型。

抽象数据类型通常由编程者定义,包括定义它所使用的数据和在这些数据上所进行的操作。

在定义抽象数据类型中的数据部分和操作部分时,要求只定义到数据的逻辑结构和操作说明,不考虑数据的存储结构和操作的具体实现,这样抽象层次更高,更能为其他用户提供良好的使用接口。

1.3设有数据结构(D,R),其中

,,

试按图论中图的画法惯例画出其逻辑结构图。

解:

1.4试仿照三元组的抽象数据类型分别写出抽象数据类型复数和有理数的定义(有理数是其分子、分母均为自然数且分母不为零的分数)。

解:

ADTComplex{

数据对象:

D={r,i|r,i为实数}

数据关系:

R={}

基本操作:

InitComplex(&C,re,im)

操作结果:

构造一个复数C,其实部和虚部分别为re和im

DestroyCmoplex(&C)

操作结果:

销毁复数C

Get(C,k,&e)

操作结果:

用e返回复数C的第k元的值

Put(&C,k,e)

操作结果:

改变复数C的第k元的值为e

IsAscending(C)

操作结果:

如果复数C的两个元素按升序排列,则返回1,否则返回0

IsDescending(C)

操作结果:

如果复数C的两个元素按降序排列,则返回1,否则返回0

Max(C,&e)

操作结果:

用e返回复数C的两个元素中值较大的一个

Min(C,&e)

操作结果:

用e返回复数C的两个元素中值较小的一个

}ADTComplex

ADTRationalNumber{

数据对象:

D={s,m|s,m为自然数,且m不为0}

数据关系:

R={}

基本操作:

InitRationalNumber(&R,s,m)

操作结果:

构造一个有理数R,其分子和分母分别为s和m

DestroyRationalNumber(&R)

操作结果:

销毁有理数R

Get(R,k,&e)

操作结果:

用e返回有理数R的第k元的值

Put(&R,k,e)

操作结果:

改变有理数R的第k元的值为e

IsAscending(R)

操作结果:

若有理数R的两个元素按升序排列,则返回1,否则返回0

IsDescending(R)

操作结果:

若有理数R的两个元素按降序排列,则返回1,否则返回0

Max(R,&e)

操作结果:

用e返回有理数R的两个元素中值较大的一个

Min(R,&e)

操作结果:

用e返回有理数R的两个元素中值较小的一个

}ADTRationalNumber

1.5试画出与下列程序段等价的框图。

(1)product=1;i=1;

while(i<=n){

product*=i;

i++;

}

(2)i=0;

do{

i++;

}while((i!

=n)&&(a[i]!

=x));

(3)switch{

casex

z=y-x;break;

casex=y:

z=abs(x*y);break;

defaul

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 党团工作 > 党团建设

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1