Machine Learning Overview
- 30Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
30 questions
- 1In a search problem, the function that returns the initial state is called the_____.
Hint
This function provides the starting point for the search.
Answer
start state
- 2The function in a search problem that takes a state and returns a list of possible steps (each with an action, cost, and resulting state) is called_____.
Hint
This function tells you what actions are available from a given state.
Answer
successors
- 3The function in a search problem that checks whether a given state is a goal state is called_____.
Hint
This function returns a boolean indicating if the search should stop.
Answer
is_end
- 4In a search problem, the objective is to find a sequence of actions that minimizes the_____.
Hint
Think about what we want to minimize over the entire action sequence.
Answer
total cost
- 5In the travel search problem, the cost of walking from block i to i+1 is_____minute(s).
Hint
The problem states a specific time for walking one block.
Answer
1
- 6In the travel search problem, the cost of taking the tram from block i to 2i is_____minute(s).
Hint
The tram takes longer than walking.
Answer
2
- 7The state in a search problem must contain all information needed to evaluate future actions, costs, and_____.
Hint
The state should enable you to determine what actions are possible and their outcomes.
Answer
successors
- 8To incorporate the constraint of a limited number of tram tickets into the search problem, the state must include the current location and the_____.
Hint
You need to track a resource that is consumed by taking the tram.
Answer
number of tickets remaining
- 9To enforce the constraint that the tram cannot be taken twice in a row, the state must include whether the_____.
Hint
The state needs to remember information about the previous action to enforce the rule.
Answer
last action was taking the tram
- 10Including the entire history in the state is possible but leads to a very large number of states, which hurts the performance of algorithms like_____.
Hint
This algorithm scales with the number of states.
Answer
dynamic programming
- 11The function that returns the cost of the minimum-cost solution from a given state to an end state is called_____.
Hint
This is a key definition used in the recurrence for exhaustive search.
Answer
future cost
- 12In the recurrence for future cost, the future cost of a state is the minimum over all successors of (immediate cost +_____).
Hint
The total cost from the current state is the cost of the first action plus the optimal cost from the resulting state.
Answer
future cost of the successor state
- 13Exhaustive search without caching explores some states more than once, leading to_____time complexity in the worst case.
Hint
Think about the number of paths through a search graph.
Answer
exponential
- 14The memory complexity of exhaustive search (ignoring cycles) is linear in the_____.
Hint
This is due to the recursion stack depth.
Answer
length of the solution
- 15To handle cycles in exhaustive search, one trick is to add the_____to the state, turning cycles into a DAG.
Hint
This makes states unique even when revisiting the same location.
Answer
number of steps taken
- 16Dynamic programming is essentially exhaustive search plus_____.
Hint
It avoids recomputation by storing results.
Answer
caching
- 17Dynamic programming provides large speedups when there are many ways to_____a given state.
Hint
It's useful when the number of paths is much larger than the number of states.
Answer
reach
- 18Dynamic programming is not feasible when the number of states is too large to fit in_____.
Hint
The algorithm stores a cache for each state.
Answer
memory
- 19Best-of-n search repeatedly performs_____from the start state using a policy and selects the best solution.
Hint
Each rollout is a random trajectory following the policy.
Answer
rollouts
- 20The function that maps a state to an action (can be deterministic or stochastic) is called a_____.
Hint
This term is borrowed from reinforcement learning.
Answer
policy
- 21Best-of-n search is_____embarrassingly parallel because each rollout is independent.
Hint
No communication is needed between rollouts.
Answer
embarrassingly parallel
- 22In beam search, the number of partial solutions maintained at each step is called the_____.
Hint
This parameter controls how many candidates are kept.
Answer
beam width
- 23When beam width is set to infinity, beam search becomes_____.
Hint
No pruning occurs, so all paths are explored.
Answer
exhaustive search
- 24In beam search, after expanding all candidates and sorting by cost, the algorithm keeps only the_____candidates.
Hint
Pruning removes the worst candidates to keep the number fixed.
Answer
beam width best
- 25The key difference between best-of-n and beam search is that best-of-n is stochastic while beam search is_____.
Hint
Beam search uses a fixed sorting and pruning rule.
Answer
deterministic
- 26In a language model search problem, the cost of selecting a token is the_____of that token's probability.
Hint
We want to minimize cost to maximize probability.
Answer
negative log
- 27In the language model search problem, a verifier can be incorporated by giving a bonus of_____to solutions that pass verification.
Hint
A negative cost bonus reduces the total cost.
Answer
-100
- 28The state in a language model search problem consists of the prompt plus the_____generated so far.
Hint
The state must contain all tokens produced up to the current point.
Answer
prefix of the response
- 29The quote from Rich Sutton's 'Bitter Lesson' states that general methods that leverage_____are ultimately the most effective.
Hint
The essay argues for scalable methods.
Answer
computation
- 30According to the Bitter Lesson, the two methods that seem to scale arbitrarily with computation are search and_____.
Hint
These two pillars are highlighted as key.
Answer
learning

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