Game Theory Probabilities
Game Theory Probabilities
probabilities
Solving a game
A solved game is a game whose outcome (win, lose or draw) can be correctly predicted from any
position assuming that both players play perfectly.
Weakly solved
- provide an algorithm that secures a win for one player, or a draw for either, against any
possible moves by the opponent from the beginning of the game
Strongly solved
- provide an algorithm that can produce perfect moves from any position, even it
mistakes have already been made on one or both sides.
Example of combinatorial games and status
Tic - Tac - Toe
Connect Four (1988) - the first player can force the win
GO - weakly solved for 7x7 board (2015) - Humans usually play on 19x19 (10^145 mai
complex)
Chess - nothing yet (but strongly solved for endings #pieces <= 7)
P-position -> positions that are winning for the Previous player (the player who just
moved)
How to find them?
Usually by induction
-> Label every terminal position as a P-position
-> Label every position that can reach a labeled P-position as an N-position
-> Find those position whose only moved are to labelled N-positions; label such positions as
P-positions
-> return to the second step
Two piles?
Three piles?
Generalization?
Graph games
You are given a DAG, and a pawn in the DAG. The pawn can move along the edges in the direction of the edges.
The player who moves last loses.
Graph game
Sprague-Grundy Function
Adding games
Sprague-Grundy Theorem
Proof (only the general direction)
Grundy’s Game
Probleme + Bibliografie
https://www.infoarena.ro/problema/nim -> classic
https://cses.fi/problemset/task/1098 -> problema cu bomboane
https://cses.fi/problemset/task/1099 -> staircase nim
https://cses.fi/problemset/task/2207 -> grundy’s game
https://www.spoj.com/problems/BOMBER/ -> tot grundy’s game
https://codeforces.com/gym/102565/problem/H
https://codeforces.com/contest/1404/problem/B
https://cses.fi/book/book.pdf
https://web.mit.edu/sp.268/www/nim.pdf
Probabilities
Expected value
Algoritmi clasici:
- Quick Sort
- Primality checking
- Treap-uri
Probleme
https://codeforces.com/problemset/pro https://codeforces.com/gym/104786/problem/C
blem/839/C https://codeforces.com/gym/104328/problem/F
https://codeforces.com/gym/104328/problem/D
https://codeforces.com/problemset/pro
blem/1305/F
Bibliografie
https://codeforces.com/problemset/pro https://profs.info.uaic.ro/~adrian.zalinescu/PS.html
blem/1523/D
https://codeforces.com/blog/entry/62690
https://codeforces.com/contest/1453/p https://brilliant.org/wiki/linearity-of-expectation/
roblem/D