资源描述:
《algorithms-solutions-ch-01 英文文献资料》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、April2011CHAPTER1TheRoleofAlgorithmsinComputingدينارانهديةعنـدالتنبيهعلىكـلخطـأبمذكراتالموقعبرسالةSMSأوبالبريدالالكترونيموادعامة:PhysicsI/II,Circuits,English123,Numerical,Dynamics,Strength,StaticsC++,Java,MATLAB,DataStructures,Algorithms,DiscreteMath,DigitalLogic,Conceptsموادكمبيوتر:Mechani
2、calDesignI/II,StructuralAnalysisI/II,Management,CAD,FluidMechanics,SystemDynamicsموادتصميم:م.حمادةشعبان94444260info@eng-hs.comشرحومسائلمحلولةمجاناًبالموقعينeng-hs.com,eng-hs.netApril20111.1AlgorithmsDefinitionAnalgorithmisanywell-definedcomputationalprocedurethattakessomevalue,orsetofvalues
3、,asinputandproducessomevalue,orsetofvalues,asoutput.Analgorithmisthusasequenceofcomputationalstepsthattransformtheinputintotheoutput.Wecanalsoviewanalgorithmasatoolforsolvingawell-specifiedcomputationalproblem.Thestatementoftheproblemspecifiesingeneraltermsthedesiredinput/outputrelationship
4、.Thealgorithmdescribesaspecificcomputationalprocedureforachievingthatinput/outputrelationship.التمسلغيركالأعذار،فأنتلاتعلمالحقيقةكاملة.دينارانهديةعنـدالتنبيهعلىكـلخطـأبمذكراتالموقعبرسالةSMSأوبالبريدالالكترونيموادعامة:PhysicsI/II,Circuits,English123,Numerical,Dynamics,Strength,StaticsC++,Jav
5、a,MATLAB,DataStructures,Algorithms,DiscreteMath,DigitalLogic,Conceptsموادكمبيوتر:MechanicalDesignI/II,StructuralAnalysisI/II,Management,CAD,FluidMechanics,SystemDynamicsموادتصميم:م.حمادةشعبان94444260info@eng-hs.comشرحومسائلمحلولةمجاناًبالموقعينeng-hs.com,eng-hs.netApril2011ExampleOnemightne
6、edtosortasequenceofnumbersintonondecreasingorder.Hereishowweformallydefinethesortingproblem:Input:Asequenceofnnumbers‹a1,a2,…,an›.Output:Apermutation(reordering)‹a′1,a′2,…,a′n›oftheinputsequencesuchthata′1≤a′2≤…≤a′n.Giventheinputsequence‹31,41,59,26,41,58›.Asortingalgorithmreturnsasoutputth
7、esequence‹26,31,41,41,58,59›.Suchaninputsequenceiscalledaninstanceofthesortingproblem.تواضعللكل،فأولمعصيةللهكانتالكبر.عددمكونمن3خانات،إذاضربتهفي2ثمطرحتمنه1،نتجنفسالعددالأولمقروءبالعكس.دينارانهديةعنـدالتنبيهعلىكـلخطـأبمذكراتالموقعبرسالةSMSأوبالبريدالالكتر