外文翻译遗传算法.docx

上传人:b****1 文档编号:14772468 上传时间:2023-06-27 格式:DOCX 页数:14 大小:66.71KB
下载 相关 举报
外文翻译遗传算法.docx_第1页
第1页 / 共14页
外文翻译遗传算法.docx_第2页
第2页 / 共14页
外文翻译遗传算法.docx_第3页
第3页 / 共14页
外文翻译遗传算法.docx_第4页
第4页 / 共14页
外文翻译遗传算法.docx_第5页
第5页 / 共14页
外文翻译遗传算法.docx_第6页
第6页 / 共14页
外文翻译遗传算法.docx_第7页
第7页 / 共14页
外文翻译遗传算法.docx_第8页
第8页 / 共14页
外文翻译遗传算法.docx_第9页
第9页 / 共14页
外文翻译遗传算法.docx_第10页
第10页 / 共14页
外文翻译遗传算法.docx_第11页
第11页 / 共14页
外文翻译遗传算法.docx_第12页
第12页 / 共14页
外文翻译遗传算法.docx_第13页
第13页 / 共14页
外文翻译遗传算法.docx_第14页
第14页 / 共14页
亲,该文档总共14页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

外文翻译遗传算法.docx

《外文翻译遗传算法.docx》由会员分享,可在线阅读,更多相关《外文翻译遗传算法.docx(14页珍藏版)》请在冰点文库上搜索。

外文翻译遗传算法.docx

外文翻译遗传算法

Whatisageneticalgorithm?

●Methodsofrepresentation

●Methodsofselection

●Methodsofchange

●Otherproblem-solvingtechniques

Conciselystated,ageneticalgorithm(orGAforshort)isaprogrammingtechniquethatmimicsbiologicalevolutionasaproblem-solvingstrategy.Givenaspecificproblemtosolve,theinputtotheGAisasetofpotentialsolutionstothatproblem,encodedinsomefashion,andametriccalledafitnessfunctionthatallowseachcandidatetobequantitativelyevaluated.Thesecandidatesmaybesolutionsalreadyknowntowork,withtheaimoftheGAbeingtoimprovethem,butmoreoftentheyaregeneratedatrandom.

TheGAthenevaluateseachcandidateaccordingtothefitnessfunction.Inapoolofrandomlygeneratedcandidates,ofcourse,mostwillnotworkatall,andthesewillbedeleted.However,purelybychance,afewmayholdpromise-theymayshowactivity,evenifonlyweakandimperfectactivity,towardsolvingtheproblem.

Thesepromisingcandidatesarekeptandallowedtoreproduce.Multiplecopiesaremadeofthem,butthecopiesarenotperfect;randomchangesareintroducedduringthecopyingprocess.Thesedigitaloffspringthengoontothenextgeneration,forminganewpoolofcandidatesolutions,andaresubjectedtoasecondroundoffitnessevaluation.Thosecandidatesolutionswhichwereworsened,ormadenobetter,bythechangestotheircodeareagaindeleted;butagain,purelybychance,therandomvariationsintroducedintothepopulationmayhaveimprovedsomeindividuals,makingthemintobetter,morecompleteormoreefficientsolutionstotheproblemathand.Againthesewinningindividualsareselectedandcopiedoverintothenextgenerationwithrandomchanges,andtheprocessrepeats.Theexpectationisthattheaveragefitnessofthepopulationwillincreaseeachround,andsobyrepeatingthisprocessforhundredsorthousandsofrounds,verygoodsolutionstotheproblemcanbediscovered.

Asastonishingandcounterintuitiveasitmayseemtosome,geneticalgorithmshaveproventobeanenormouslypowerfulandsuccessfulproblem-solvingstrategy,dramaticallydemonstratingthepowerofevolutionaryprinciples.Geneticalgorithmshavebeenusedinawidevarietyoffieldstoevolvesolutionstoproblemsasdifficultasormoredifficultthanthosefacedbyhumandesigners.Moreover,thesolutionstheycomeupwithareoftenmoreefficient,moreelegant,ormorecomplexthananythingcomparableahumanengineerwouldproduce.Insomecases,geneticalgorithmshavecomeupwithsolutionsthatbaffletheprogrammerswhowrotethealgorithmsinthefirstplace!

Methodsofrepresentation

Beforeageneticalgorithmcanbeputtoworkonanyproblem,amethodisneededtoencodepotentialsolutionstothatprobleminaformthatacomputercanprocess.Onecommonapproachistoencodesolutionsasbinarystrings:

sequencesof1'sand0's,wherethedigitateachpositionrepresentsthevalueofsomeaspectofthesolution.Another,similarapproachistoencodesolutionsasarraysofintegersordecimalnumbers,witheachpositionagainrepresentingsomeparticularaspectofthesolution.Thisapproachallowsforgreaterprecisionandcomplexitythanthecomparativelyrestrictedmethodofusingbinarynumbersonlyandoften"isintuitivelyclosertotheproblemspace"(FlemingandPurshouse2002,p.1228).

Thistechniquewasused,forexample,intheworkofSteffenSchulze-Kremer,whowroteageneticalgorithmtopredictthethree-dimensionalstructureofaproteinbasedonthesequenceofaminoacidsthatgointoit(Mitchell1996,p.62).Schulze-Kremer'sGAusedreal-valuednumberstorepresenttheso-called"torsionangles"betweenthepeptidebondsthatconnectaminoacids.(Aproteinismadeupofasequenceofbasicbuildingblockscalledaminoacids,whicharejoinedtogetherlikethelinksinachain.Oncealltheaminoacidsarelinked,theproteinfoldsupintoacomplexthree-dimensionalshapebasedonwhichaminoacidsattracteachotherandwhichonesrepeleachother.Theshapeofaproteindeterminesitsfunction.)Geneticalgorithmsfortrainingneuralnetworksoftenusethismethodofencodingalso.

AthirdapproachistorepresentindividualsinaGAasstringsofletters,whereeachletteragainstandsforaspecificaspectofthesolution.OneexampleofthistechniqueisHiroakiKitano's"grammaticalencoding"approach,whereaGAwasputtothetaskofevolvingasimplesetofrulescalledacontext-freegrammarthatwasinturnusedtogenerateneuralnetworksforavarietyofproblems(Mitchell1996,p.74).

Thevirtueofallthreeofthesemethodsisthattheymakeiteasytodefineoperatorsthatcausetherandomchangesintheselectedcandidates:

flipa0toa1orviceversa,addorsubtractfromthevalueofanumberbyarandomlychosenamount,orchangeonelettertoanother.(SeethesectiononMethodsofchangeformoredetailaboutthegeneticoperators.)Anotherstrategy,developedprincipallybyJohnKozaofStanfordUniversityandcalledgeneticprogramming,representsprogramsasbranchingdatastructurescalledtrees(Kozaetal.2003,p.35).Inthisapproach,randomchangescanbebroughtaboutbychangingtheoperatororalteringthevalueatagivennodeinthetree,orreplacingonesubtreewithanother.

Figure1:

Threesimpleprogramtreesofthekindnormallyusedingeneticprogramming.Themathematicalexpressionthateachonerepresentsisgivenunderneath.

Itisimportanttonotethatevolutionaryalgorithmsdonotneedtorepresentcandidatesolutionsasdatastringsoffixedlength.Somedorepresenttheminthisway,butothersdonot;forexample,Kitano'sgrammaticalencodingdiscussedabovecanbeefficientlyscaledtocreatelargeandcomplexneuralnetworks,andKoza'sgeneticprogrammingtreescangrowarbitrarilylargeasnecessarytosolvewhateverproblemtheyareappliedto.

Methodsofselection

Therearemanydifferenttechniqueswhichageneticalgorithmcanusetoselecttheindividualstobecopiedoverintothenextgeneration,butlistedbelowaresomeofthemostcommonmethods.Someofthesemethodsaremutuallyexclusive,butotherscanbeandoftenareusedincombination.

Elitistselection:

Themostfitmembersofeachgenerationareguaranteedtobeselected.(MostGAsdonotusepureelitism,butinsteaduseamodifiedformwherethesinglebest,orafewofthebest,individualsfromeachgenerationarecopiedintothenextgenerationjustincasenothingbetterturnsup.)

Fitness-proportionateselection:

Morefitindividualsaremorelikely,butnotcertain,tobeselected.

Roulette-wheelselection:

Aformoffitness-proportionateselectioninwhichthechanceofanindividual'sbeingselectedisproportionaltotheamountbywhichitsfitnessisgreaterorlessthanitscompetitors'fitness.(Conceptually,thiscanberepresentedasagameofroulette-eachindividualgetsasliceofthewheel,butmorefitonesgetlargerslicesthanlessfitones.Thewheelisthenspun,andwhicheverindividual"owns"thesectiononwhichitlandseachtimeischosen.)

Scalingselection:

Astheaveragefitnessofthepopulationincreases,thestrengthoftheselectivepressurealsoincreasesandthefitnessfunctionbecomesmorediscriminating.Thismethodcanbehelpfulinmakingthebestselectionlateronwhenallindividualshaverelativelyhighfitnessandonlysmalldifferencesinfitnessdistinguishonefromanother.

Tournamentselection:

Subgroupsofindividualsarechosenfromthelargerpopulation,andmembersofeachsubgroupcompeteagainsteachother.Onlyoneindividualfromeachsubgroupischosentoreproduce.

Rankselection:

Eachindividualinthepopulationisassignedanumericalrankbasedonfitness,andselectionisbasedonthisrankingratherthanabsolutedifferencesinfitness.Theadvantageofthismethodisthatitcanpreventveryfitindividualsfromgainingdominanceearlyattheexpenseoflessfitones,whichwouldreducethepopulation'sgeneticdiversityandmighthinderattemptstofindanacceptablesolution.

Generationalselection:

Theoffspringoftheindividualsselectedfromeachgenerationbecometheentirenextgeneration.Noindividualsareretainedbetweengenerations.

Steady-stateselection:

Theoffspringoftheindividualsselectedfromeachgenerationgobackintothepre-existinggenepool,replacingsomeofthelessfitmembersofthepreviousgeneration.Someindividualsareretainedbetweengenerations.

Hierarchicalselection:

Individualsgothroughmultipleroundsofselectioneachgeneration.Lower-levelevaluationsarefasterandlessdiscriminating,whilethosethatsurvivetohigherlevelsareevaluatedmorerigorously.Theadvantageofthismethodisthatitreducesoverallcomputationtimebyusingfaster,lessselectiveevaluationtoweedoutthemajorityofindividualsthatshowlittleornopromise,andonlysubjectingthosewhosurvivethisinitialtesttomorerigorousandmorecomputationallyexpensivefitnessevaluation.

Methodsofchange

Onceselectionhaschosenfitindividuals,theymustberandomlyalteredinhopesofimprovingtheirfitnessforthenextgeneration.Therearetwobasicstrategiestoaccomplishthis.Thefirstandsimplestiscalledmutation.Justasmutationinlivingthingschangesonegenetoanother,somutationinageneticalgorithmcausessmallalterationsatsinglepointsinanindividual'scode.

Thesecondmethodiscalledcrossover,andentailschoosingtwoindividualstosoftheircode,producingartificial"offspring"thatarecombinationsoftheirparents.Thisprocessisintendedtosimulatetheanalogousprocessofrecombinationthatoccurstochromosomesduringsexualreproduction.Commonformsofcrossoverincludesingle-pointcros

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 教学研究 > 教学反思汇报

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2