Beruflich Dokumente
Kultur Dokumente
Heuristic Search
Aheuristic techniqueoftencalledsimplyaheuristic,isanyapproachto
problemsolving,learning,ordiscoverythatemploysapracticalmethodnot
guaranteedtobeoptimalorperfect,butsufficientfortheimmediategoals
Heuristicfunctionprobablyleadstoasolutionbutnotineverycase.
Wherefindinganoptimalsolutionisimpossibleorimpractical,heuristic
methodscanbeusedtospeeduptheprocessoffindingasatisfactorysolution.
Heuristicshelptoreducethenumberofalternativesfromanexponential
numbertoapolynomialnumber.
Eg:usingaruleofthumb,aneducatedguess,anintuitivejudgment,
stereotyping,profiling,orcommonsense.
GenerateandTest
HillClimbing
BestFirstSearch
ProblemReduction
Constraintsatisfaction
Means-endsanalysis
Hill Climbing
Incomputerscience,hill climbingisaniterativealgorithmthat
startswithanarbitrarysolutiontoaproblem,thenattemptsto
findabettersolutionbyincrementallychangingasingleelement
ofthesolution.
Ifthechangeproducesabettersolution,anincrementalchangeis
madetothenewsolution,repeatinguntilnofurther
improvementscanbefound
EXAMPLE
Heuristic- Number of tiles in the
incorrect position.
This can also be considered a
lower bound on the number of
moves from a solution!
The best move is the one with
the lowest number returned by the
heuristic.
N QUEENS PROBLEM
ABCD
ABCD
Swap 1,2
BACD
BACD
Swap 2,3
Swap 3,4
ACBD
ACBD
Swap 1,2
Swap 3,4
Swap 2,3
CABD
CABD
ABCD
ABCD
ABDC
ABDC
Swap 4,1
ACDB
ACDB
DCBA
DCBA
Swap 4,1
DBCA
DBCA
10
11
2. Loopuntilasolutionisfoundoracomplete
iterationproducesnochangetocurrentstate:
SUCC=astatesuchthatanypossiblesuccessorofthe
currentstatewillbebetterthanSUCC(theworststate).
Foreachoperatorthatappliestothecurrentstate,evaluate
thenewstate:
goalquit
betterthanSUCCsetSUCCtothisstate
SUCCisbetterthanthecurrentstatesetthecurrent
statetoSUCC.
12
Simulated Annealing
Avariationofhillclimbinginwhich,atthebeginningofthe
process,somedownhillmovesmaybemade.
Todoenoughexplorationofthewholespaceearlyon,sothatthe
finalsolutionisrelativelyinsensitivetothestartingstate.
Loweringthechancesofgettingcaughtatalocalmaximum,or
plateau,oraridge.
13
Simulated Annealing
PhysicalAnnealing
Physicalsubstancesaremeltedandthengraduallycooleduntil
somesolidstateisreached.
Thegoalistoproduceaminimal-energystate.
Annealingschedule:ifthetemperatureisloweredsufficiently
slowly,thenthegoalwillbeattained.
Nevertheless,thereissomeprobabilityforatransitiontoahigher
energystate:eE/kT.
14
Simulatedannealingtacklesthelocalmaximaissuebyallowingsomestepstobe
takenwhichdecreasetheimmediateoptimalityofthecurrentstate.Algorithmssuch
assimulatedannealingcansometimesmakechangesthatmakethingsworse,at
leasttemporarily.Thisallowsfortheavoidanceofdeadendsinthesearchpath.
16
17
18
19
APPLICATIONS
Hillclimbingcanbeappliedtoanyproblemwherethecurrentstateallowsfor
anaccurateevaluationfunctionsuchas
thetravellingsalesmanproblem,
Newtonsmethodoffindingrootofafunction
andavarietyofotherreal-worldproblems.
HillClimbinghasalsobeenusedinroboticstomanagemultiple-robotteams.
OnesuchexampleistheParishalgorithm,whichallowsforscalableand
efficientcoordinationinmulti-robotsystems.Thegroupofresearchers
designedateamofrobots[that]mustcoordinatetheiractionssoasto
guaranteelocationofaskilledevader.
21
RESOUCES
https://en.wikibooks.org/wiki/Algorithms/Hill_Climbing
https://en.wikipedia.org/wiki/Hill_climbing
Thank You