Sequential games. We may play the dating game as a sequential game. In this case, one player, say Connie, makes a choice before the other.

Similar documents
Tutorial 1. (ii) There are finite many possible positions. (iii) The players take turns to make moves.

Contents. MA 327/ECO 327 Introduction to Game Theory Fall 2017 Notes. 1 Wednesday, August Friday, August Monday, August 28 6

Mohammad Hossein Manshaei 1394

Game Theory and Algorithms Lecture 19: Nim & Impartial Combinatorial Games

Tangent: Boromean Rings. The Beer Can Game. Plan. A Take-Away Game. Mathematical Games I. Introduction to Impartial Combinatorial Games

Plan. Related courses. A Take-Away Game. Mathematical Games , (21-801) - Mathematical Games Look for it in Spring 11

The Hex game and its mathematical side

1. Simultaneous games All players move at same time. Represent with a game table. We ll stick to 2 players, generally A and B or Row and Col.

What is... Game Theory? By Megan Fava

A Brief Introduction to Game Theory

Games of Perfect Information and Backward Induction

Math 152: Applicable Mathematics and Computing

Three Pile Nim with Move Blocking. Arthur Holshouser. Harold Reiter.

A Brief Introduction to Game Theory

Obliged Sums of Games

ECON 282 Final Practice Problems

2. The Extensive Form of a Game

Advanced Microeconomics: Game Theory

The extensive form representation of a game

EXPLORING TIC-TAC-TOE VARIANTS

Solutions to Part I of Game Theory

STAJSIC, DAVORIN, M.A. Combinatorial Game Theory (2010) Directed by Dr. Clifford Smyth. pp.40

Background. Game Theory and Nim. The Game of Nim. Game is Finite 1/27/2011

Exercises for Introduction to Game Theory SOLUTIONS

Grade 7/8 Math Circles Game Theory October 27/28, 2015

Senior Math Circles February 10, 2010 Game Theory II

SOME MORE DECREASE AND CONQUER ALGORITHMS

Crossing Game Strategies

Jim and Nim. Japheth Wood New York Math Circle. August 6, 2011

CHECKMATE! A Brief Introduction to Game Theory. Dan Garcia UC Berkeley. The World. Kasparov

ECO 220 Game Theory. Objectives. Agenda. Simultaneous Move Games. Be able to structure a game in normal form Be able to identify a Nash equilibrium

Games in Extensive Form, Backward Induction, and Subgame Perfection:

Game, Set, and Match Carl W. Lee September 2016

Backward Induction and Stackelberg Competition

Definition 1 (Game). For us, a game will be any series of alternating moves between two players where one player must win.

Sequential games. Moty Katzman. November 14, 2017

Final Exam, Math 6105

SF2972 Game Theory Written Exam March 17, 2011

Introduction To Game Theory: Two-Person Games of Perfect Information and Winning Strategies. Wes Weimer, University of Virginia

DECISION MAKING GAME THEORY

Combined Games. Block, Alexander Huang, Boao. icamp Summer Research Program University of California, Irvine Irvine, CA

Game Simulation and Analysis

Dynamic Games: Backward Induction and Subgame Perfection

Introduction to Game Theory

Introduction to Game Theory

Circular Nim Games. S. Heubach 1 M. Dufour 2. May 7, 2010 Math Colloquium, Cal Poly San Luis Obispo

GAMES AND STRATEGY BEGINNERS 12/03/2017

The Game of SET R, and its Mathematics.

NIM Games: Handout 1

Formidable Fourteen Puzzle = 6. Boxing Match Example. Part II - Sums of Games. Sums of Games. Example Contd. Mathematical Games II Sums of Games

(b) In the position given in the figure below, find a winning move, if any. (b) In the position given in Figure 4.2, find a winning move, if any.

UPenn NETS 412: Algorithmic Game Theory Game Theory Practice. Clyde Silent Confess Silent 1, 1 10, 0 Confess 0, 10 5, 5

Week 1. 1 What Is Combinatorics?

CMU Lecture 22: Game Theory I. Teachers: Gianni A. Di Caro

Resource Allocation and Decision Analysis (ECON 8010) Spring 2014 Foundations of Game Theory

16.410/413 Principles of Autonomy and Decision Making

Another Form of Matrix Nim

PRIMES STEP Plays Games

Noncooperative Games COMP4418 Knowledge Representation and Reasoning

Grade 7/8 Math Circles. February 14 th /15 th. Game Theory. If they both confess, they will both serve 5 hours of detention.

(a) Left Right (b) Left Right. Up Up 5-4. Row Down 0-5 Row Down 1 2. (c) B1 B2 (d) B1 B2 A1 4, 2-5, 6 A1 3, 2 0, 1

The first player, Fred, turns on the calculator, presses a digit key and then presses the

Game theory. Logic and Decision Making Unit 2

THE GAME CREATION OPERATOR

Games on graphs. Keywords: positional game, Maker-Breaker, Avoider-Enforcer, probabilistic

Sec 5.1 The Basics of Counting

Economics II: Micro Winter 2009 Exercise session 4 Aslanyan: VŠE

Japanese. Sail North. Search Search Search Search

Analyzing ELLIE - the Story of a Combinatorial Game

Extensive-Form Games with Perfect Information

Introduction to Game Theory a Discovery Approach. Jennifer Firkins Nordstrom

Game Tree Search. CSC384: Introduction to Artificial Intelligence. Generalizing Search Problem. General Games. What makes something a game?

ON SPLITTING UP PILES OF STONES

"Students play games while learning the connection between these games and Game Theory in computer science or Rock-Paper-Scissors and Poker what s

Mixed Strategies; Maxmin

Introduction to (Networked) Game Theory. Networked Life NETS 112 Fall 2016 Prof. Michael Kearns

How hard are computer games? Graham Cormode, DIMACS

Lecture 5: Subgame Perfect Equilibrium. November 1, 2006

CS 491 CAP Intro to Combinatorial Games. Jingbo Shang University of Illinois at Urbana-Champaign Nov 4, 2016

INTRODUCTION TO GAME THEORY

ECON 2100 Principles of Microeconomics (Summer 2016) Game Theory and Oligopoly

Game Theory and the Environment. Game Theory and the Environment

Aspects of Game Theory & John Nash

1. Introduction to Game Theory

Game Theory and Randomized Algorithms

Multiagent Systems: Intro to Game Theory. CS 486/686: Introduction to Artificial Intelligence

CMU-Q Lecture 20:

Contest 1. October 20, 2009

On Variations of Nim and Chomp

of Nebraska - Lincoln

CS510 \ Lecture Ariel Stolerman

Genetic Algorithms in MATLAB A Selection of Classic Repeated Games from Chicken to the Battle of the Sexes

Multiagent Systems: Intro to Game Theory. CS 486/686: Introduction to Artificial Intelligence

Advanced Automata Theory 4 Games

On Variants of Nim and Chomp

Game Theory ( nd term) Dr. S. Farshad Fatemi. Graduate School of Management and Economics Sharif University of Technology.

CSCI 699: Topics in Learning and Game Theory Fall 2017 Lecture 3: Intro to Game Theory. Instructor: Shaddin Dughmi

Nontraditional Positional Games: New methods and boards for playing Tic-Tac-Toe

CMPUT 396 Tic-Tac-Toe Game

7. Suppose that at each turn a player may select one pile and remove c chips if c =1

Transcription:

Sequential games

Sequential games A sequential game is a game where one player chooses his action before the others choose their. We say that a game has perfect information if all players know all moves that have taken place.

Sequential games

Sequential games We may play the dating game as a sequential game. In this case, one player, say Connie, makes a choice before the other. Roy Football Drink Connie Football Drink (20,5) (0,0) (0,0) (5,20)

Game tree Connie Football Drink Roy Roy Football Football Drink Drink (20,5) (0,0) (0,0) (5,20) Payoffs to: (Roy,Connie)

Backward induction Connie Football Drink (20,5) (5,20) Football Football Drink Drink (20,5) (0,0) (0,0) (5,20) Payoffs to: (Roy,Connie)

Backward induction Connie Football Drink (20,5) (5,20) Football Football Drink Drink (20,5) (0,0) (0,0) (5,20) Payoffs: (5,20)

Game tree Suppose Roy chooses first. Roy Football Drink Connie Connie Football Football Drink Drink (20,5) (0,0) (0,0) (5,20) Payoffs to: (Roy,Connie)

Game tree Roy Football Drink (20,5) (5,20) Football Football Drink Drink (20,5) (0,0) (0,0) (5,20) Payoffs: (20,5)

Game tree Connie Roy Football Drink Football Drink (20,5) (5,20) Football Football Drink Drink (20,5) (0,0) (0,0) (5,20) (20,5) (5,20) Football Football Drink Drink (20,5) (0,0) (0,0) (5,20) Payoffs: (5,20) Payoffs: (20,5) In dating game, the first player to choose has an advantage.

Game tree Modified rock-paper-scissors Row player Column player Rock Scissors Rock (0,0) (1,-1) Paper (1,-1) (-1,1)

Game tree Column Roy Rock Scissors Rock Paper (1,-1) (1,-1) Rock Paper Rock Paper (0,0) (-1,1) Rock Scissors Rock Scissors (0,0) (1,-1) (1,-1) (-1,1) Payoffs: (1,-1) (0,0) (1,-1) (1,-1) (-1,1) Payoffs: (0,0) In modified rock-paper-scissors, the second player to choose has an advantage.

Game tree Prisoner s dilemma John Peter Confess Deny Confess (-3,-3) (0,-5) Deny (-5,0) (-1,-1)

Game tree Peter John Confess Deny Confess Deny (-3,-3) (0,-5) Confess Deny Confess Deny (-3,-3) (-5,0) Confess Deny Confess Deny (-3,-3) (-5,0) (0,-5) (-1,-1) Payoffs: (-3,-3) (-3,-3) (0,-5) (-5,0) (-1,-1) Payoffs: (-3,-3) In prisoner s dilemma, it doesn t matter which player to choose first.

Combinatorial games Two-person sequential game Perfect information The outcome is either of the players wins The game ends in a finite number of moves

Combinatorial games Terminal position: A position from which no moves is possible Impartial game: The set of moves at all positions are the same for both players Normal play rule: The last player to move wins

Take-away game There is a pile of n chips on the table. Two players take turns removing 1, 2, or 3 chips from the pile. The player removes the last chip wins.

Game tree Player I Player II 3 4 2 1 2 1 0 1 0 0 1 0 0 II 0 II II 0 I I I II Winner

Game tree Player I Player II II 0 II II 3 II 2 1 II II 2 0 1 1 0 0 I I I 1 0 I I 0 Player I will win Player II will win 4 II 0 II II I Winner

Take-away game When n = 4, Player II has a winning strategy. More generally when n is a multiple of 4, Player II has a winning strategy. When n is not a multiple of 4, Player I has a winning strategy. The game tree is too complicate to be analyzed for most games.

Zermelo s theorem In any finite sequential game with perfect information, at least one of the players has a drawing strategy. In particular if the game cannot end with a draw, then exactly one of the players has a winning strategy.

de Morgan s law de Morgan s law A B c A c B c c A B A c B c

de Morgan s law For logical statements xp( x) xp( x) xp( x) xp( x)

de Morgan s law Example The negation of All apples are red. is There exists an apple which is not red.

de Morgan s law Example The negation of There exists a lemon which is green. is All lemons are not green.

de Morgan s law More generally ),,,, ( ),,,, ( 1 1 1 1 1 1 1 1 k k k k k k k k y x y x P y x y x y x y x P y x y x

de Morgan s law x i : i th move of 1 st player y j : j th move of 2 nd player x y x y x y 1 2 st 1 1 nd 1 player 1 1 1 player x x x k k has has k y y y k k winning k 1 st 2 2 nd nd winning player player player strategy wins strategy wins wins

Hex

Hex In the game Hex, the first player has a wining strategy.

Hex Need to prove three statements: 1. Hex can never end in a draw. 2. Winning strategy exists for one of the players. 3. The first player has a winning strategy.

Hex Hex can never end in a draw. Winning strategy exists for one of the players. The first player has a winning strategy. Topology Zermelo s Theorem Strategy Stealing

Strategy stealing Suppose each move does no harm to the player who makes the move. Then the second player cannot have a winning strategy. Examples: Hex, Tic-tac-toe, Gomoku (Five chess).

Strategy stealing Suppose the second player has a winning strategy. The first player could steal it by making an irrelevant first move and then follow the second player's strategy. This ensures a first player win which leads to a contradiction.

Strategy stealing Game Can end in a Draw 1 st player has winning strategy Hex No Yes Gomoku Yes Yes Tic-tac-toe Yes No

Never draw Hex can never end in a draw.

Boundary

Boundary The boundary has no boundary.

Boundary The boundary has no boundary.

Never draw connected connected Red Wins

Combinatorial games How to determine which player has a winning strategy? How to find a winning strategy?

P-position and N-position P-position The previous player has a winning strategy. N-position The next player has a winning strategy.

P-position and N-position In normal play rule, the player makes the last move wins. In this case, 1. Every terminal position is a P-position 2. A position which can move to a P- position is an N-position 3. A position which can only move to an N-position is a P-position

P-position and N-position P: previous player has winning strategy N: next player has winning strategy P N always has a way N P

Combinatorial games Q. How to determine which player has a winning strategy? A. Player with winning strategy for different initial positions P-position: Second player N-position: First player Q. How to find a winning strategy? A. Keep moving to a P-position.

Take-away game Take-away game There is a pile of n chips on the table. Two players take turns removing 1, 2, or 3 chips from the pile. The player removes the last chip wins.

Take-away game 1. Every terminal position is a P-position 0 1 2 3 4 5 6 7 8 9 10 11 P

Take-away game A position which can move to a P-position is an N-position 0 1 2 3 4 5 6 7 8 9 10 11 P N N N

Take-away game A position which can only move to an N-position is a P-position 0 1 2 3 4 5 6 7 8 9 10 11 P N N N P

Take-away game A position which can move to a P-position is an N-position 0 1 2 3 4 5 6 7 8 9 10 11 P N N N P N N N

Take-away game A position which can only move to an N-position is a P-position 0 1 2 3 4 5 6 7 8 9 10 11 P N N N P N N N P

Take-away game A position which can move to a P-position is an N-position 0 1 2 3 4 5 6 7 8 9 10 11 P N N N P N N N P N N N

Take-away game P = { 0, 4, 8, 12, 16, 20, } N = { not multiple of 4 } P N always has a way N P

Take-away game If the initial position is multiple of 4, the second player has a winning strategy. If the initial position is not a multiple of 4, the first player has a winning strategy. A winning strategy is to keep moving to a multiple of 4.

Modified take-away game Modified take-away game There is a pile of n chips on the table. Two players take turns removing 1, 3, or 4 chips from the pile. The player removes the last chip wins.

Modified take-away game 1. Every terminal position is a P-position 0 1 2 3 4 5 6 7 8 9 10 11 P

Modified take-away game A position which can move to a P-position is an N-position 0 1 2 3 4 5 6 7 8 9 10 11 P N N N

Modified take-away game A position which can only move to an N-position is a P-position 0 1 2 3 4 5 6 7 8 9 10 11 P N P N N

Modified take-away game A position which can move to a P-position is an N-position 0 1 2 3 4 5 6 7 8 9 10 11 P N P N N N N

Modified take-away game A position which can only move to an N-position is a P-position 0 1 2 3 4 5 6 7 8 9 10 11 P N P N N N N P

Modified take-away game A position which can move to a P-position is an N-position 0 1 2 3 4 5 6 7 8 9 10 11 P N P N N N N P N N N

Modified take-away game A position which can move to a P-position is an N-position 0 1 2 3 4 5 6 7 8 9 10 11 P N P N N N N P N P N N

Modified take-away game P = { 0, 2, 7, 9, 14, 16, } = {k: The remainder is 0 or 2 when k is divided by 7} N = { 1, 3, 4, 5, 6, 8, 10, 11, } = {k: The remainder is 1, 3, 4, 5, 6 when k is divided by 7}

Two piles take-away game There are 2 piles of chips On each turn, the player may either (a) remove any number of chips from one of the piles or (b) remove the same number of chips from both piles. The player who removes the last chip wins.

Two piles take-away game P-positions: { (0,0), (1,2), (3,5),?, } What is the next pair?

Two piles take-away game 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 P-position N-position

Terminal positions are P-positions 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 P-position N-position

Positions which can move to P-positions are N-positions 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 P-position N-position

Positions which can only move to N-positions are P-positions 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 P-position N-position

Positions which can move to P-positions are N-positions 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 P-position N-position

Positions which can only move to N-positions are P-positions 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 P-position N-position

Positions which can move to P-positions are N-positions 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 P-position N-position

Positions which can only move to N-positions are P-positions 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 P-position N-position

Two piles take-away game (1,2) (3,5) (4,7) (6,10)?

Two piles take-away game (1,2) (3,5) (4,7) (6,10) (8,13) 1. Every integer appears exactly once. 2. The n-th pair is different by n.

Fibonacci sequence and golden ratio 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, Golden ratio: 1 2 5 1.6180339887...

Golden ratio n 1 2 3 4 5 6 7 nφ 1.61 3.23 4.85 6.47 8.09 9.70 11.3 a n 1 3 4 6 8 9 11 b n 2 5 7 10 13 15 18

Two piles take-away game The n th pair is a, b n, n n n n where [x] is the largest integer not larger than x. In other words, [x] is the unique integer such that x 1 x x

Two piles take-away game It is easy the see that the n-th pair satisfies b n a n To prove that every positive integer appears in the sequences exactly once, observe that n 1 1 1 1 2 5 3 2 5 1 and apply the Beatty s theorem.

Suppose and are positive irrational numbers such that. Then every positive integer appears exactly once in the sequences Beatty s theorem 1 1 1, 5, 4, 3, 2,, 5, 4, 3, 2,

Nim

Nim There are three piles of chips. On each turn, the player may remove any number of chips from any one of the piles. The player who removes the last chip wins.

Nim We will use (x,y,z) to represent the position that there are x,y,z chips in the three piles respectively.

Nim It is easy to see that (x,x,0) is at P-position, in other words the previous player has a winning strategy. By symmetry, (x,0,x) and (0,x,x) are also at P-position.

Nim By try and error one may also find the following P-positions: (1,2,3), (1,4,5), (1,6,7), (1,8,9), (2,4,6), (2,5,7), (2,8,10), (3,4,7), (3,5,6), (3,8,11),

Nim Binary expression: Decimal Binary Decimal Binary 1 1 2 7 111 2 2 10 2 8 1000 2 3 11 2 9 1001 2 4 100 2 10 1010 2 5 101 2 11 1011 2 6 110 2 12 1100 2

Nim Nim-sum: Sum of binary numbers without carry digit. Examples: 1. 7 5 2 111 101 2 2 7 5 10 2 2

Nim Nim-sum: Sum of binary numbers without carry digit. Examples: 2. 2313 26 10111 1101 2 2 23 13 11010 2 26

Nim Properties: 1. (Associative) 2. (Commutative) 3. (Identity) 4. (Inverse) x x x 5. (Cancellation law) y z x y z 0 0 x x 0 y x x y y x x x z y z

Nim The position (x,y,z) is at P-position if and only if x y z 0

Nim P-positions: decimal (1,2,3) (1,6,7) (2,4,6) (2,5,7) (3,4,7) binary 001 010 011 001 110 111 010 100 110 010 101 111 011 100 111 The number of 1 s in each column is even (either 0 or 2).

Nim Examples: 1. (7,5,3) 753 1 It is at N-position. Next player may win by removing 1 chip from any pile and reach P-positions 0 111 101 11 1 2 2 2 2 7 5 3 1 (6,5,3), (7,4,3) or (7,5,2).

Nim Examples: 2. (25,21,11) 25 2111 7 It is at N-position. Next player may win by removing 3 chips from the second pile and reach P-position (25,18,11). 0 11001 10101 1011 111 2 2 2 2 25 21 11 7

Nim Examples: 2. (25,21,11) 25 2111 7 It is at N-position. Next player may win by removing 3 chips from the second pile and reach P-position (25,18,11). 0 11001 10101 1011 111 2 2 2 2 25 21 11 7 Note: 217 18

Financial tsunami Rules: The investor may decide the amount of money he uses to buy a fund in each round. The return rate in each round is 100% except when financial tsunami occurs. When the financial tsunami occurs, the return rate is -100%. Financial tsunami will occur at exactly one of the rounds.

Financial tsunami We may consider the game as a zero sum game between the Investor and the Market. Suppose that initially the investor has $1 and the game is played for n rounds.

Financial tsunami Suppose the optimal strategy for the investor is to invest $p n in the first round for some p n to be determined. Let $x n be the balance of the investor after n rounds provided that both the investor and the Market use their optimal strategies.

Financial tsunami It is obvious that that the investor should invest $0 if there is only 1 round (n = 1). Therefore p 1 = 0 and x 1 = 1.

Financial tsunami Suppose n = 2 and the investor invests $p in the first round. 1 st round 2 nd round 1- p 2(1- p) FT No FT 1 Balance of investor No FT 1+p 1+p FT

Financial tsunami FT 1- p No FT 2(1- p) No FT 1+p FT 1+p The optimal strategy for the Market is 1. FT in 1 st round if 2 1 p 1 2. FT in 2 nd round if 1 p 21 p 1 p

Financial tsunami The optimal strategy for the investor is to choose p such that 1 p 2 1 p 1 p 3 Then the balance of investor after 2 rounds is Therefore 1 1 1 21 3 3 p 1 3 4 3 2 and x2 4 3

Financial tsunami Suppose there are n rounds. 1 st round other rounds No FT 1- p FT 2 n-1 (1- p) 1 Balance of investor No FT 1+p FT in other rounds (1+p)x n-1

Financial tsunami Similar to the previous argument, p n and x n should satisfies x n 1 p 1 p x n n n 1 2 n1 Replacing n by n-1 in the first equality, we have 2 n2 1 1 n1 x n p

Substitute it into the second equality, we obtain Financial tsunami n n n n n p p p 1 2 1 1 2 1 1 2 Making p n as the subject, we have 1 1 1 1 3 1 2 1 1 n n n n n n n n p p p p p p p p

Financial tsunami n p n 1 0 2 1/3 3 1/2 4 3/5 5 2/3 6 5/7 7 3/4 8 7/9

Financial tsunami n p n 1 0 2 1/3 3 1/2 = 2/4 4 3/5 5 2/3 = 4/6 6 5/7 7 3/4 = 6/8 8 7/9

Financial tsunami By induction we have and x n p n n 1 n 1 n 2 1 n 2 n 1 1 p n

Financial tsunami n p n x n 1 0 1 2 1/3 4/3 3 1/2 2 4 3/5 16/5 5 2/3 16/3 6 5/7 64/7 7 3/4 16

Financial tsunami Nash equilibrium: It does not matter when the Financial Tsunami occurs.