CS 188 Lecture 6
- 25Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What are four axes along which games can be categorized?
Deterministic vs stochastic, number of players, zero-sum vs non-zero-sum, and perfect vs imperfect information.
Or swipe the card
25 cards
What are four axes along which games can be categorized?
Deterministic vs stochastic, number of players, zero-sum vs non-zero-sum, and perfect vs imperfect information.
What is a zero-sum game?
A game where agents have opposite utilities; the sum of utilities for all agents is zero. One agent's gain is exactly the other's loss.
Give an example of a non-zero-sum game mentioned in the lecture.
A game where two agents collect different colored pellets (e.g., blue agent collects green pellets, red agent collects orange pellets) and can help each other.
What are the components of a formal game definition used in adversarial search?
States (including start state), players, actions (depending on player), transition function, terminal test, and terminal utilities.
What is the solution to a game formalized with the above components?
A policy that prescribes an action for every possible state the agent might be in.
How is the value of a state defined in a single-agent game tree?
The best achievable utility from that state. For terminal states, it's the utility; for non-terminal states, it's the maximum of the values of its children.
In adversarial search, what are the roles of the MAX and MIN players?
MAX aims to maximize the utility (e.g., Pac-Man), while MIN aims to minimize the utility (e.g., ghosts).
What is the minimax value of a node in a game tree?
At a MAX node, it is the maximum of the minimax values of its children. At a MIN node, it is the minimum of the minimax values of its children. Terminal nodes have known utilities.
What are the time and space complexities of the minimax algorithm?
Time: O(bm); Space: O(bm), where b is the branching factor and m is the maximum depth of the game tree.
Given this game tree, what is the minimax value of the root?
- The left branch gives 10 (MIN forces 10), the right branch gives 4 (MIN forces 4). MAX chooses the maximum, which is 10.
What is the principle behind alpha-beta pruning?
If a node's value is known to be worse for the player than an already guaranteed alternative, the remaining children can be pruned because they cannot affect the root's decision.
In a MIN node, under what condition can alpha-beta pruning stop exploring further children?
When the current value v (which is the minimum value seen so far) is less than or equal to alpha (the best value MAX can guarantee on the path to the root).
In a MAX node, under what condition can alpha-beta pruning stop exploring further children?
When the current value v (the maximum seen so far) is greater than or equal to beta (the best value MIN can guarantee on the path to the root).
How does child ordering affect the effectiveness of alpha-beta pruning?
Good ordering (exploring promising children first) increases pruning. With perfect ordering, time complexity drops to O(bm/2), doubling the search depth.
What is the effect of alpha-beta pruning on the final minimax value?
It computes the same value as minimax; pruning does not change the result at the root.
Why is depth-limited search necessary in large games like chess?
Even with alpha-beta pruning, the game tree is too deep to search completely. Depth-limited search stops at a certain depth d and uses an evaluation function to estimate the node's value.
What is an evaluation function?
A function that estimates the value of a non-terminal state from the perspective of the MAX player. It is used when the search depth limit is reached.
What is iterative deepening in the context of game playing?
Running depth-limited search repeatedly with increasing depth limits. If time runs out, the agent uses the result from the previous (shallower) search.
What caused Pac-Man to thrash back and forth with depth-limited minimax at depth 2?
The evaluation function (game score after 2 moves) gave equal values to both directions (8), causing random tie-breaking. The agent reversed direction at each step because the symmetric situation gave the same score.
How did the ghosts' behavior change when they could search to the end of the game?
Initially, they chased Pac-Man directly. When their search depth allowed them to see the endgame, they adopted flanking strategies to cut off Pac-Man's escape.
In the Pac-Man scenario with two ghosts (red always chases, blue randomly goes up or down), why might taking a chance be better than the minimax action?
Minimax assumes optimal opponents, leading to diving into the red ghost to minimize score loss. If the ghost is not optimal, there is a chance to survive and eat all dots, yielding a higher expected utility.
What solution method was used to achieve state-of-the-art performance in Go?
Monte Carlo tree search combined with learned evaluation functions (e.g., AlphaGo).
What does it mean for a game to be 'solved'?
The game's outcome (win, lose, or draw) is known with certainty if both players play optimally. For example, checkers is solved as a draw.
What is the difference between 'beating the best human' and 'solving' a game?
Beating the best human means the AI plays at a superhuman level, but the game may not be solved. Solving means the optimal outcome is known for sure.
How can an evaluation function be used to improve alpha-beta pruning beyond just depth limits?
The evaluation function can serve as a bound (e.g., if it gives an upper bound on the node's value) to prune without fully evaluating children. Also, it can guide the order of child exploration (best-first).

Ask anything
We've read this whole study set, so questions about it get the best answers.