AI Course Announcements
- 71Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
71 questions
- 1A reflex agent chooses an action from its current precept and possibly some memory, without considering the_____of its actions.
Hint
Think about what reflex agents do not reason through before acting.
Answer
consequences
Explanation
Reflex agents use their current precept and possibly memory to choose an action, but they do not consider the consequences of their actions.
- 2An agent that optimizes expected utility is considered_____.
Hint
This term describes behavior that optimizes the expected outcome.
Answer
rational
Explanation
A rational agent is defined as an agent that optimizes expected utility.
- 3Whether an agent is rational depends on its behavior, not on the particular_____it uses to reach its conclusions.
Hint
Rationality is separate from the process used to choose an action.
Answer
method
Explanation
The definition of rationality concerns optimal behavior; how the agent reaches its conclusions is decoupled from whether it is rational.
- 4A reflex agent can be rational when reacting immediately is more effective than reasoning through consequences, as when pulling a hand away from_____.
Hint
The example involves avoiding an immediate physical injury.
Answer
fire
Explanation
Quickly pulling a hand away from fire can be the optimal action; deliberating about possible consequences could make the response too late.
- 5A planning agent asks itself the question_____to consider the consequences of possible action sequences.
Hint
The agent hypothesizes about the results of actions before taking them.
Answer
what if
Explanation
Planning agents ask “what if?” and reason about the results of hypothetical sequences of actions.
- 6To reason about the possible consequences of actions, a planning agent needs a_____of how the world works.
Hint
This representation lets the agent predict what actions will do.
Answer
model
Explanation
Without a model of how the world works, an agent cannot reason through the possible consequences of its actions.
- 7A planning agent evaluates hypothetical action sequences by checking whether they achieve a_____.
Hint
It is the desired condition against which possible plans are evaluated.
Answer
goal
Explanation
Planning requires a goal so the agent can evaluate whether a sequence of actions achieves what is desired.
- 8A planning goal can be a single desired outcome or a_____that can be satisfied in many ways.
Hint
The goal may describe a test that different outcomes can pass.
Answer
condition
Explanation
A goal may be one specific thing to achieve or a condition that can be met in multiple ways.
- 9A search algorithm is_____if it is guaranteed to find a solution whenever one exists.
Hint
This property concerns whether a solution will be found when possible.
Answer
complete
Explanation
Completeness means that an algorithm finds a solution if one exists.
- 10A search algorithm is_____if it is guaranteed to find a minimum-cost solution when one exists.
Hint
This property concerns the quality of the solution, not merely finding one.
Answer
optimal
Explanation
An optimal algorithm achieves the goal with minimum cost.
- 11The set of possible configurations represented in a search problem is its_____.
Hint
It contains the possible states the problem can occupy.
Answer
state space
Explanation
A state space is the set of possible states represented by a search problem.
- 12The function that specifies available actions from a state and their resulting states is the_____.
Hint
It encodes how the world changes after an action.
Answer
successor function
Explanation
The successor function gives the available actions for a state and the consequence states of those actions.
- 13The state where a search problem begins is called the_____.
Hint
It identifies where the agent is before carrying out a plan.
Answer
start state
Explanation
A search problem specifies a start state from which the search begins.
- 14The condition that determines whether a state satisfies the desired outcome is the_____.
Hint
The search uses this to check whether the objective has been met.
Answer
goal test
Explanation
The goal test determines whether a state meets the problem's goal condition.
- 15A sequence of actions that transforms the start state into a state satisfying the goal condition is a_____.
Hint
It is the action sequence that solves the search problem.
Answer
plan
Explanation
A solution is a sequence of actions, called a plan, that takes the start state to a state that passes the goal test.
- 16In the Romania route example, choosing cities as states makes neighboring cities the possible_____of a city.
Hint
These are the states reachable in one step from the current city.
Answer
successors
Explanation
When cities are the states, a city's neighboring cities are its possible successors.
- 17In the Romania route example, the cost of a transition can be modeled as the_____along the road between two cities.
Hint
This measure can be associated with an edge in the map graph.
Answer
distance
Explanation
One reasonable transition-cost choice is the distance along the road connecting the cities.
- 18If a route-planning problem should account for road conditions, its transition cost could be increased to reflect the number of_____.
Hint
This road feature can make a route less desirable even if it is short.
Answer
potholes
Explanation
The lecture notes that a route cost could account for factors such as the number of potholes, not just distance.
- 19When a problem's state representation changes, its successor function may also change, so the two must be chosen in a_____way.
Hint
The representation and transition rules must fit together.
Answer
compatible
Explanation
A different state space can require a different successor function; the two choices need to be compatible.
- 20In a Pac-Man pathing problem, the state can be just Pac-Man's_____because the locations of the dots do not affect the pathing objective.
Hint
The pathing task tracks where the agent is as it moves toward a destination.
Answer
location
Explanation
For pathing, Pac-Man's location is sufficient to track progress; other changing details can be omitted if they do not matter to the objective.
- 21For Pac-Man pathing, the successor function must account for walls because moving into a wall leaves Pac-Man in the same_____.
Hint
Consider what happens to the agent when a move is blocked.
Answer
location
Explanation
The pathing successor function reflects the walls: if Pac-Man runs into one, Pac-Man does not move and stays in the same location.
- 22To represent a problem in which Pac-Man must eat all dots, the state must track both Pac-Man's location and which dots remain_____.
Hint
The representation needs to distinguish dots that have been eaten from those that have not.
Answer
present
Explanation
Eating all dots requires keeping track of Pac-Man's location and the remaining food configuration.
- 23A fixed Pac-Man map can represent each food location with a Boolean flag indicating whether food is still there or_____.
Hint
The flag has two possible values: the dot remains or it has been eaten.
Answer
absent
Explanation
For a fixed map, a Boolean flag for each possible food location can indicate whether food is present or absent.
- 24When the goal is to eat every dot, the goal test checks that all food flags are_____.
Hint
The goal is achieved when no food remains.
Answer
false
Explanation
The food-related part of the goal test is satisfied when every dot's Boolean flag has the value false.
- 25A state representation should include enough information to evaluate the goal test and to encode the_____function.
Hint
The representation must support predicting what happens after actions.
Answer
successor
Explanation
A good state representation must support checking the goal and modeling future transitions through the successor function.
- 26In the task of keeping ghosts scared while eating all dots, the state needs a ghost_____to determine when the scared period ends.
Hint
This variable tracks how long the power effect remains active.
Answer
timer
Explanation
A timer is needed to know when the ghosts stop being scared and the game-over condition can occur.
- 27In that same task, tracking the remaining power-pellet locations is needed to determine when Pac-Man can_____the ghost timer.
Hint
Eating a power pellet starts or renews the scared period.
Answer
reset
Explanation
The remaining power-pellet locations and Pac-Man's position let the successor function determine when the timer is reset.
- 28Ghost locations need to be included in the state if the model says that a scared ghost that Pac-Man runs into will respawn_____.
Hint
The lecture discusses whether ghosts return in their normal or frightened condition.
Answer
unscared
Explanation
If a ghost respawns unscared, its location must be tracked so the successor function can model that event.
- 29The number of world states is estimated by multiplying the number of possibilities for each variable that can_____.
Hint
Count the possibilities for every changing component of the world.
Answer
vary
Explanation
To estimate the number of states, count each variable's possibilities and multiply those counts together.
- 30If each of 30 food locations can independently contain food or not, the number of food configurations is 230 because each location has_____possibilities.
Hint
Each location is represented by a Boolean choice.
Answer
two
Explanation
Each of the 30 locations has two possibilities, presence or absence, giving 230 configurations.
- 31A search-problem state can be smaller than a world state when some world details do not affect the particular_____being solved.
Hint
State representations only need details relevant to the current objective.
Answer
problem
Explanation
For example, ghosts and Pac-Man's facing direction can be omitted from a dot-eating state if they do not affect that search problem.
- 32Counting states by multiplying variable possibilities can slightly overestimate the true state-space size when some combinations are_____.
Hint
Some combinations of variable values may never occur in the world.
Answer
impossible
Explanation
The count may include combinations such as Pac-Man occupying a location while food remains there, even if that configuration cannot occur.
- 33In a state space graph, every state is represented_____.
Hint
This is different from what can happen to states in a search tree.
Answer
only once
Explanation
Each state occurs only once in the state space graph, even though a search tree may contain multiple occurrences of it.
- 34In a state space graph, the arcs represent the_____function.
Hint
The arcs encode which state transitions are possible.
Answer
successor
Explanation
The arcs of the state space graph represent the transitions defined by the successor function.
- 35A search tree is built from the start state by repeatedly applying the_____function to generate possible next states.
Hint
This is the operation that expands a node into its possible next steps.
Answer
successor
Explanation
A search tree is generated incrementally by applying the successor function to states reached so far.
- 36A node in a search tree represents a sequence of_____that have happened, rather than merely a unique state.
Hint
The path from the root records the history leading to that node.
Answer
states
Explanation
A search-tree node corresponds to a sequence of states along a possible plan.
- 37The search tree can be larger than the state space graph because multiple paths can reach the same_____.
Hint
A repeated configuration can appear at different nodes when reached by different plans.
Answer
state
Explanation
Different action sequences may lead to the same state, producing multiple occurrences of that state in the search tree.
- 38A small state space graph can have an infinite search tree when paths can repeatedly cycle among states without_____.
Hint
Repeated transitions can create paths of unlimited length.
Answer
ending
Explanation
Cycles in the state space can produce infinitely many action sequences and therefore an infinite search tree.
- 39In tree search, the set of leaf nodes waiting to be expanded is called the_____.
Hint
Search strategies choose the next node from this collection.
Answer
fringe
Explanation
The fringe is the set of leaf nodes that are candidates for expansion.
- 40When tree search selects a fringe node, it first checks whether that node's plan achieves the_____before expanding it.
Hint
A successful plan should be returned without generating its successors.
Answer
goal
Explanation
Tree search checks whether the selected node reaches a goal state before calling the successor function.
- 41If no leaves remain as candidates for expansion, tree search has reached only dead ends and reports that it found no_____.
Hint
The algorithm cannot return a plan if there is nothing left to explore.
Answer
solution
Explanation
When the fringe is empty, there are no remaining candidates for expansion; if no goal was found, the search fails to find a solution.
- 42A tree-search strategy determines which node in the_____to expand next.
Hint
The strategy controls the order in which available leaves are explored.
Answer
fringe
Explanation
Tree search strategies differ in how they choose the next candidate from the fringe.
- 43In depth-first search, the next node selected is the_____one on the fringe.
Hint
This strategy follows a path as far down the tree as possible.
Answer
deepest
Explanation
Depth-first search prioritizes the deepest available node.
- 44In breadth-first search, the next node selected is the_____one on the fringe.
Hint
This strategy explores the tree layer by layer.
Answer
shallowest
Explanation
Breadth-first search expands the shallowest available node first.
- 45In the search-tree cartoon, the branching factor B is the number of_____available from a node.
Hint
It measures how many next choices each node has.
Answer
successors
Explanation
The branching factor quantifies the number of successors generated from a node.
- 46If the maximum search-tree depth is M, the last layer contains BM nodes, so the full tree's size is on the order of_____.
Hint
The exponentially large last layer dominates the total.
Answer
BM
Explanation
The number of nodes in the last layer is BM, which dominates the total number of nodes in the tree.
- 47In the worst case, depth-first search may explore the whole tree, giving time complexity on the order of_____.
Hint
Use the branching factor and maximum depth to estimate the size of the tree.
Answer
BM
Explanation
If the solution is found only at the end of the traversal, depth-first search may do work proportional to the entire tree, or BM.
- 48Depth-first search uses space on the order of_____because it stores roughly B successors for each of M levels along its current path.
Hint
Its fringe grows with path depth rather than with the width of the whole tree.
Answer
BM
Explanation
Depth-first search requires roughly B fringe nodes per level over M levels, giving space complexity on the order of BM.
- 49Depth-first search is complete when the search tree is_____.
Hint
A finite tree can eventually be exhaustively explored.
Answer
finite
Explanation
If the tree is finite, depth-first search eventually explores it and finds a solution if one exists.
- 50Depth-first search is not generally optimal because it may return a goal found along a_____path.
Hint
The traversal order does not prioritize low-cost or short solutions.
Answer
long
Explanation
Depth-first search follows its traversal order and may find a deeper or more costly solution before a better one.
- 51If all actions have equal cost, breadth-first search finds a solution with the fewest_____.
Hint
In this special case, path length and path cost rank solutions in the same way.
Answer
actions
Explanation
Breadth-first search finds the shallowest goal, which is a minimum-cost solution when every action has the same cost.
- 52When action costs differ, breadth-first search is not guaranteed to find the_____path.
Hint
It ranks paths by depth rather than by accumulated cost.
Answer
cheapest
Explanation
Breadth-first search prioritizes the number of actions, so it may miss a cheaper path that uses more actions.
- 53If the shallowest goal is at depth s, breadth-first search has time complexity on the order of_____.
Hint
The number of nodes grows exponentially with the solution depth.
Answer
Bs
Explanation
Breadth-first search explores layers up to the solution depth, giving time complexity on the order of Bs.
- 54Breadth-first search can require space on the order of Bs because the fringe can contain an entire wide layer near the solution depth_____.
Hint
The largest fringe occurs around the depth of the shallowest solution.
Answer
s
Explanation
Breadth-first search stores many nodes waiting in the deepest explored layer, requiring space on the order of Bs.
- 55Breadth-first search is complete for a search tree in which each level has a finite number of nodes and a solution exists at a finite_____.
Hint
Layer-by-layer exploration eventually reaches any finitely distant goal.
Answer
depth
Explanation
Breadth-first search proceeds through increasing depths, so it will reach a goal at any finite depth when each level is finite.
- 56Iterative deepening repeatedly runs depth-first search with an increasing depth_____.
Hint
Each run is prevented from going beyond a specified depth.
Answer
limit
Explanation
Iterative deepening first searches to a small depth limit, then increases the limit if no solution is found.
- 57Iterative deepening repeats some work across runs, but this is usually manageable because the deepest layer is much larger than all the_____layers combined.
Hint
The repeated exploration is concentrated in relatively small upper levels.
Answer
previous
Explanation
The exponentially larger last layer dominates the tree, so repeating work in earlier layers adds relatively little overhead.
- 58Uniform cost search selects the fringe node with the lowest accumulated_____so far.
Hint
Unlike breadth-first search, it ranks paths by their transition weights.
Answer
cost
Explanation
Uniform cost search expands the path with the lowest cumulative cost encountered so far.
- 59Uniform cost search is like breadth-first search when all actions cost the same, but it orders nodes by path cost instead of by_____.
Hint
Breadth-first search uses the number of steps as its ordering criterion.
Answer
depth
Explanation
Uniform cost search generalizes breadth-first search to varying action costs by ordering paths by their accumulated cost.
- 60Uniform cost search should not stop as soon as a goal first appears on the fringe, because a lower-cost path to a goal may still be_____.
Hint
A goal can be waiting while a cheaper partial path has not yet been explored.
Answer
found
Explanation
The first goal on the fringe may not be the cheapest; a lower-cost path could still lead to a goal.
- 61Uniform cost search can declare success when it selects a goal node as the lowest-cost node to_____.
Hint
The algorithm checks the goal when a node is selected from the fringe.
Answer
expand
Explanation
When the lowest-cost selected node is a goal, uniform cost search can return its path as optimal, assuming positive action costs.
- 62Using effective depth C∗/ϵ, uniform cost search can have time and space complexity on the order of B raised to the_____.
Hint
The search may grow exponentially in the maximum number of actions affordable below the solution cost.
Answer
effective depth
Explanation
The number of nodes can grow exponentially in the effective depth, producing complexity on the order of BC∗/ϵ.
- 63Uniform cost search is complete under assumptions such as strictly_____action costs, which prevent problematic cost cycles.
Hint
The costs must not allow endless cycling without increasing accumulated cost.
Answer
positive
Explanation
With positive costs and the relevant finiteness assumptions, uniform cost search systematically explores paths until it finds a solution.
- 64Uniform cost search does not use information about how close a node is to the goal, so it may explore in_____directions.
Hint
Its ordering is based on cost so far, not estimated progress toward the destination.
Answer
every
Explanation
Uniform cost search expands paths according to their accumulated cost and does not preferentially direct the search toward the goal.
- 65A priority queue can unify implementations of depth-first, breadth-first, and uniform cost search by assigning different_____to fringe nodes.
Hint
The queue ordering changes according to the search strategy.
Answer
priorities
Explanation
One implementation can use a priority queue, with priorities based on depth, shallowness, or accumulated path cost.
- 66A search algorithm can return a poor real-world route even when the algorithm is correct if the search problem's_____does not accurately represent the world.
Hint
The issue may be in how the real situation was converted into states and transitions.
Answer
formulation
Explanation
A mismatch between the real world and the search-problem model can cause an algorithm to produce an unsuitable route despite functioning correctly.
- 67If a needed road or connection is missing from the state space graph, search cannot use that_____to reach the destination.
Hint
The algorithm can only traverse transitions represented in its graph.
Answer
path
Explanation
A route absent from the state space graph cannot be discovered by search, even if it exists in the real world.
- 68A route planner that sends a driver onto a boat may be following the model correctly while exposing an incomplete or inaccurate_____.
Hint
The example concerns a representation of roads and connections.
Answer
map
Explanation
An odd route can result from an incomplete map rather than a failure of the search algorithm itself.
- 69In practical search, the state space graph is generally handled_____rather than drawn or fully constructed in advance.
Hint
The algorithm generates only the parts it needs while searching.
Answer
implicitly
Explanation
Real state spaces are often too large to construct explicitly, so search algorithms generate relevant portions on demand.
- 70A search tree is typically constructed on demand so the algorithm explores only as much of it as needed to find a_____.
Hint
The algorithm need not enumerate every possible plan before returning.
Answer
solution
Explanation
Search algorithms incrementally generate nodes and stop when they find a solution, rather than building the entire tree ahead of time.
- 71A core practical challenge in search is building a good_____of the real-world problem.
Hint
The algorithms depend on how states, actions, and costs represent the real situation.
Answer
model
Explanation
Good search results depend on modeling the world and the objective accurately through the problem formulation.

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