-


> > > > Examples > Exam #1 Practice

Problem : Compute the outcome classes for 0 through 16 for 1-row misere Nim where the legal moves are to take 1, 4, or 5 stones.

Problem : Consider a normal game played with $n$ rows of stones. On each turn, the current player can take any number of stones from any row, or may move any number of stones to the row directly above it (including to a row that has been emptied, not skipping over any row that has not been emptied, and not to a row that never existed).

Problem : Prove or disprove: for any position $G \approx *n$ and any $m < n$, there is an option $G'$ of $G$ such that $G + G' \approx *m$.

Problem : Suppose we modify Coino (the coin flipping game from notes) so that you get one do-over: at most once during the game you may discard the result of a flip and reflip any number of coins if the initial result was not to your liking. How would you modify the algorithm to find the optimal strategy and the expected winnings in this case?

Problem : Compute the minimax value of each node in the tree below. Squares represent max nodes and circles represent min nodes.

Minimax tree

Problem : Show the operation of alpha-beta pruning on the tree shown below. Show the (alpha, beta) windows passed to each node as the tree is traversed, the values returned from each node, and which branches are pruned.

Alpha-beta tree

Problem : Repeat the previous exercise for Scout.

Problem : Consider a constant-sum game with payoff matrix $$\left( \begin{array}{ccc} 0 & 2 & -1 \\ 1 & -2 & 0 \\ -2 & 0 & 2 \end{array} \right)$$.

Problem : Find a saddle point and its value for the constant-sum game with payoff matrix $$ \left( \begin{array}{cc} 3 & 2 \\ 0 & 4 \\ \end{array} \right) $$

Problem : Set up the linear program to find a saddle point for the constant-sum game with payoff matrix $$ \left( \begin{array}{ccc} 4 & 7 & 3 \\ 0 & 5 & 4 \\ 10 & 6 & 2 \\ \end{array} \right) $$


Valid HTML 4.01 Transitional