games computer scientists play
play

Games Computer Scientists Play Martin Zimmermann July 19th, 2018 - PowerPoint PPT Presentation

Introductory Lecture Games Computer Scientists Play Martin Zimmermann July 19th, 2018 1/23 The Pumping Lemma L regular implies n N w L n x , y , z xyz = w | xy | n | y | > 0


  1. The Emptiness Game One player picks transitions, the other a (implicitly) the structure of the input tree. c a a e 8/23

  2. The Emptiness Game One player picks transitions, the other a (implicitly) the structure of the input tree. c a a e 8/23

  3. The Emptiness Game One player picks transitions, the other a (implicitly) the structure of the input tree. c a a a e 8/23

  4. The Emptiness Game One player picks transitions, the other a (implicitly) the structure of the input tree. c a a a e 8/23

  5. The Emptiness Game One player picks transitions, the other a (implicitly) the structure of the input tree. c a c a a e 8/23

  6. The Emptiness Game One player picks transitions, the other a (implicitly) the structure of the input tree. c a c a a e 8/23

  7. The Emptiness Game One player picks transitions, the other a (implicitly) the structure of the input tree. c a c a a a e 8/23

  8. The Emptiness Game One player picks transitions, the other a (implicitly) the structure of the input tree. c a a c a e a a e 8/23

  9. The Emptiness Game One player picks transitions, the other (implicitly) the structure of the input tree. Theorem An automaton has a non-empty language if and only if the player constructing a run has a winning strategy for the induced game. 8/23

  10. The Emptiness Game One player picks transitions, the other (implicitly) the structure of the input tree. Theorem An automaton has a non-empty language if and only if the player constructing a run has a winning strategy for the induced game. An analogous result holds for automata on infinite trees. However, the resulting game is an infinite-duration game. 8/23

  11. Determinacy All games considered thus far, at most one player can have a winning strategy. 9/23

  12. Determinacy All games considered thus far, at most one player can have a winning strategy. A game is determined, if one of the players has a winning strategy for it. 9/23

  13. Determinacy All games considered thus far, at most one player can have a winning strategy. A game is determined, if one of the players has a winning strategy for it. Theorem (Zermelo 1913) Every finite-duration two-player zero-sum game of perfect information is determined. 9/23

  14. Determinacy All games considered thus far, at most one player can have a winning strategy. A game is determined, if one of the players has a winning strategy for it. Theorem (Zermelo 1913) Every finite-duration two-player zero-sum game of perfect information is determined. The proof works by bottom-up induction over the finite tree of positions. 9/23

  15. Determinacy All games considered thus far, at most one player can have a winning strategy. A game is determined, if one of the players has a winning strategy for it. Theorem (Zermelo 1913) Every finite-duration two-player zero-sum game of perfect information is determined. Question Is every infinite-duration two-player zero-sum game of perfect information determined? 9/23

  16. Chomp There is a (rectangular) chocolate bar with m × n pieces. A move consists of taking a piece and all others that are to the right and above. Two players, Player 0 and Player 1, move in alternation, starting with Player 0. The player who takes the bottom-left piece loses. 10/23

  17. Let’s Play 11/23

  18. Let’s Play 11/23

  19. Let’s Play 11/23

  20. Let’s Play 11/23

  21. Let’s Play 11/23

  22. Let’s Play 11/23

  23. Let’s Play 11/23

  24. Let’s Play 11/23

  25. Let’s Play 11/23

  26. Strategy Stealing Claim Player 0 has a winning strategy for every bar (unless m = n = 1). 12/23

  27. Strategy Stealing Claim Player 0 has a winning strategy for every bar (unless m = n = 1). Assume Player 1 has a winning strategy. Look how this strategy reacts to Player 0 only taking the top-right piece in the first move. Let Player 0 use this strategy from the beginning. This is winning for Player 0, which is a contradiction. As Chomp is determined, this means Player 0 must have a winning strategy. 12/23

  28. Strategy Stealing Claim Player 0 has a winning strategy for every bar (unless m = n = 1). Assume Player 1 has a winning strategy. Look how this strategy reacts to Player 0 only taking the top-right piece in the first move. Let Player 0 use this strategy from the beginning. This is winning for Player 0, which is a contradiction. As Chomp is determined, this means Player 0 must have a winning strategy. Note The proof is non-constructive.. ..winning strategy only known for special cases n × n , n × 2, 2 × n , n × 1, and 1 × n (try to find them). 12/23

  29. Hamming Distance In the following: B = { 0 , 1 } Definition For x = x 0 x 1 x 2 · · · and y = y 0 y 1 y 2 · · · in B ω , the Hamming distance between x and y is defined as hd ( x , y ) = |{ n ∈ N | x n ∕ = y n }| ∈ N ∪ { ∞ } . Example hd (0101101000 · · · , 1010100000 · · · ) = 5 hd (1010101010 · · · , 0101010101 · · · ) = ∞ hd (1010101010 · · · , 1111111111 · · · ) = ∞ . 13/23

  30. Infinite XOR Functions Definition A function f : B ω → B is an infinite XOR function , if hd ( x , y ) = 1 implies f ( x ) ∕ = f ( y ) for all x , y ∈ B ω . 14/23

  31. Infinite XOR Functions Definition A function f : B ω → B is an infinite XOR function , if hd ( x , y ) = 1 implies f ( x ) ∕ = f ( y ) for all x , y ∈ B ω . Example 14/23

  32. Infinite XOR Functions Definition A function f : B ω → B is an infinite XOR function , if hd ( x , y ) = 1 implies f ( x ) ∕ = f ( y ) for all x , y ∈ B ω . Example I have none.. we will come back to this later. 14/23

  33. Infinite XOR Functions Definition A function f : B ω → B is an infinite XOR function , if hd ( x , y ) = 1 implies f ( x ) ∕ = f ( y ) for all x , y ∈ B ω . Example I have none.. we will come back to this later. Theorem There exists an infinite XOR function. 14/23

  34. Infinite XOR Functions Definition A function f : B ω → B is an infinite XOR function , if hd ( x , y ) = 1 implies f ( x ) ∕ = f ( y ) for all x , y ∈ B ω . Example I have none.. we will come back to this later. Theorem There exists an infinite XOR function. The proof requires the axion of choice. 14/23

  35. The Game G f Fix some infinite XOR function f . We define a game G f between Player 0 and Player 1 who pick sequences of bits in alternation. 15/23

  36. The Game G f Fix some infinite XOR function f . We define a game G f between Player 0 and Player 1 who pick sequences of bits in alternation. Example 15/23

  37. The Game G f Fix some infinite XOR function f . We define a game G f between Player 0 and Player 1 who pick sequences of bits in alternation. Example 1100 15/23

  38. The Game G f Fix some infinite XOR function f . We define a game G f between Player 0 and Player 1 who pick sequences of bits in alternation. Example 1100 0 15/23

  39. The Game G f Fix some infinite XOR function f . We define a game G f between Player 0 and Player 1 who pick sequences of bits in alternation. Example 1100 0 000000110000 15/23

  40. The Game G f Fix some infinite XOR function f . We define a game G f between Player 0 and Player 1 who pick sequences of bits in alternation. Example 1100 0 000000110000 1100101 15/23

  41. The Game G f Fix some infinite XOR function f . We define a game G f between Player 0 and Player 1 who pick sequences of bits in alternation. Example 1100 0 000000110000 1100101 1 15/23

  42. The Game G f Fix some infinite XOR function f . We define a game G f between Player 0 and Player 1 who pick sequences of bits in alternation. Example 1100 0 000000110000 1100101 1 100000 15/23

  43. The Game G f Fix some infinite XOR function f . We define a game G f between Player 0 and Player 1 who pick sequences of bits in alternation. Example 1100 0 000000110000 1100101 1 100000 · · · 15/23

  44. The Game G f Fix some infinite XOR function f . We define a game G f between Player 0 and Player 1 who pick sequences of bits in alternation. Example winner: Player f ( 1100 0 000000110000 1100101 1 100000 · · · ) 15/23

  45. The Game G f Fix some infinite XOR function f . We define a game G f between Player 0 and Player 1 who pick sequences of bits in alternation. Example winner: Player f ( 1100 0 000000110000 1100101 1 100000 · · · ) Formally, G f is played in rounds n = 0 , 1 , 2 , . . . . In round n , first Player 0 picks w 2 n ∈ B + , then Player 1 picks w 2 n +1 ∈ B + . Play w 0 , w 1 , w 2 , . . . is won by Player f ( w 0 w 1 w 2 · · · ). 15/23

  46. There are Undetermined Games Theorem Let f be an infinite XOR function. No player has a winning strategy for G f . 16/23

  47. Proof Idea Strategy stealing: For every strategy τ of Player 1, we construct two counter strategies σ and σ ′ that mimic τ . The only di ff erence between σ and σ ′ is that one starts by playing a 0, the other by playing a 1. The remainder of the plays resulting from playing σ and σ ′ against τ are equal. Hence, their Hamming distance is 1 and one of the plays is won by Player 0. Thus, τ is not a winning strategy. 17/23

  48. Proof Idea Strategy stealing: For every strategy τ of Player 1, we construct two counter strategies σ and σ ′ that mimic τ . The only di ff erence between σ and σ ′ is that one starts by playing a 0, the other by playing a 1. The remainder of the plays resulting from playing σ and σ ′ against τ are equal. Hence, their Hamming distance is 1 and one of the plays is won by Player 0. Thus, τ is not a winning strategy. The argument showing that Player 0 has no winning strategy is similar. 17/23

  49. Proof Let τ be a strategy for Player 1 in G f . We show that τ is not winning by constructing counter strategies σ and σ ′ as above. σ τ σ ′ τ 18/23

  50. Proof Let τ be a strategy for Player 1 in G f . We show that τ is not winning by constructing counter strategies σ and σ ′ as above. σ 0 τ σ ′ τ 18/23

  51. Proof Let τ be a strategy for Player 1 in G f . We show that τ is not winning by constructing counter strategies σ and σ ′ as above. σ 0 w 1 τ σ ′ τ 18/23

  52. Proof Let τ be a strategy for Player 1 in G f . We show that τ is not winning by constructing counter strategies σ and σ ′ as above. σ 0 w 1 τ σ ′ 1 w 1 τ 18/23

  53. Proof Let τ be a strategy for Player 1 in G f . We show that τ is not winning by constructing counter strategies σ and σ ′ as above. σ 0 w 1 τ σ ′ 1 w 1 w 2 τ 18/23

  54. Proof Let τ be a strategy for Player 1 in G f . We show that τ is not winning by constructing counter strategies σ and σ ′ as above. w 2 σ 0 w 1 τ σ ′ 1 w 1 w 2 τ 18/23

  55. Proof Let τ be a strategy for Player 1 in G f . We show that τ is not winning by constructing counter strategies σ and σ ′ as above. w 2 σ 0 w 1 w 3 τ σ ′ 1 w 1 w 2 τ 18/23

  56. Proof Let τ be a strategy for Player 1 in G f . We show that τ is not winning by constructing counter strategies σ and σ ′ as above. w 2 σ 0 w 1 w 3 τ w 3 σ ′ 1 w 1 w 2 τ 18/23

  57. Proof Let τ be a strategy for Player 1 in G f . We show that τ is not winning by constructing counter strategies σ and σ ′ as above. w 2 σ 0 w 1 w 3 τ w 3 σ ′ 1 w 1 w 2 w 4 τ 18/23

  58. Proof Let τ be a strategy for Player 1 in G f . We show that τ is not winning by constructing counter strategies σ and σ ′ as above. w 2 w 4 σ 0 w 1 w 3 τ w 3 σ ′ 1 w 1 w 2 w 4 τ 18/23

  59. Proof Let τ be a strategy for Player 1 in G f . We show that τ is not winning by constructing counter strategies σ and σ ′ as above. w 2 w 4 σ 0 w 1 w 3 w 5 τ w 3 σ ′ 1 w 1 w 2 w 4 τ 18/23

  60. Proof Let τ be a strategy for Player 1 in G f . We show that τ is not winning by constructing counter strategies σ and σ ′ as above. w 2 w 4 σ 0 w 1 w 3 w 5 τ w 3 w 5 σ ′ 1 w 1 w 2 w 4 τ 18/23

  61. Proof Let τ be a strategy for Player 1 in G f . We show that τ is not winning by constructing counter strategies σ and σ ′ as above. w 2 w 4 σ 0 w 1 w 3 w 5 τ w 3 w 5 σ ′ 1 w 1 w 2 w 4 w 6 τ 18/23

  62. Proof Let τ be a strategy for Player 1 in G f . We show that τ is not winning by constructing counter strategies σ and σ ′ as above. w 2 w 4 w 6 σ 0 w 1 w 3 w 5 τ w 3 w 5 σ ′ 1 w 1 w 2 w 4 w 6 τ 18/23

Recommend


More recommend