Professional Documents
Culture Documents
• Local Search
• Optimization
• Hill Climbing and its variation
• Beam Search
• Simulating Annealing
Local Search Algorithms
• Previous searches
– keep paths in memory, and remember
alternatives so search can backtrack.
– Solution is a path to a goal.
5
Algorithm Design Considerations
• How do you represent your problem?
– Rules for agent, e.g. in 8 puzzle problem only moving empty tile
is a legal move
• What is a “complete state”? //state Landscape- contains solutions
f-value f-value =
evaluation(state)
states
15
Variants of Hill climbing’s
• Stochastic Search
– Does not examine all neighbors before deciding how
to move.
– Rather, it selects a neighbor at random, and decides
(based on the amount of improvement in that
neighbor or probability) whether to move to that
neighbor or to examine another.
– This usually converges more slowly than steepest
ascent, but in some state landscapes, it finds better
solutions
Variants of Hill Climbing’s
f-value
f-value = evaluation(state)
19
Beam Search
K=2
S
At every level use only 2
9 11
best nodes A B
7.3 8.5 7.1 9
C D E F
7
5.3
G H 5 I J
6 2
4
2.5 0
K L M N
Simulated Annealing
Combinatorial search technique inspired by the physical
process of annealing [Kirkpatrick et al. 1983, Cerny 1985]
Outline
Select a neighbor at random.
• Reading:
• Chapter 4.1 of the book
Next
Genetic Algorithms
24