CS 188 Lecture 6
- 23Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
Which of the following is an axis along which games can be categorized?
Which of the following is an axis along which games can be categorized?
23 questions
- 1
Which of the following is an axis along which games can be categorized?
- A
Online vs. offline
- B
Explicit vs. implicit
- C
Deterministic vs. stochastic
- D
Continuous vs. discrete
Correct answer
CDeterministic vs. stochastic
Explanation
Games can be categorized as deterministic (e.g., chess) or stochastic (e.g., backgammon). Other axes include number of players, zero-sum vs. non-zero-sum, and perfect vs. imperfect information.
- A
- 2
In a zero-sum game, utilities for the agents are:
- A
Opposite (one agent's gain is another's loss)
- B
Always positive for both
- C
Independent of each other
- D
Determined by chance
Correct answer
AOpposite (one agent's gain is another's loss)
Explanation
In zero-sum games, agents have opposite utilities; the sum of their utilities is zero. This allows representing the game with a single number for one agent.
- A
- 3
Which of the following is NOT a component of the formal definition of a game in adversarial search?
- A
A transition function
- B
A reward function for each step
- C
A set of states and a start state
- D
Terminal utilities
Correct answer
BA reward function for each step
Explanation
The formalization includes states, players, actions, transition function, terminal test, and terminal utilities. A per-step reward function is not part of the basic game definition; utilities are only at terminal states.
- A
- 4
In a perfect information game, players:
- A
Do not know the actions of other players
- B
Have hidden information about their own cards
- C
Rely on probabilistic outcomes
- D
Know the entire state of the game at all times
Correct answer
DKnow the entire state of the game at all times
Explanation
Perfect information means each player knows everything about the current state of the game, as in chess or checkers. Imperfect information games like poker involve hidden cards.
- A
- 5
What is the solution to a game formalized in adversarial search?
- A
A sequence of actions from start to goal
- B
A policy that maps states to actions
- C
A set of all possible strategies
- D
A fixed path regardless of opponent moves
Correct answer
BA policy that maps states to actions
Explanation
Because opponents may have multiple possible moves, the solution is a policy (strategy) that tells the agent what action to take in every state, unlike a fixed plan.
- A
- 6
In a single-agent game tree, the value of a non-terminal state is:
- A
The sum of its children's values
- B
The minimum of its children's values
- C
The average of its children's values
- D
The maximum of its children's values
Correct answer
DThe maximum of its children's values
Explanation
Since the agent controls its own actions, it will choose the action leading to the highest value, so the value is the maximum of its children's values.
- A
- 7
In a two-player zero-sum game with alternating moves, the minimax value of a state is:
- A
The utility of the first move only
- B
The utility when both players play optimally
- C
The utility when the opponent plays randomly
- D
The maximum possible utility regardless of opponent
Correct answer
BThe utility when both players play optimally
Explanation
Minimax assumes both players play optimally: one maximizes, the other minimizes. The result is the utility that the maximizing player can guarantee.
- A
- 8
In the minimax algorithm, the initial value of a max node before examining any children is:
- A
−∞
- B
1
- C
0
- D
∞
Correct answer
A−∞
Explanation
Max initializes to −∞ so that any finite value from a child will be greater and become the new estimate.
- A
- 9
What is the time complexity of the minimax algorithm for a game tree with branching factor b and depth m?
- A
O(mb)
- B
O(bm)
- C
O(b+m)
- D
O(bm)
Correct answer
DO(bm)
Explanation
Minimax explores the entire tree, so time complexity is O(bm), exponential in depth.
- A
- 10
What is the space complexity of the minimax algorithm when implemented as depth-first search?
- A
O(b)
- B
O(bm)
- C
O(m)
- D
O(bm)
Correct answer
DO(bm)
Explanation
Depth-first search requires storing the path and the children of each node, leading to O(bm) space.
- A
- 11
The game of Tic-Tac-Toe is considered 'solved' because:
- A
The game tree has fewer than 100 nodes
- B
Computers always win against humans
- C
There is a known algorithm that wins every time
- D
The minimax value of the start state is known to be 0 (draw)
Correct answer
DThe minimax value of the start state is known to be 0 (draw)
Explanation
A game is solved if the outcome (win, lose, or draw) is known under optimal play. For Tic-Tac-Toe, minimax shows that optimal play leads to a draw.
- A
- 12
In alpha-beta pruning, what does the alpha value represent?
- A
The average value of all explored nodes
- B
The best value that the minimizer can guarantee along the current path
- C
The best value that the maximizer can guarantee along the current path
- D
The worst value that the maximizer can achieve
Correct answer
CThe best value that the maximizer can guarantee along the current path
Explanation
Alpha is the maximizer's best option (maximum value) found so far on the path to the root. It is used to prune branches that cannot improve the maximizer's outcome.
- A
- 13
In alpha-beta pruning, when computing the value of a min node, pruning occurs if the current value estimate is:
- A
Greater than or equal to beta
- B
Greater than or equal to alpha
- C
Less than or equal to beta
- D
Less than or equal to alpha
Correct answer
DLess than or equal to alpha
Explanation
For a min node, if its value becomes <= alpha, the maximizer already has a better option elsewhere, so the remaining children can be pruned.
- A
- 14
What is the effect of alpha-beta pruning on the minimax value at the root?
- A
It always returns a higher value than minimax
- B
It has no effect; the value is identical to minimax
- C
It returns a value between the true max and min
- D
It may change the value if pruning is too aggressive
Correct answer
BIt has no effect; the value is identical to minimax
Explanation
Alpha-beta pruning is guaranteed to compute the same minimax value at the root as the full minimax algorithm, as it only prunes branches that cannot affect the decision.
- A
- 15
Why does good child ordering improve the effectiveness of alpha-beta pruning?
- A
It reduces the branching factor
- B
It reduces the depth of the tree
- C
It increases the likelihood of finding a good move early, causing more pruning
- D
It makes the evaluation function more accurate
Correct answer
CIt increases the likelihood of finding a good move early, causing more pruning
Explanation
If the algorithm explores promising moves first, it quickly establishes good alpha/beta bounds, allowing more pruning of later branches.
- A
- 16
With perfect ordering, alpha-beta pruning reduces the time complexity from O(bm) to:
- A
O(mb)
- B
O(bm/2)
- C
O(blogm)
- D
O(bm/m)
Correct answer
BO(bm/2)
Explanation
Perfect ordering allows alpha-beta to prune about half the branches, reducing the effective branching factor to roughly b, leading to O(bm/2) time.
- A
- 17
In alpha-beta pruning, intermediate node values (other than the root) may be:
- A
Incorrect (either too high or too low) due to pruning
- B
Always exact
- C
Always the minimum of children
- D
Always the maximum of children
Correct answer
AIncorrect (either too high or too low) due to pruning
Explanation
Because pruning skips parts of the tree, the values propagated up from pruned nodes are only bounds, not exact values.
- A
- 18
What is the primary reason for using depth-limited search in adversarial games?
- A
To reduce memory usage by limiting tree depth
- B
To guarantee optimal play
- C
Because the game tree is too deep to search exhaustively
- D
To improve the accuracy of evaluation functions
Correct answer
CBecause the game tree is too deep to search exhaustively
Explanation
Game trees are often too deep (e.g., chess with 35100 states) to search to terminal states, so depth-limited search stops early and uses an evaluation function.
- A
- 19
An evaluation function in adversarial search is used to:
- A
Estimate the utility of a non-terminal state
- B
Prune branches during search
- C
Determine the winner of the game
- D
Generate all possible actions
Correct answer
AEstimate the utility of a non-terminal state
Explanation
Evaluation functions approximate the true utility of a state, allowing early termination in depth-limited search.
- A
- 20
In the game of chess, a common evaluation function is:
- A
A weighted sum of material values (e.g., queen = 9, rook = 5)
- B
The number of pieces on the board
- C
The depth of the search tree
- D
The total number of possible moves
Correct answer
AA weighted sum of material values (e.g., queen = 9, rook = 5)
Explanation
Chess evaluation often uses material counting with piece values plus positional factors, as mentioned in the lecture.
- A
- 21
In depth-limited minimax, if the evaluation function is inaccurate, the agent may:
- A
Exhibit strange behavior like thrashing back and forth
- B
Always win against a random opponent
- C
Never make mistakes
- D
Still play optimally due to search depth
Correct answer
AExhibit strange behavior like thrashing back and forth
Explanation
The lecture demonstrated that with a poor evaluation function and shallow depth, Pac-Man thrashed between two equally good moves. Inaccurate evaluation can lead to suboptimal behavior.
- A
- 22
How can an evaluation function be used to improve alpha-beta pruning beyond just ordering children?
- A
By replacing the utility of terminal states
- B
By using the evaluation as a bound to prune even before exploring a node's children
- C
By increasing the branching factor
- D
By reducing the depth of the search
Correct answer
BBy using the evaluation as a bound to prune even before exploring a node's children
Explanation
If the evaluation function provides a guaranteed bound (e.g., an upper bound for a max node), it can be used to decide whether to prune without expanding children, as mentioned in the lecture.
- A
- 23
In the Pac-Man mini contest, what additional challenge is introduced compared to the regular project?
- A
Multiple agents must work together under time constraints
- B
The maze is smaller but more complex
- C
Ghosts are controlled by human players
- D
Pac-Man must eat all ghosts before food
Correct answer
AMultiple agents must work together under time constraints
Explanation
The mini contest involves controlling multiple agents on large boards with a time penalty, making it more challenging than single-agent Pac-Man.
- A

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