外文翻译-α-β剪枝& Zobrist散列.docx

上传人:b****1 文档编号:149257 上传时间:2022-10-04 格式:DOCX 页数:8 大小:22.25KB
下载 相关 举报
外文翻译-α-β剪枝& Zobrist散列.docx_第1页
第1页 / 共8页
外文翻译-α-β剪枝& Zobrist散列.docx_第2页
第2页 / 共8页
外文翻译-α-β剪枝& Zobrist散列.docx_第3页
第3页 / 共8页
外文翻译-α-β剪枝& Zobrist散列.docx_第4页
第4页 / 共8页
外文翻译-α-β剪枝& Zobrist散列.docx_第5页
第5页 / 共8页
点击查看更多>>
下载资源
资源描述

外文翻译-α-β剪枝& Zobrist散列.docx

《外文翻译-α-β剪枝& Zobrist散列.docx》由会员分享,可在线阅读,更多相关《外文翻译-α-β剪枝& Zobrist散列.docx(8页珍藏版)》请在冰豆网上搜索。

外文翻译-α-β剪枝& Zobrist散列.docx

外文文献

Alpha–betapruning&Zobristhashing

Alpha–betapruning

Alpha–betapruningisasearchalgorithmthatseekstodecreasethenumberofnodesthatareevaluatedbytheminimaxalgorithminitssearchtree.Itisanadversarialsearchalgorithmusedcommonlyformachineplayingoftwo-playergames(Tic-tac-toe,Chess,Go,etc.).Itstopscompletelyevaluatingamovewhenatleastonepossibilityhasbeenfoundthatprovesthemovetobeworsethanapreviouslyexaminedmove.Suchmovesneednotbeevaluatedfurther.Whenappliedtoastandardminimaxtree,itreturnsthesamemoveasminimaxwould,butprunesawaybranchesthatcannotpossiblyinfluencethefinaldecision.

Thebenefitofalpha–betapruningliesinthefactthatbranchesofthesearchtreecanbeeliminated.Thisway,thesearchtimecanbelimitedtothe'morepromising'subtree,andadeepersearchcanbeperformedinthesametime.Likeitspredecessor,itbelongstothebranchandboundclassofalgorithms.Theoptimizationreducestheeffectivedepthtoslightlymorethanhalfthatofsimpleminimaxifthenodesareevaluatedinanoptimalornearoptimalorder(bestchoiceforsideonmoveorderedfirstateachnode).

Withan(averageorconstant)branchingfactorofb,andasearchdepthofdplies,themaximumnumberofleafnodepositionsevaluated(whenthemoveorderingispessimal)isO(b*b*...*b)=O(bd)–thesameasasimpleminimaxsearch.Ifthemoveorderingforthesearchisoptimal(meaningthebestmovesarealwayssearchedfirst),thenumberofleafnodepositionsevaluatedisaboutO(b*1*b*1*...*b)forodddepthandO(b*1*b*1*...*1)foreven

depth,or.Inthelattercase,wheretheplyofasearchiseven,the

effectivebranchingfactorisreducedtoitssquareroot,or,equivalently,thesearchcangotwiceasdeepwiththesameamountofcomputation.[10]Theexplanationofb*1*b*1*...isthatallthefirstplayer'smovesmustbestudiedtofindthebestone,butforeach,onlythebestsecondplayer'smoveisneededtorefuteallbutthefirst(andbest)firstplayermove–alpha–betaensuresnoothersecondplayermovesneedbeconsidered.Whennodesareorderedatrandom,theaveragenumberofnodesevaluatedisroughly.

0

Normallyduringalpha–beta,thesubtreesaretemporarilydominatedbyeitherafirstplayeradvantage(whenmanyfirstplayermovesaregood,andateachsearchdepththefirstmovecheckedbythefirstplayerisadequate,butallsecondplayerresponsesarerequiredtotrytofindarefutation),orviceversa.Thisadvantagecanswitchsidesmanytimesduringthesearchifthemoveorderingisincorrect,eachtimeleadingtoinefficiency.Asthenumberofpositionssearcheddecreasesexponentiallyeachmovenearerthecurrentposition,itisworthspendingconsiderableeffortonsortingearlymoves.Animprovedsortatanydepthwillexponentiallyreducethetotalnumberofpositionssearched,butsortingallpositionsatdepthsneartherootnodeisrelativelycheapastherearesofewofthem.Inpractice,themoveorderingisoftendeterminedbytheresultsofearlier,smallersearches,suchasthroughiterativedeepening.

Thealgorithmmaintainstwovalues,alphaandbeta,whichrepresentthemaximumscorethatthemaximizingplayerisassuredofandtheminimumscorethattheminimizingplayerisassuredofrespectively.Initiallyalphaisnegativeinfinityandbetaispositiveinfinity,i.e.bothplayersstartwiththeirlowestpossiblescore.Itcanhappenthatwhenchoosingacertainbranchofacertainnodetheminimumscorethattheminimizingplayerisassuredofbecomeslessthanthemaximumscorethatthemaximizingplayerisassuredof(beta<=alpha).Ifthisisthecase,theparentnodeshouldnotchosethethisnode,becauseitwillmakethescorefortheparentnodeworse.Therefore,theotherbranchesofthenodedonothavetobeexplored.

Additionally,thisalgorithmcanbetriviallymodifiedtoreturnanentireprincipalvariationinadditiontothescore.SomemoreaggressivealgorithmssuchasMTD(f)donoteasilypermitsuchamodification.

Furtherimprovementcanbeachievedwithoutsacrificingaccuracy,byusingorderingheuristicstosearchpartsofthetreethatarelikelytoforcealpha–betacutoffsearly.Forexample,inchess,movesthattakepiecesmaybeexaminedbeforemovesthatdonot,ormovesthathavescoredhighlyinearlierpassesthroughthegame-treeanalysismaybeevaluatedbeforeothers.Anothercommon,andverycheap,heuristicisthekillerheuristic,wherethelastmovethatcausedabeta-cutoffatthesamelevelinthetreesearchisalways

7

examinedfirst.Thisideacanbegeneralizedintoasetofrefutationtables.

Alpha–betasearchcanbemadeevenfasterbyconsideringonlyanarrowsearchwindow(generallydeterminedbyguessworkbasedonexperience).Thisisknownasaspirationsearch.Intheextremecas

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

当前位置:首页 > 工程科技 > 城乡园林规划

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

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