资源描述:
《c语言版数据结构知识点汇总(c language version of the data structure knowledge summary)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、c语言版数据结构知识点汇总(Clanguageversionofthedatastructureknowledgesummary)IntroductionThegeneralstepsofsolvingproblemsbycomputer:Generallyspeaking,tosolveaspecificproblemwiththecomputer,generallythroughthefollowingsteps:first,tospecificquestionsfromtheabstracttoapropermathematicalmodel
2、,andthendesignasolutionofthemathematicalmodelofthealgorithm,finalproceduresfortestingandadjustingtothefinalanswerknow.Theessenceisfindamathematicalmodelofproblemanalysis,objectextractionfromoperation,andfindouttherelationshipbetweentheseoperationscontainingtheobject,andthenuse
3、mathematicallanguagetodescribe.ThreeclassicmathematicalmodelAutomaticbibliographicretrievalsystem--linearrelationshipGame-treeTheproblemofcityroadmapDatastructure(datastructure)Simpleexplanation:acollectionofdataelementsofoneormorespecificrelationsbetween.Alogicalrelationshipb
4、etweenthedatalinkconnection,storage,datastructureusuallyreferstothelogicalstructure.Threekindsofclassicmathematicalmodelmentionedabovereflectthebasicdatastructure,datastructureusuallyhasthefollowingfourrelationships:(1)thecollectionstructure(2)linearstructure(3)treestructure(4
5、)mapstructureSomelineartable(a)AfinitesequenceofNdataelementsStoragestructure:theorderofthestoragestructureandstoragestructure(1)(2)(3)(4)(5)(6)(7)(8)TwelveThirteenFifteenTwenty-twoThirty-fourThirty-eightForty-threeWhenyouneedtoinsertadataelementintheorderofthelineartablestore
6、dintheorder,needmoreelementstomovethe"Tang"placedatanappropriatepositionofelements.Deletetheelements?Somelineartable(two)LinkedStorageWhenyouinsertanewelementonlyneedstochangethepointer.Totwo-dimensionalarrayandlineartableIfalineartable,eachdataelementwhichisrespectivelyalinea
7、rform,suchatwo-dimensionaltableinthedataisusuallyachievedusingtwo-dimensionalarray.Theimageofatwo-dimensionalarrayofmetaphorApluralityofcolumnsformedbysquarem*nToaddresscalculationofarrayProblemDescription:givenN*(N+1)/2data,accordingtotheorderoftherowsintoanarrayofb[1],b[2],i
8、n...Thefirstindexrepresentsthelinesecondcolumnsubscript.IfAIJ