Optimization Method - 1 - : Artificial Intelligence
Optimization Method - 1 - : Artificial Intelligence
Optimization Method
-1-
A*
• Principal:
- Branch and Bound extended
- Heuristic estimate extended
- Redundant path deletion extended
2
Branch and Bound Principal
• Three mechanisms:
• Algorithm:
1. [BOUNDING] Use any (complete) search method to find a
complete path
➡ LowerBound = cost_of_a_complete_path
4. Iterate
4
Heuristic Estimate Principal
Where:
4 4 10.4
A B C A B 6.7 C
3
4
5 5 S 11
S
3 G 8.9 G
2 4 3
4 D E 6.9 F
D E F
6
Redundant Path Deletion Principal
THEN
delete P
A* Algorithm
1. QUEUE ← path only containing the root
8
SMA*
• Simplified Memory Bounded A* (SMA*)
• Principal:
• Expands the newest best leaf
• Deletes the oldest worst leaf
Minimax
• Is a method for
Ø minimizing the maximum possible loss (minmax) or
Ø maximizing the minimum gain (maxmin)
• Restrictions:
Ø 2 players: MAX (computer) and MIN (opponent)
Ø deterministic, perfect information
10
Minimax (2)
• Prerequisite:
Ø Select a depth-bound and evaluation function
• Algorithm:
1. Construct the tree up till the depth-bound
2. Compute the evaluation function for the leaves
3. Propagate the evaluation function upwards
Ø Taking minima in MIN
Ø Taking maxima in MAX
11
Minimax (3)
3 Select
MAX
this move
MIN 2 1 3
MAX
2 5 3 1 4 4 3
12
Minimax (4)
MAX 5
Select
MIN this move 5
4 3
MAX 8 9 4 5 9 6 3 9 8
13
• Principle:
Ø Generate the depth-first, left-to-right
Ø Propagate final values of nodes as initial estimates for
their parent node
14
Alpha Beta Pruning (2)
MAX ≥2 Alpha-value
MIN ≤2 =2 ≤1 Beta-value
2 5 1 3
15
• Explanation:
‣ The MIN-value (1) is already smaller than the MAX-
value of the parent (2)
‣ The MIN-value is only allowed to decrease
‣ The MAX-value is only allowed to increase
‣ Hence, no point in computing further below the node
16