Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. IMPERFECT INFORMATION GAMES; what makes them Hard to Analyze ? Peter.

Slides:



Advertisements
Similar presentations
Automata Theory Part 1: Introduction & NFA November 2002.
Advertisements

Peter van Emde Boas: So you think you can play this game ? Symposium Driven by Search, Maastricht, So you think you can Play this Game Peter van.
4b Lexical analysis Finite Automata
Lecture 24 MAS 714 Hartmut Klauck
M9302 Mathematical Models in Economics Instructor: Georgi Burlakov 3.1.Dynamic Games of Complete but Imperfect Information Lecture
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 2 Mälardalen University 2005.
1 1 CDT314 FABER Formal Languages, Automata and Models of Computation Lecture 3 School of Innovation, Design and Engineering Mälardalen University 2012.
Games & Adversarial Search Chapter 5. Games vs. search problems "Unpredictable" opponent  specifying a move for every possible opponent’s reply. Time.
Computational Methods for Management and Economics Carla Gomes Module 8b The transportation simplex method.
Adversarial Search Chapter 5.
Adversarial Search Chapter 6.
M9302 Mathematical Models in Economics Instructor: Georgi Burlakov 3.1.Dynamic Games of Complete but Imperfect Information Lecture
A camper awakens to the growl of a hungry bear and sees his friend putting on a pair of running shoes, “You can’t outrun a bear,” scoffs the camper. His.
1.2 Row Reduction and Echelon Forms
Linear Equations in Linear Algebra
Peter van Emde Boas: Imperfect Information Games; looking for the right model. IMPERFECT INFORMATION GAMES looking for the right Model Peter van Emde Boas.
Peter van Emde Boas: Playing Savage SOFSEM 2000 Milovy PLAYING SAVITCH Peter van Emde Boas ILLC-FNWI-Univ. of Amsterdam Bronstee.com Software and Services.
Complexity 11-1 Complexity Andrei Bulatov Space Complexity.
61 Nondeterminism and Nodeterministic Automata. 62 The computational machine models that we learned in the class are deterministic in the sense that the.
Game Playing CSC361 AI CSC361: Game Playing.
Introduction to Finite Automata Adapted from the slides of Stanford CS154.
Peter van Emde Boas: The Games of Computer Science. THE GAMES OF COMPUTER SCIENCE Peter van Emde Boas ILLC-FNWI-Univ. of Amsterdam References and slides.
Game Trees: MiniMax strategy, Tree Evaluation, Pruning, Utility evaluation Adapted from slides of Yoonsuck Choe.
Chapter 4 Context-Free Languages Copyright © 2011 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1.
Minimax Trees: Utility Evaluation, Tree Evaluation, Pruning CPSC 315 – Programming Studio Spring 2008 Project 2, Lecture 2 Adapted from slides of Yoonsuck.
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.
NFA ε - NFA - DFA equivalence. What is an NFA An NFA is an automaton that its states might have none, one or more outgoing arrows under a specific symbol.
Peter van Emde Boas: What is the size of a game ? Games and Complexity 2011 What is the size of a Game ? Peter van Emde Boas Bronstee.com Software & Services.
Agents that can play multi-player games. Recall: Single-player, fully-observable, deterministic game agents An agent that plays Peg Solitaire involves.
Analysis of Algorithms
Peter van Emde Boas: Games and Computer Science 1999 GAMES AND COMPUTER SCIENCE Theoretical Models 1999 Peter van Emde Boas References available at:
Dynamic Games & The Extensive Form
Lecture 05: Theory of Automata:08 Kleene’s Theorem and NFA.
Overview of Previous Lesson(s) Over View  An NFA accepts a string if the symbols of the string specify a path from the start to an accepting state.
Lexical Analysis: Finite Automata CS 471 September 5, 2007.
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 3 Mälardalen University 2010.
Adversarial Search Chapter Games vs. search problems "Unpredictable" opponent  specifying a move for every possible opponent reply Time limits.
Today’s Topics Playing Deterministic (no Dice, etc) Games –Mini-max –  -  pruning –ML and games? 1997: Computer Chess Player (IBM’s Deep Blue) Beat Human.
 2005 SDU Lecture13 Reducibility — A methodology for proving un- decidability.
An Introduction to Game Theory Math 480: Mathematics Seminar Dr. Sylvester.
Problem Reduction So far we have considered search strategies for OR graph. In OR graph, several arcs indicate a variety of ways in which the original.
Chapter 3 Regular Expressions, Nondeterminism, and Kleene’s Theorem Copyright © 2011 The McGraw-Hill Companies, Inc. Permission required for reproduction.
Game tree search Thanks to Andrew Moore and Faheim Bacchus for slides!
ARTIFICIAL INTELLIGENCE (CS 461D) Princess Nora University Faculty of Computer & Information Systems.
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 3 Mälardalen University 2007.
Finding Regular Simple Paths Sept. 2013Yangjun Chen ACS Finding Regular Simple Paths in Graph Databases Basic definitions Regular paths Regular simple.
Overview of Previous Lesson(s) Over View  A token is a pair consisting of a token name and an optional attribute value.  A pattern is a description.
Strategic Reasoning with Game Description Language Ji Ruan, Prof. W. van der Hoek, Prof. M. Wooldridge Department of Computer Science From Specific Game.
Chapter 5 Finite Automata Finite State Automata n Capable of recognizing numerous symbol patterns, the class of regular languages n Suitable for.
LECTURE 5 Scanning. SYNTAX ANALYSIS We know from our previous lectures that the process of verifying the syntax of the program is performed in two stages:
1 CD5560 FABER Formal Languages, Automata and Models of Computation Lecture 3 Mälardalen University 2006.
1 1.2 Linear Equations in Linear Algebra Row Reduction and Echelon Forms © 2016 Pearson Education, Ltd.
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.
Theory of Computation Automata Theory Dr. Ayman Srour.
Department of Software & Media Technology
Artificial Intelligence AIMA §5: Adversarial Search
Lexical analysis Finite Automata
Non Deterministic Automata
PROPERTIES OF REGULAR LANGUAGES
Chapter 2 FINITE AUTOMATA.
Artificial Intelligence
Non-deterministic Finite Automata (NFA)
Alternating tree Automata and Parity games
Non Deterministic Automata
Linear Equations in Linear Algebra
4b Lexical analysis Finite Automata
Artificial Intelligence
4b Lexical analysis Finite Automata
Lecture 5 Scanning.
Linear Equations in Linear Algebra
Presentation transcript:

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. IMPERFECT INFORMATION GAMES; what makes them Hard to Analyze ? Peter van Emde Boas ILLC-FNWI-Univ. of Amsterdam References and slides available at: © Games Workshop Amsterdam Aachen Exchange-UvA Feb

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. Topics Game Representations Forms of Backward Induction and complexity Imperfect Information Games and Jones’ example

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. GAME REPRESENTATIONS 2 / 02 / 0 5 / -71 / 4 -1 / 4 3 / 13 / 1 -3 / 21 / -1 R D OS -1/1 © Donald Duck 1999 # 35 Strategic Format Game Graph Naive Format

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. WHY WORRY ABOUT MODELS? Algorithmic problem Instances Solutions Instance Format Question Instance Size Algorithm Space/Time Complexity The rules of the meta-game called “Complexity Theory” Machine Model

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. © Games Workshop URGAT Orc Big Boss © Games Workshop THORGRIM Dwarf High King Introducing the Opponents Games involve strategic interaction......

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. Bi-Matrix Games © Games Workshop Runesmith Dragon SquiggOgre R D OS 1/-1 -1/1 A Game specified by describing the Pay-off Matrix....

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. Extensive Form - close to Computation Game Trees (Extensive Form - close to Computation) Root Thorgrim’s turn Urgat’s turn Terminal node: Non Zero-Sum Game: Pay-offs explicitly designated at terminal node 2 / 02 / 0 5 / -71 / 4 -1 / 4 3 / 13 / 1 -3 / 21 / -1 Pay - offs

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. A Game © Donald Duck 1999 # 35 Starting with 15 matches players alternatively take 1, 2 or 3 matches away until none remain. The player ending up with an odd number of matches wins the game A Game specified by describing the rules of the game....

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. Format and Input Size Think about simple games like Tic-Tac-Toe Naive size of the game indicated by measures like: -- size configuration ( 9 cells possibly with marks) -- depth (duration) game (at most 9 moves) The full game tree is much larger : ~ nodes Size of the strategic form beyond imagination..... What size measure should we use for complexity theory estimates ??

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. The Impact of the Format The gap between the experienced size and the size of the game tree is Exponential ! Another Exponential Gap between the game tree and the strategic form. These Gaps are highly relevant for Complexity! The Challenge: Estimate Complexity of Endgame Analysis in terms of experienced size. Wood Measure : configuration size & depth

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. Decision Problems on Games Which Player wins the game –Winning Strategy ? End-game Analysis Termination of the Game Forcing States or Events –Safety (no bad states) –Lifeness (some good state will be reached) Power of Coalitions Game Equivalence (when are two games the same?)

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. Backward Induction and its Complexity 2 / 02 / 0 5 / -71 / 4 -1 / 4 3 / 13 / 1 -3 / 21 / -1 2 / 02 / 0 3 / 13 / 1 1 / 4 -3 / 2 1 / 4 2 / 02 / 0 5 / -71 / 4 -1 / 4 3 / 13 / 1 -3 / 21 / -1

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. Backward Induction on trees 2 / 02 / 0 5 / -71 / 4 -1 / 4 3 / 13 / 1 -3 / 21 / -1 2 / 02 / 0 3 / 13 / 1 1 / 4 -3 / 2 1 / 4 At terminal nodes: Pay-off as explicitly given At Thorgrim’s nodes: Pay-off inherited from Thorgrim’s optimal choice At Urgat’s nodes: Pay-off inherited from Urgat’s optimal choice At Probabilistic nodes: Pay-off evaluated by averaging

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. Backward induction on Game Graphs start T U Initial labeling: only final positions are labeled. start T U Final labeling: iterative apply BI rules until no new nodes are labeled. Remaining nodes are Draw D D T U U U T T T T D D

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. Backward Induction in PSPACE? The Standard Dynamic Programming Algorithm for Backward Induction uses the entire Configuration Graph as a Data Structure: Exponential Space ! Instead we can Use Recursion over Sequences of Moves. So build a game tree for the game! This Recursion proceeds in the game tree from the Leaves to the Root.

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. Backward Induction in PSPACE? The Recursive scheme combines recursion (over move sequence) with iteration (over locally legal moves). Space Consumption = O( | Stackframe |. Recursion Depth ) | Stackframe | = O( | Move sequence | + | Configuration| ) Recursion Depth = | Move sequence | = O( Duration Game ) Thus Polynomial with Respect to the Wood Measure !

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. REASONABLE GAMES Finite Perfect Information (Zero Sum) Two Player Games (possibly with probabilistic moves) Structure: tree given by description, where deciding properties like: is p a position ?, is p final ? is p starting position ?, who has to move in p ?, generation of successors of p are all trivial problems..... The tree can be generated in time proportional to its size..... Moreover the duration of a play is polynomial.

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. Imperfect Information Games © Games Workshop Runesmith Dragon SquiggOgre R D OS 1/-1 -1/1

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. Imperfect Information makes life more complex ! Examples of games where analyzing the Perfect Information version is easier than the Imperfect version. Neil Jones produces such Example in 1978 I.E., perfect FAT in P and Imperfect IFAT which is PSPACE hard How to compare two versions of a game?

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. Combat of Champs == Matching Pennies D R os 1 / / 1 DR 1 / -1-1 / 11 / -1 oos s -1 / 1 In the Game tree Urgat has a winning Strategy In the Matrix Form nobody has a winning strategy So Tree is incorrect representation of the game. Why ?

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. INFORMATION SETS When Urgat has to Move he doesn’t know Thorgrim’s move. Information sets capture this lack of Information. Kripke style semantics. Strategies must be Uniform Urgat has no winning Uniform Strategy. Neither has Thorgrim D R os 1 / / 1 DR 1 / -1-1 / 11 / -1 oos s -1 / 1

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. Urgat doesn’t know the position he is in ! Matrix Games are Imperfect Information Games Thorgrim’s Choice of strategy Urgat’s Choice of strategy Pay-off phase

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. Modified combat of champs DR 1 / -1 oos s -1 / 1 W NW 1 / -1-1 / 11 / -1 oos s -1 / 1 DR The squigg scares the dragon only after a sulfur bath / -1 ? ? ? ? ? ? Backward Induction on Uniform Strategies ?

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. Imperfect Information Version of the same game ? DR 1 / -1 oos s -1 / 1 W NW 1 / -1-1 / 11 / -1 oos s -1 / 1 DR 1 / -1 ? ? ? ? ? ? DR oos s -1 / 1 W NW 1 / -1-1 / 11 / -1 oos s -1 / 1 DR 1 / / 1 ?

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. Imperfect Information makes life more complex ! Imperfect Information Game Extension of Perfect Information Game Graph with information sets and Uniform moves ??? Analysis remains in P !! be it O(v.e) rather than O(v+e) So something else is going on...

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. Imperfect Information Games Adaptation of BI on Graphs: -- Simple games no longer are determinated -- Information sets capture uncertainty -- Uniform strategies are required HOWEVER Nodes may belong to multiple information sets: disambiguation causes exponential blow-up in size Earlier algorithms become incorrect if used on nodes without disambiguation

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. Neil Jones’ example (1978) Game played on (Deterministic) Finite Automaton Some states are selected to be winning for Thorgrim Players choose in turns an input symbol (I.E. the next transition) Just a pebble moving game on a game graph; This can easily be analyzed in Polynomial time. (even in linear time, if done efficiently...) GAME FAT: Finite Automaton Traversal

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. Neil Jones’ example (1978) Consider the version of FAT where Thorgrim doesn’t observe Urgat’s moves: Thorgrim can’t see where the pebble moves. By a simple reduction from the problem to decide whether a given regular expression describes the language {0,1}* (shown to be PSPACE-complete by Meyer and Stockmeyer) this version is proven to be PSPACE- hard. GAME IFAT: Imperfect Finite Automaton Traversal

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. Jones’ Reduction For a given regular expression R first construct its NFA : M(R) Next consider the following game: Each turn Thorgrim chooses an input symbol: 0 or 1; next Urgat chooses a legal transition in M(R). Thorgrim can’t observe the state of M(R) after the transition !!! Thorgrim decides when to end the game. Urgat wins if an accepting state is reached at the end of the game; otherwise Thorgrim wins the game Thorgrim’s winning strategies correspond to input words outside L(R), the language described by R; So Thorgrim wins the game iff L(R)  {0,1}*

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. Jones’ Example ? Question: in which sense is IFAT an imperfect information version of FAT ? Alternating choices between input symbols and transitions is irrelevant difference; introducing new states for old states q and input symbols s both players choose transitions...

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. Jones’ Example ? What are the configurations in IFAT ?? in FAT the states in the FA are adequate representations of the game configurations. in IFAT the states are inadequate; configurations are to be placed in an information set with all other configurations where (according to Thorgrim) the game could be... and that depends on the input symbols processed so far. Compare with subset construction for transforming an NFA into a DFA. These subsets could be adequate.....

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. Jones’ Example ? These subsets could be adequate..... SNAG: the subset construction increases the size of the FA exponentially! The jump of complexity from P to PSPACE is better than we could have predicted; the naive graph based backward induction yields an EXPTIME algorithm.... STILL: The subset construction does not yield the Kripke model with Information sets.

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. What is the Kripke Model? A candidate Kripke Model is the product of the Automaton and its Deterministic version obtained by the subset construction: { | q  A } with ~ when both q and q’  A. Uniform strategies correspond to input symbols (as should be the case).

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. The Punch line Adding Imperfect Information in Jones’ example hardly increases the size of the game in the Wood Measure, but increases the game graph exponentially. By coincidence, for the Perfect Information version the wood measure and the size of the game graph are proportional. So again: Complexity with respect to which measure.....???!!!

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. Conclusion Imperfect Information Games can be harder to analyze !!! But doing the comparison is non trivial, since it has everything to do with (succinct) game representations

Peter van Emde Boas: Imperfect Information Games; what makes them Hard to Analyze. CONCLUSIONS © Morris & Goscinny