Introduction to Artificial Intelligence CS 438 Spring 2008

16
Introduction to Artificial Intelligence CS 438 Spring 2008 • Today – AIMA, Ch. 6 – More Adversarial Search • Next Tuesday – AIMA, Ch. 13 – Reasoning with Uncertainty

description

Introduction to Artificial Intelligence CS 438 Spring 2008. Today AIMA, Ch. 6 More Adversarial Search Next Tuesday AIMA, Ch. 13 Reasoning with Uncertainty. SOE Open House. Schedule EB 2029 Activity Man vs Machine Reversi Class folder Open House. Assignment 3: Game Playing. - PowerPoint PPT Presentation

Transcript of Introduction to Artificial Intelligence CS 438 Spring 2008

Page 1: Introduction to Artificial Intelligence CS 438     Spring 2008

Introduction to Artificial Intelligence

CS 438 Spring 2008• Today

– AIMA, Ch. 6– More Adversarial

Search

• Next Tuesday– AIMA, Ch. 13– Reasoning with

Uncertainty

Page 2: Introduction to Artificial Intelligence CS 438     Spring 2008

SOE Open House

• Schedule

• EB 2029

• Activity– Man vs Machine Reversi– Class folder

• Open House

Page 3: Introduction to Artificial Intelligence CS 438     Spring 2008

Assignment 3: Game Playing

• It Tourney Time!

Page 4: Introduction to Artificial Intelligence CS 438     Spring 2008

Minimax Recap

Page 5: Introduction to Artificial Intelligence CS 438     Spring 2008

α-β pruning• Strategy

– Any path that is being expanded that is clearly worse than any known path can be abandoned early.

Page 6: Introduction to Artificial Intelligence CS 438     Spring 2008

Why is it called α-β?

• α is the value of the best (i.e., highest-value) choice found so far at any choice point along the path for max

• If v is worse than α, max will avoid it prune that branch

• Define β similarly for min

–•

Page 7: Introduction to Artificial Intelligence CS 438     Spring 2008

α-β pruning

• α (alpha): Best choice for max• β (beta): Best choice for min

if maxChoice >= β then prune

if minChoice <= α then prune

Page 8: Introduction to Artificial Intelligence CS 438     Spring 2008

α-β pruning example

Page 9: Introduction to Artificial Intelligence CS 438     Spring 2008

α-β pruning example

if maxChoice >= β then prune

if minChoice <= α then prune

Page 10: Introduction to Artificial Intelligence CS 438     Spring 2008

α-β pruning example

if maxChoice >= β then prune

if minChoice <= α then prune

Page 11: Introduction to Artificial Intelligence CS 438     Spring 2008

α-β pruning example

if maxChoice >= β then prune

if minChoice <= α then prune

Page 12: Introduction to Artificial Intelligence CS 438     Spring 2008

α-β pruning example

if α >= β then prune

if β <= α then prune

Page 13: Introduction to Artificial Intelligence CS 438     Spring 2008

The α-β algorithm

Page 14: Introduction to Artificial Intelligence CS 438     Spring 2008

The α-β algorithm

Page 15: Introduction to Artificial Intelligence CS 438     Spring 2008

How many states can be avoided?

• It depends on the order states are generated in– If the best moves for each player are

generated first then significant pruning can occur

– If the worst moves are generated first then NO pruning can occur

Page 16: Introduction to Artificial Intelligence CS 438     Spring 2008