资源描述:
《Data Structures and Algorithms in Java - Robert Lafore》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、MWSS:DataStructuresandAlgorithmsinJava:IntroductionMWSS:DataStructuresandAlgorithmsinJavabyRobertLaforeWaiteGroupPress,MacmillanComputerPublishingISBN:1571690956PubDate:03/20/98TableofContentsIntroductionThisintroductiontellsyoubriefly•Whatthisbookisabout•Whyit’sdifferent•Whomightwanttorea
2、dit•Whatyouneedtoknowbeforeyoureadit•Thesoftwareandequipmentyouneedtouseit•HowthisbookisorganizedWhatThisBookIsAboutThisbookisaboutdatastructuresandalgorithmsasusedincomputerprogramming.Datastructuresarewaysinwhichdataisarrangedinyourcomputer’smemory(orstoredondisk).Algorithmsaretheprocedu
3、resasoftwareprogramusestomanipulatethedatainthesestructures.Almosteverycomputerprogram,evenasimpleone,usesdatastructuresandalgorithms.Forexample,consideraprogramthatprintsaddresslabels.Theprogrammightuseanarraycontainingtheaddressestobeprinted,andasimpleforlooptostepthroughthearray,printin
4、geachaddress.Thearrayinthisexampleisadatastructure,andtheforloop,usedforsequentialaccesstothearray,executesasimplealgorithm.Foruncomplicatedprogramswithsmallamountsofdata,suchasimpleapproachmightbeallyouneed.However,forprogramsthathandleevenmoderatelylargeamountsofdata,orthatsolveproblemst
5、hatareslightlyoutoftheordinary,moresophisticatedtechniquesarenecessary.SimplyknowingthesyntaxofacomputerlanguagesuchasJavaorC++isn’tenough.Thisbookisaboutwhatyouneedtoknowafteryou’velearnedaprogramminglanguage.Thematerialwecoverhereistypicallytaughtincollegesanduniversitiesasasecond−yearco
6、urseincomputerscience,afterastudenthasmasteredthefundamentalsofprogramming.What’sDifferentAboutThisBookTherearedozensofbooksondatastructuresandalgorithms.What’sdifferentaboutthisone?Threethings:•Ourprimarygoalinwritingthisbookistomakethetopicswecovereasytounderstand.•Demonstrationprogramsc
7、alledWorkshopappletsbringtolifethetopicswecover,showingyoustepbystep,with“movingpictures,”howdatastructuresandalgorithmswork.•TheexamplecodeiswritteninJava,whichiseasiertounderstandthanC,C++,orPascal,thelanguagestraditionallyusedtodemonstratecomputersciencetop