Last time: Simulated annealing algorithm
Idea: Escape local extrema by allowing
“bad moves,” but gradually decrease bad moves, but gradually decrease their size and frequency.
Note: goal here is to maximize E.
- 1
Last time: Simulated annealing algorithm Idea: Escape local extrema - - PowerPoint PPT Presentation
Last time: Simulated annealing algorithm Idea: Escape local extrema by allowing bad moves, but gradually decrease bad moves, but gradually decrease their size and frequency. Note: goal here is to - maximize E. 1 Last time:
Idea: Escape local extrema by allowing
Idea: Escape local extrema by allowing
Game playing
The minimax
Resource limitations alpha-beta pruning 3 alpha beta pruning Elements of chance
Abstraction: To describe a game we
Chess Tic-tac-toe …
Accessible environments: Such
4
Search: game-playing then consists of
Unpredictable opponent: introduces
5
Complexity: many games have a huge
Chess:
6
Resource (e.g., time, memory) limit:
1 Pruning: makes the search more efficient
7
A game formulated as a search problem:
Initial state: ?
Operators: ? Terminal state: ?
Utility function: ?
8
9
10
11
12
1.
2.
3.
4.
13
14
15
x x o
win lose
x x
lose draw
x x
x x
x x x
x x o
x x x
x x x
x x x
x x
x x
x x
x
x x x
x x x
x
x x
16
x
x x x
x
x
x
x
x x o
win lose
x x
lose draw
x x
x x
x x x
x x o
x x x
x x x
x x x
x x
x x
x x
x
x x x
x
x x
17
x
x x
x
x
x
18
19
20
21
Complete: ? Optimal: ? Time complexity: ? Space complexity: ?
Complete search is too complex and impractical Evaluation function: evaluates value of state
New MI NI MAX:
CUTOFF-TEST: cutoff test to replace the termination
EVAL: evaluation function to replace utility function
22
23
Weighted linear evaluation function:
to combine n heuristics: f = w1f1 + w2f2 +
+ wnfn
w’s could be the values of pieces (1 for prawn, 3 for bishop) 24
f’s could be the number of type of pieces on the board
25
26