Download presentation
Presentation is loading. Please wait.
1
ALGORITHMS
2
Hill Climbing Algorithm
function hillclimbing(node) node = selectrandomnode; loop if (node is goal) then return(node); successors = generatesuccessors(node); bestsuccessor = selectbestnode(successors); if (value(bestsuccessor) < value(node)) then return(node); node = bestsuccessor; end loop
3
SA Algorithm Schedule, a mapping from time to temperature
Function SIMULATED-ANNEALING(Problem, Schedule) returns a solution state Inputs: Problem, a problem Schedule, a mapping from time to temperature Local Variables : Current, a node Next, a node T, a “temperature” controlling the probability of downward steps Current = MAKE-NODE(INITIAL-STATE[Problem])
4
SA Algorithm For t = 1 to do T = Schedule[t]
If T = 0 then return Current Next = a randomly selected successor of Current E = VALUE[Next] – VALUE[Current] if E > 0 then Current = Next else Current = Next only with probability exp(-E/T)
5
Simulated Annealing
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.