Professional Documents
Culture Documents
Local Beam Search: Individuals
Local Beam Search: Individuals
18.3.2010
76
Genetic algorithms
18.3.2010
77
247 48552
327 52411
Finally, each location in the child strings is subject to possible
mutation
In mutation characters are replaced with other with a (very) small
independent probability
The success of GAs usually requires carefully chosen coding of
individuals and restricting genetic operations so that the children
make sense as solutions
Nowadays very popular heuristic search method, but quite
inefficient
18.3.2010
78
Let the objective function f(x1, y1, x2, y2, x3, y3) be a function on
six continuous-valued variables
The gradient of the objective function f is a vector that gives
the magnitude and the direction of the steepest slope
f
f
f
f
f
f
f
,
,
,
,
,
x1 y1 x2 y2 x3 y3
18.3.2010
79
18.3.2010
80
18.3.2010
81
18.3.2010
82
G
S
A
G
18.3.2010
83
18.3.2010
84
18.3.2010
85
18.3.2010
86
18.3.2010
87
18.3.2010
88
6 ADVERSARIAL SEARCH
Let us turn away from searching a path from the initial state to a
goal state and consider competitive environments instead
There is an adversary that may also make state transitions and
the adversary wants to throw our good path off the rails
The aim in adversarial search is to find a move strategy that
leads to a goal state independent of the moves of the adversary
Two-player deterministic, turn-taking, two-player, zero sum
(board) games of perfect information
In the end of the game one of the players has won and the other
one has lost
18.3.2010
89
18.3.2010
90
In our quest for the optimal game strategy, we will assume that
also the adversary is infallible
Player min chooses the moves that are best for it
To determine the optimal strategy, we compute for each node n its
minimax value:
MM ( n)
Utility( n),
if n is a terminal state
max s S ( n ) MM ( s ), if n is a max node
min s
S (n)
MM ( s ),
if n is a min node
18.3.2010
91
max
12
14
min
max
18.3.2010
92
18.3.2010
93
18.3.2010
94
18.3.2010
10
95
18.3.2010
96
18.3.2010
11
97
18.3.2010
98
18.3.2010
12
99
18.3.2010
100
18.3.2010
13
101
18.3.2010
102
18.3.2010
14
103
18.3.2010
104
Deep Blue
18.3.2010
15