Game Trees and Minimax Algorithm

Slides:



Advertisements
Similar presentations
Adversarial Search Reference: “Artificial Intelligence: A Modern Approach, 3 rd ed” (Russell and Norvig)
Advertisements

Computers playing games. One-player games Puzzle: Place 8 queens on a chess board so that no two queens attack each other (i.e. on the same row, same.
Tic Tac Toe Architecture CSE 5290 – Artificial Intelligence 06/13/2011 Christopher Hepler.
Integer Tic Tac Toe Let’s Begin Rules: 1.Erase all x’s and o’s from the previous game before you begin. 2.Decide which player will be x’s and which will.
Minimax and Alpha-Beta Reduction Borrows from Spring 2006 CS 440 Lecture Slides.
Shallow Copy Jyh-Shing Roger Jang ( 張智星 ) CSIE Dept, National Taiwan University.
Experiments with MATLAB Experiments with MATLAB Google PageRank Roger Jang ( 張智星 ) CSIE Dept, National Taiwan University, Taiwan
Game Playing CSC361 AI CSC361: Game Playing.
Min-Max Trees Based on slides by: Rob Powers Ian Gent Yishay Mansour.
1 Heuristic Search 4 4.0Introduction 4.1An Algorithm for Heuristic Search 4.2Admissibility, Monotonicity, and Informedness 4.3Using Heuristics in Games.
Backtracking. Introduction Systematic way to do an exhaustive search Take advantage of pruning when possible.
Adversarial Search: Game Playing Reading: Chess paper.
Minimax.
Principal Component Analysis (PCA)
MIU Mini-Max Graham Kendall Game Playing Garry Kasparov and Deep Blue. © 1997, GM Gabriel Schwartzman's Chess Camera, courtesy IBM.
Singly Linked Lists Jyh-Shing Roger Jang ( 張智星 ) CSIE Dept, National Taiwan University 1.
Game Playing. Introduction One of the earliest areas in artificial intelligence is game playing. Two-person zero-sum game. Games for which the state space.
Sorting Algorithms Jyh-Shing Roger Jang ( 張智星 ) CSIE Dept, National Taiwan University.
Binary Search Jyh-Shing Roger Jang ( 張智星 ) CSIE Dept, National Taiwan University.
STL: Maps Jyh-Shing Roger Jang ( 張智星 ) CSIE Dept, National Taiwan University.
Adversarial Search. Game playing u Multi-agent competitive environment u The most common games are deterministic, turn- taking, two-player, zero-sum game.
Adversarial Search. Regular Tic Tac Toe Play a few games. –What is the expected outcome –What kinds of moves “guarantee” that?
Discussions on Audio Melody Extraction (AME) J.-S. Roger Jang ( 張智星 ) MIR Lab, CSIE Dept. National Taiwan University.
Simulation of Stock Trading J.-S. Roger Jang ( 張智星 ) MIR Lab, CSIE Dept. National Taiwan University.
Linear Classifiers (LC) J.-S. Roger Jang ( 張智星 ) MIR Lab, CSIE Dept. National Taiwan University.
1 Decisions in games Minimax algorithm  -  algorithm Tic-Tac-Toe game Decisions in games Minimax algorithm  -  algorithm Tic-Tac-Toe game.
CSE 4705 Artificial Intelligence
Adversarial Search and Game-Playing
Quadratic Classifiers (QC)
DP for Optimum Strategies in Games
Query by Singing/Humming via Dynamic Programming
Last time: search strategies
Alpha-Beta Pruning.
Singing Voice Separation via Active Noise Cancellation 使用主動式雜訊消除於歌聲分離
Iterative Deepening A*
Gradient Descent 梯度下降法
PENGANTAR INTELIJENSIA BUATAN (64A614)
CS Fall 2016 (Shavlik©), Lecture 11, Week 6
Optimizing Minmax Alpha-Beta Pruning Real Time Decisions
Adversarial Search.
Game Playing.
David Kauchak CS52 – Spring 2016
Artificial Intelligence
Search in OOXX Games J.-S. Roger Jang (張智星) MIR Lab, CSIE Dept.
Applications of Stacks and Queues for Constraint Satisfaction Problems
Game playing.
Chapter 6 : Game Search 게임 탐색 (Adversarial Search)
NIM - a two person game n objects are in one pile
Artificial Intelligence
Deep Neural Networks (DNN)
Introduction to Artificial Intelligence Lecture 9: Two-Player Games I
Circularly Linked Lists and List Reversal
National Taiwan University
Game Playing Fifth Lecture 2019/4/11.
Applications of Heaps J.-S. Roger Jang (張智星) MIR Lab, CSIE Dept.
Query by Singing/Humming via Dynamic Programming
Insertion Sort Jyh-Shing Roger Jang (張智星)
Examples of Time Complexity
Scientific Computing: Closing 科學計算:結語
Prediction in Stock Trading
Gradient Descent 梯度下降法
Naive Bayes Classifiers (NBC)
Adversarial Search and Game Playing Examples
Duration & Pitch Modification via WSOLA
Minimax strategies, alpha beta pruning
National Taiwan University
Adversarial Search Game Theory.
Sorting Algorithms Jyh-Shing Roger Jang (張智星)
CS51A David Kauchak Spring 2019
Unit II Game Playing.
Presentation transcript:

Game Trees and Minimax Algorithm J.-S. Roger Jang (張智星) MIR Lab, CSIE Dept. National Taiwan University jang@mirlab.org, http://mirlab.org/jang 2019/5/24

Game trees Game trees Minimax algorithm a-b pruning A tree to represent the progression of states during a two-player game Minimax algorithm A way of finding an optimal move in a two-player game (or in a game tree) a-b pruning A way of speeding up minimax algorithm

MinMax Rule: Game Tree of Tic-Tac-Toc O’s move! 1: O wins 0: Draw -1: O loses X X O Max O X O -1 -1 X’s move! X X O X X O X X O Min O O O O O X O X O O X O 1 -1 -1 1 X X O X X O X X O X X O X X O X X O Max O O X O O X O O X X O O O O X O X O X X O O X O O X O X O X 1 1 X X O X X O X X O X X O Min O O X O O O O O X O O O X O O X O X X O O X O X

Example: a-b Pruning in a Game Tree (1/3) Source Max Min Max Min 8 7 3 9 9 8 2 4 1 8 8 9 9 9 3 4

Example: a-b Pruning in a Game Tree (2/3) Source Stey-by-step DFS! Max Min Max Min 3 17 2 12 15 25 2 5 3 2 14

Example: a-b Pruning in a Game Tree (3/3) Source

Exercise 1: a-b Pruning in a Game Tree Display how the search can be reduced via a-b Pruning Max Min Max Min 5 7 3 9 6 5 2 4 1 8 1 6 4 9 3 4

Exercise 2: a-b Pruning in a Game Tree Display how the search can be reduced via a-b Pruning Max Min Max Min 8 7 3 9 2 5 5 4 1 8 6 1 4 9 3 4