资源描述:
《一简述下列概念:数据、数据元素、数据类型、数据结构、》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、一简述下列概念:数据、数据元素、数据类型、数据结构、Neversighfortheyearsthathavegone,butmustfacethetimethatslipsaway.-BlyHittI.Thefollowingconceptsareoutlined:data,dataelements,datatypes,datastructures,logicalstructures,storagestructures,linearstructures,andnonlinearstructures・Answer:Data:anin
2、fonnationcarrierthatcanberecognized,storedandprocessedbyacomputer・Dataelements:thebasicunitofdata・Insomecases,dataelementsarealsocalledelements,nodes,vertices,andrecords.Dataelementscansometimesbecomposedofanumberofdataitems.Datatypes:acollectionofvaluesandasetofopera
3、tionsdefinedonthesevalues・Typically,datatypescanbeconsideredasdatastructuresthathavebeenimplementedinaprogramminglanguage・Datastructure:referstotherelationshipbetweenthedata,thatis,theformofdataorganization.Generallyincludesthreeaspects:thelogicalstructureofdata,stora
4、gestructureanddataoperation.Logicalstructure:thelogicalrelationbetweendataelements・Storagestructure:therepresentationofdataelementsandtheirrelationshipsincomputermemory,calledthestoragestructureofdata・Linearstructure:aclassofdatalogicstructures・Itischaracterizedbyifth
5、estructureisnonempty,thestructurehasonlyastartnodeandaterminalnode,andallnodeshaveonlyonedirectpredecessorandadirectsuccessor・Alineartableisatypicallinearstructure・Stacks,queues,strings,etc.arealllinearstructures・Nonlinearstructure:anotherlargecategoryofdatalogicstruc
6、ture・Itslogicalfeatureisthatanodemayhavemultipledirectforwardanddirectsuccessors・Datastructuressuchasarrays,generalizedtables,trees,andgraphsarenonlinearstructures・Two.Letnbeapositiveinteger,andusethelarge"0〃notationtorepresenttheexecutiontimeofthefollowingprogramsegm
7、entsasafunctionofn.(1)i=l;k=0;Wh订e(i8、0;Do{K二k+10*i;i++;}Wh订e(i