Artificial Intelligence AIMA §5: Adversarial Search

Slides:



Advertisements
Similar presentations
Chapter 6, Sec Adversarial Search.
Advertisements

Adversarial Search Chapter 6 Sections 1 – 4. Outline Optimal decisions α-β pruning Imperfect, real-time decisions.
Adversarial Search Chapter 6 Section 1 – 4. Types of Games.
Games & Adversarial Search Chapter 5. Games vs. search problems "Unpredictable" opponent  specifying a move for every possible opponent’s reply. Time.
February 7, 2006AI: Chapter 6: Adversarial Search1 Artificial Intelligence Chapter 6: Adversarial Search Michael Scherger Department of Computer Science.
Games & Adversarial Search
Games and adversarial search
CSC 8520 Spring Paula Matuszek CS 8520: Artificial Intelligence Solving Problems by Searching Paula Matuszek Spring, 2010 Slides based on Hwee Tou.
Adversarial Search Chapter 6 Section 1 – 4.
Adversarial Search Chapter 5.
COMP-4640: Intelligent & Interactive Systems Game Playing A game can be formally defined as a search problem with: -An initial state -a set of operators.
1 Game Playing. 2 Outline Perfect Play Resource Limits Alpha-Beta pruning Games of Chance.
Lecture 12 Last time: CSPs, backtracking, forward checking Today: Game Playing.
Adversarial Search CSE 473 University of Washington.
Artificial Intelligence for Games Game playing Patrick Olivier
Adversarial Search 對抗搜尋. Outline  Optimal decisions  α-β pruning  Imperfect, real-time decisions.
An Introduction to Artificial Intelligence Lecture VI: Adversarial Search (Games) Ramin Halavati In which we examine problems.
1 Adversarial Search Chapter 6 Section 1 – 4 The Master vs Machine: A Video.
10/19/2004TCSS435A Isabelle Bichindaritz1 Game and Tree Searching.
This time: Outline Game playing The minimax algorithm
1 Game Playing Chapter 6 Additional references for the slides: Luger’s AI book (2005). Robert Wilensky’s CS188 slides:
Game Playing CSC361 AI CSC361: Game Playing.
Games and adversarial search
UNIVERSITY OF SOUTH CAROLINA Department of Computer Science and Engineering CSCE 580 Artificial Intelligence Ch.6: Adversarial Search Fall 2008 Marco Valtorta.
Game Tree Search based on Russ Greiner and Jean-Claude Latombe’s notes.
Games & Adversarial Search Chapter 6 Section 1 – 4.
Game Playing State-of-the-Art  Checkers: Chinook ended 40-year-reign of human world champion Marion Tinsley in Used an endgame database defining.
Game Playing. Introduction Why is game playing so interesting from an AI point of view? –Game Playing is harder then common searching The search space.
Adversarial Search Chapter 6 Section 1 – 4. Outline Optimal decisions α-β pruning Imperfect, real-time decisions.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 9 of 14 Friday, 10 September.
Introduction to Artificial Intelligence CS 438 Spring 2008 Today –AIMA, Ch. 6 –Adversarial Search Thursday –AIMA, Ch. 6 –More Adversarial Search The “Luke.
Adversarial Search Chapter 6 Section 1 – 4. Search in an Adversarial Environment Iterative deepening and A* useful for single-agent search problems What.
Adversarial Search Chapter Games vs. search problems "Unpredictable" opponent  specifying a move for every possible opponent reply Time limits.
ARTIFICIAL INTELLIGENCE (CS 461D) Princess Nora University Faculty of Computer & Information Systems.
Adversarial Search Chapter 6 Section 1 – 4. Games vs. search problems "Unpredictable" opponent  specifying a move for every possible opponent reply Time.
Explorations in Artificial Intelligence Prof. Carla P. Gomes Module 5 Adversarial Search (Thanks Meinolf Sellman!)
Adversarial Search Chapter 5 Sections 1 – 4. AI & Expert Systems© Dr. Khalid Kaabneh, AAU Outline Optimal decisions α-β pruning Imperfect, real-time decisions.
ADVERSARIAL SEARCH Chapter 6 Section 1 – 4. OUTLINE Optimal decisions α-β pruning Imperfect, real-time decisions.
Chapter 5 Adversarial Search. 5.1 Games Why Study Game Playing? Games allow us to experiment with easier versions of real-world situations Hostile agents.
5/4/2005EE562 EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS Lecture 9, 5/4/2005 University of Washington, Department of Electrical Engineering Spring 2005.
Game Playing Why do AI researchers study game playing?
Adversarial Search and Game-Playing
Games and adversarial search (Chapter 5)
EA C461 – Artificial Intelligence Adversarial Search
Announcements Homework 1 Full assignment posted..
4. Games and adversarial search
Games and Adversarial Search
Last time: search strategies
PENGANTAR INTELIJENSIA BUATAN (64A614)
Games and adversarial search (Chapter 5)
CS440/ECE448 Lecture 9: Minimax Search
CS 460 Spring 2011 Lecture 4.
Adversarial Search Chapter 5.
Games & Adversarial Search
Games & Adversarial Search
Adversarial Search.
Artificial Intelligence
Game playing.
Games & Adversarial Search
Games & Adversarial Search
Artificial Intelligence
Minimax strategies, alpha beta pruning
Game Playing Fifth Lecture 2019/4/11.
Mini-Max search Alpha-Beta pruning General concerns on games
Games & Adversarial Search
Adversarial Search CMPT 420 / CMPG 720.
CS51A David Kauchak Spring 2019
Games & Adversarial Search
Adversarial Search Chapter 6 Section 1 – 4.
Presentation transcript:

Artificial Intelligence AIMA §5: Adversarial Search Rodney Nielsen Many / most of these slides were adapted from: AI MA, Russell and Norvig

Adversarial Search Games Perfect Play Minimax algorithm α-β pruning Resource limits and approximate evaluation Games of chance Games of imperfect information

Games vs. Search Problems Unpredictable Opponent  Solution is a strategy specifying a move for every possible opponent reply Time limits  unlikely to find goal, must approximate

Types of Games Deterministic Chance Perfect Information Chess, Checkers, Go, Othello Backgammon, Monopoly Imperfect Information Battleship, Blind TicTacToe Bridge, Poker, Scrabble, Nuclear War

Game tree (2-player, deterministic, turns)

Minimax Perfect play for deterministic, perfect-information games Idea: choose move to position with highest minimax value = best achievable payoff against opponent’s best play E.g., 2-ply game:

Minimax Algorithm

Properties of Minimax Complete? Optimal? Search type? Yes, if tree is finite Optimal? Yes, against an optimal opponent. Otherwise? Search type? Depth-first exploration Complexity? Time: O(bm) Space: O(bm) For chess, b≈35 for “reasonable” games  Exact solution completely infeasible But do we need to explore every path?

α-β Pruning

α-β Pruning X ≥ -∞ ≥ -∞ ≤ 3 ≤ 3 ≥ 3 ≥ 3 ≤ 3 ≤ 3 ≤ 2 ≥ 3 ≥ 3 ≤ 3 ≤ 2 ≤ 14 ≤ 3 ≤ 2 ≤ 2

Game Objective Function Utility Functions Defn: Zero-sum game

α-β Pruning Efficiency / Space and Time Complexity Move ordering Killer moves Transposition table Heuristic evaluation function

Move Ordering X ≥ -∞ ≥ -∞ ≤ 3 ≤ 3 ≥ 3 ≥ 3 ≤ 3 ≤ 3 ≤ 2 ≥ 3 ≥ 3 ≤ 3 ≤ 2 ≤ 14 ≤ 3 ≤ 2 ≤ 2

Move Ordering Move ordering Transposition table Killer moves Need to avoid repeated evaluation (as in state space searches)

Heuristic Evaluation Functions Estimates the expected utility value Instead of calculating exact utility Based on probabilities Chess example (two pawns versus one): 72% wins, 20% losses, and 8% draws f = 0.72*1 + 0.2*0 + 0.08*½ = 0.76 Order terminal states same as utility function Use exact utility at terminal states

Heuristic Evaluation Functions Use features of non-terminal state to estimate utility Creates equivalence classes Often a weighted linear function of features Eval(s) = w1f1(s) + w1f1(s) + … + wdfd(s) Examples Chess features ? Sweep Fives features

Cutting Off Search if Cutoff-Test(state, depth) return Eval(state) When should you cut off the search Depth Quiescence

Cutting Off Search When should you cut off the search Depth Quiescence Horizon Effect

Forward Pruning Beam Search Only explore best n moves past a certain depth

Search versus Lookup Pre-compute and store the best move and its value for some states

Stochastic Games What to do when future states are based on a stochastic process? Calculate the expected value Based on an exhaustive evaluation, or Based on Monte Carlo simulation

Partially Observable Games Belief States Monte Carlo Simulations - again

State-of-the-Art Chess Checkers Othello Poker Go Bridge?