全文预览

用C++解决问题第十版Chapter7ARRAYS

上传者:梦溪 |  格式:pdf  |  页数:111 |  大小:9957KB

文档介绍
rforeverysizeofdata.Thetoolweneedisthepartiallyfilledarray.\rSearchingandsortingareveryimportanttopicsinComputerScience.DonaldKnuthsaid\rthatmuchofcomputersciencewasencompassedbysearchingandsorting.EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\rThealgorithmspresentedareinsertionsortandlinearsearch.Inmyopinion,thesimplest\rreasonablealgorithmsoughttobetheintroductoryexamples,andthisisthetext'smethod.\rInfact,theprogrammershouldalwaysdesignforcorrectnessandclarityfirst,andworry\raboutefficiencyafteritisdeterminedbytestingthatthesimplestsolutionisdeficientin\rspeedorsomeotherway.\r"Thefastestalgorithmcanfrequentlybereplacedwithonethatisalmostasfastand\rmucheasiertounderstand,"\r-DouglasW.Jones,UniversityofIowa,\rQuotedinMoreProgrammingPearls,p61,JonBentley,AddisonWesley,\r1988.

收藏

分享

举报
下载此文档