完整word版外文翻译遗传算法Word下载.docx

上传人:b****7 文档编号:22595975 上传时间:2023-02-04 格式:DOCX 页数:14 大小:66.74KB
下载 相关 举报
完整word版外文翻译遗传算法Word下载.docx_第1页
第1页 / 共14页
完整word版外文翻译遗传算法Word下载.docx_第2页
第2页 / 共14页
完整word版外文翻译遗传算法Word下载.docx_第3页
第3页 / 共14页
完整word版外文翻译遗传算法Word下载.docx_第4页
第4页 / 共14页
完整word版外文翻译遗传算法Word下载.docx_第5页
第5页 / 共14页
点击查看更多>>
下载资源
资源描述

完整word版外文翻译遗传算法Word下载.docx

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

完整word版外文翻译遗传算法Word下载.docx

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,andentailschoosingtwoindividualstoswapsegmentsoftheircode,producingartificial"

offspring"

thatarecombinationsoftheirparents.Thisprocessisintendedtosimulatetheanalogousprocessofrecombinationthatoccurstochromosomesduringsexualreproduction.Commonformsofcrossoverinclud

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

当前位置:首页 > 党团工作 > 入党转正申请

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1