AI Course Announcements
- 66Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What distinguishes a reflex agent from a planning agent?
What distinguishes a reflex agent from a planning agent?
66 questions
- 1
What distinguishes a reflex agent from a planning agent?
- A
A reflex agent represents every possible future state before acting.
- B
A reflex agent requires a complete map of the environment to choose an action.
- C
A reflex agent chooses from its current percept and possibly memory without reasoning through action consequences.
- D
A reflex agent always chooses the action with the lowest total path cost.
Correct answer
CA reflex agent chooses from its current percept and possibly memory without reasoning through action consequences.
Explanation
A reflex agent responds to its current percept, perhaps using memory, but does not consider the consequences of its actions as a planning agent does.
- A
- 2
Can a reflex agent behave rationally, despite not planning ahead?
- A
No, because a reflex agent cannot use information from its current percept.
- B
No, because rational behavior always requires evaluating every possible future.
- C
Yes, but only when every action has exactly the same outcome.
- D
Yes, if an immediate response optimizes expected utility in the situation.
Correct answer
DYes, if an immediate response optimizes expected utility in the situation.
Explanation
Rationality concerns whether behavior is optimal, not how the agent reaches its decision. In a time-critical situation, an immediate reflex can be the best action.
- A
- 3
Why might pulling a hand away from a flame reflexively be more rational than reasoning through the consequences first?
- A
Reasoning cannot identify that a flame can cause injury.
- B
The reflex guarantees that no future consequence needs to be considered.
- C
The delay from extensive reasoning could make the injury worse, while immediate withdrawal addresses the danger.
- D
A reflex always produces the same result as an optimal plan.
Correct answer
CThe delay from extensive reasoning could make the injury worse, while immediate withdrawal addresses the danger.
Explanation
The lecture's example illustrates that reacting quickly can be optimal when deliberation would take too long to avoid harm.
- A
- 4
A Pac-Man reflex agent moves toward the nearest dot, but the direction is blocked by a wall. Why can it become stuck?
- A
It encounters the same situation again, chooses the same direction, and repeats the blocked move.
- B
It removes the blocked direction from its action set permanently.
- C
It automatically changes its goal to reach the wall instead of the dot.
- D
It recalculates the entire maze and selects a longer route around the wall.
Correct answer
AIt encounters the same situation again, chooses the same direction, and repeats the blocked move.
Explanation
The reflex repeats the same action whenever the perceptual situation remains unchanged. A planning agent could reason about going around the wall.
- A
- 5
What does a planning agent use its model of the world to do?
- A
React to percepts without representing possible action outcomes.
- B
Guarantee that every possible action sequence has the same cost.
- C
Predict the consequences of hypothetical action sequences and evaluate whether they meet a goal.
- D
Replace the goal test with a record of the most recent percept.
Correct answer
CPredict the consequences of hypothetical action sequences and evaluate whether they meet a goal.
Explanation
Planning agents ask what would happen if they took a sequence of actions, which requires a model of how the world works.
- A
- 6
Why does a planning agent need a goal?
- A
It needs a condition for evaluating whether a hypothetical action sequence achieves what is wanted.
- B
It needs to prevent the successor function from generating possible actions.
- C
It needs a way to determine the current percept without using sensors.
- D
It needs to ensure that every action has identical consequences.
Correct answer
AIt needs a condition for evaluating whether a hypothetical action sequence achieves what is wanted.
Explanation
The agent evaluates candidate action sequences by whether their outcomes satisfy a goal or goal condition.
- A
- 7
Which description correctly distinguishes a complete algorithm from an optimal algorithm?
- A
A complete algorithm finds a solution whenever one exists; an optimal algorithm finds a solution of minimum cost.
- B
A complete algorithm searches every node; an optimal algorithm searches only goal nodes.
- C
A complete algorithm always finds minimum cost; an optimal algorithm finds any existing solution.
- D
A complete algorithm uses little memory; an optimal algorithm uses little computation time.
Correct answer
AA complete algorithm finds a solution whenever one exists; an optimal algorithm finds a solution of minimum cost.
Explanation
Completeness is a guarantee of finding a solution if one exists. Optimality is a guarantee that the solution has minimum cost.
- A
- 8
What is the key difference between planning an entire Pac-Man route and repeatedly replanning to the nearest dot?
- A
Whole-route planning updates only the nearest dot, while replanning must enumerate every possible world state.
- B
Whole-route planning is reflexive, while replanning never uses a world model.
- C
Whole-route planning ignores goals, while replanning uses a goal test.
- D
Whole-route planning searches for a complete action sequence before acting, while replanning solves a new short-horizon problem during execution.
Correct answer
DWhole-route planning searches for a complete action sequence before acting, while replanning solves a new short-horizon problem during execution.
Explanation
A replanning agent finds a path to a nearby dot, executes it, then formulates another planning problem for the next dot. Whole-route planning computes a sequence for the broader task before executing it.
- A
- 9
Which set gives the key components of a search problem described in the lecture?
- A
A percept, a memory, a reward, and a reflex rule.
- B
A plan, a transcript, a goal state, and an action history.
- C
A search tree, a priority queue, a cost limit, and a map.
- D
A state space, a successor function, a start state, and a goal test.
Correct answer
DA state space, a successor function, a start state, and a goal test.
Explanation
The search-problem interface consists of states, available actions and resulting states through the successor function, a start state, and a goal test.
- A
- 10
What information does a successor function provide?
- A
For a given state, which actions are available and which states result from those actions.
- B
Which states have already been expanded by every possible algorithm.
- C
The cheapest complete plan and the number of states in the problem.
- D
Whether the current state is the start state and how many goals exist.
Correct answer
AFor a given state, which actions are available and which states result from those actions.
Explanation
The successor function represents the consequences of actions in the modeled world.
- A
- 11
In a search problem, what is a solution?
- A
A single state that must be visited before any action can be taken.
- B
A list of every state in the state space, ordered by distance from the start.
- C
A successor function that assigns the same outcome to every action.
- D
A sequence of actions that transforms the start state into a state satisfying the goal condition.
Correct answer
DA sequence of actions that transforms the start state into a state satisfying the goal condition.
Explanation
A solution, or plan, is an action sequence that takes the start state to a state that passes the goal test.
- A
- 12
For a simplified route-finding problem on a map, which is a reasonable choice of state?
- A
The traveler's intended final action, regardless of location.
- B
The total number of cities that have ever existed.
- C
The full sequence of all roads in the entire country.
- D
The city in which the traveler is currently located.
Correct answer
DThe city in which the traveler is currently located.
Explanation
If the task is to find a path among cities, representing a state as the current city is a reasonable abstraction.
- A
- 13
In the Romania route-finding example, what determines which cities are successors of a city?
- A
Only the cities that are closer to Bucharest in a straight line.
- B
Every city in the country, regardless of whether a road connects it.
- C
The map graph's neighboring cities, with each connecting road representing a possible transition.
- D
The order in which cities appear in the search tree.
Correct answer
CThe map graph's neighboring cities, with each connecting road representing a possible transition.
Explanation
The successor function follows the map graph: a city's neighbors are the possible next cities.
- A
- 14
If road distance is used as the transition cost in route finding, what does that cost represent?
- A
The number of cities remaining in the state space.
- B
The distance associated with the road between the two connected cities.
- C
The total number of possible routes from the start city.
- D
The likelihood that the destination city is a goal.
Correct answer
BThe distance associated with the road between the two connected cities.
Explanation
One reasonable route-finding model assigns each transition the distance along that road; other costs, such as traffic or potholes, could also be modeled.
- A
- 15
Why must a state-space choice and a successor function be designed compatibly?
- A
The successor function must describe valid changes using the information represented in the chosen states.
- B
The successor function determines the goal before the state space is selected.
- C
A state space is valid only when all states have the same number of successors.
- D
A successor function can operate only when states are complete descriptions of the real world.
Correct answer
AThe successor function must describe valid changes using the information represented in the chosen states.
Explanation
Changing what a state represents can change what information is needed to specify valid actions and resulting states.
- A
- 16
For a Pac-Man pathing task whose goal is to reach a particular location, what can the search state contain?
- A
Pac-Man's location and every dot's status, because all dots must be eaten.
- B
Every ghost's location and Pac-Man's facing direction, because all world details are required.
- C
Pac-Man's location, because the task does not require tracking food or ghosts.
- D
Only the number of actions taken, because location is irrelevant to pathing.
Correct answer
CPac-Man's location, because the task does not require tracking food or ghosts.
Explanation
For simple pathing, the agent's location is enough to determine progress toward a destination. Details irrelevant to that task can be excluded from the search state.
- A
- 17
For a Pac-Man task whose goal is to eat all dots, why must the state include the locations or statuses of the dots?
- A
The number of dots alone is required to determine Pac-Man's current location.
- B
The search must track which dots remain so the goal can be tested and actions can update food status.
- C
Food information is needed only to calculate the cost of moving through a wall.
- D
Dot statuses determine which direction Pac-Man is facing.
Correct answer
BThe search must track which dots remain so the goal can be tested and actions can update food status.
Explanation
The state must represent remaining food so the goal test can determine whether all dots are gone and the successor function can update food when Pac-Man moves.
- A
- 18
In the all-dots task, what is the goal test for the food component of the state?
- A
Every food indicator is false, meaning no dots remain.
- B
Pac-Man is at the same location as the start state.
- C
The number of food locations is still at its initial value.
- D
Pac-Man has visited at least one location that contained food.
Correct answer
AEvery food indicator is false, meaning no dots remain.
Explanation
With food represented by Boolean indicators, the goal is reached when all indicators show that no food remains.
- A
- 19
Suppose the goal is to eat all dots while keeping ghosts scared. Why might the search state need a ghost-scare timer?
- A
The timer lets the successor function determine when the scared condition expires and the task fails.
- B
The timer replaces the need to represent Pac-Man's position.
- C
The timer tells the goal test which dots are still present.
- D
The timer ensures that the state space has no cycles.
Correct answer
AThe timer lets the successor function determine when the scared condition expires and the task fails.
Explanation
The timer is needed to model how long the ghosts remain scared, including when a transition would lead to a game-over state.
- A
- 20
If ghosts respawn unscared when Pac-Man runs into them, what additional information may the search state need?
- A
Ghost locations, so the successor function can model where collisions occur and their consequences.
- B
Pac-Man's starting location for every future state.
- C
The total number of cities in the map, so the goal test can run.
- D
Only the number of remaining food dots, because collisions do not affect the task.
Correct answer
AGhost locations, so the successor function can model where collisions occur and their consequences.
Explanation
If ghost locations affect whether a collision causes a ghost to respawn unscared, those locations are needed to simulate the world correctly. If that behavior is excluded from the model, they may not be necessary.
- A
- 21
In the lecture's Pac-Man state-count example, what accounts for the factor 230?
- A
There are two ghosts, each with 30 possible locations.
- B
Pac-Man can face in 30 directions, each with two possible speeds.
- C
Each of 30 food locations can independently contain food or be empty.
- D
There are 30 possible Pac-Man actions, each with two outcomes.
Correct answer
CEach of 30 food locations can independently contain food or be empty.
Explanation
Each of the 30 food locations has two possible statuses, present or absent, producing 230 combinations.
- A
- 22
Using the lecture's factors, which expression estimates the number of complete world states in the small maze?
- A
1202×230×12×4
- B
120×30×12×4
- C
120+230+122+4
- D
120×230×122×4
Correct answer
D120×230×122×4
Explanation
The count multiplies the possibilities for Pac-Man's location, food configuration, two ghost locations, and Pac-Man's four orientations: 120×230×122×4.
- A
- 23
Why are the possibilities for independent state variables multiplied when estimating the number of states?
- A
Multiplication removes impossible states from the estimate automatically.
- B
Each variable represents a separate search problem.
- C
Each combination of one value from each variable can describe a distinct state.
- D
The variables must all take the same value in every state.
Correct answer
CEach combination of one value from each variable can describe a distinct state.
Explanation
The total number of combinations is the product of the number of possibilities for each varying component.
- A
- 24
For the all-dots search problem in the example, why is the state-space estimate 120×230 rather than the full world-state count?
- A
The task excludes Pac-Man's location because the dots determine it.
- B
The task needs Pac-Man's location and food configuration, but not ghost locations or facing direction.
- C
The task needs only the ghost locations and facing direction.
- D
The task treats every food location as a single combined Boolean variable.
Correct answer
BThe task needs Pac-Man's location and food configuration, but not ghost locations or facing direction.
Explanation
The search state should include information relevant to the task. Eating all dots needs Pac-Man's position and the food configuration, but not ghosts or facing direction in the described formulation.
- A
- 25
How many states are needed for the simple pathing problem in the example if the state is only Pac-Man's position?
- A
120×230
- B
120×122×4
- C
120
- D
230
Correct answer
C120
Explanation
The pathing state tracks only the agent's position, which has 120 possibilities.
- A
- 26
Why can a straightforward product-based state count slightly overestimate the number of physically possible states?
- A
The product omits combinations in which Pac-Man faces north.
- B
Every state variable must be statistically independent in the real world.
- C
Some combinations, such as Pac-Man occupying a location where uneaten food remains, cannot occur.
- D
The product counts only states that satisfy the goal.
Correct answer
CSome combinations, such as Pac-Man occupying a location where uneaten food remains, cannot occur.
Explanation
Some combinations counted by the product are impossible under the world's rules—for example, food is eaten automatically when Pac-Man reaches its location. The estimate is therefore a ballpark count.
- A
- 27
What is the difference between a complete world state and a search-problem state?
- A
A world state is a path through the search tree, while a search state is always a single action.
- B
A search state must contain every world detail, while a world state contains only the goal.
- C
There is no difference; both must represent every detail of the environment.
- D
A world state can represent everything about the environment, while a search state includes the information needed for the particular task.
Correct answer
DA world state can represent everything about the environment, while a search state includes the information needed for the particular task.
Explanation
The search state is tailored to the problem. For example, a pathing search can omit food and ghost information even though the complete world state includes them.
- A
- 28
What is a state space graph?
- A
A record of all action sequences, including repeated appearances of states.
- B
A list of goals ordered by the cost of reaching them.
- C
A mathematical representation with states as nodes and successor relationships as arcs.
- D
A physical map that must be drawn before search can begin.
Correct answer
CA mathematical representation with states as nodes and successor relationships as arcs.
Explanation
In the state space graph, nodes represent abstract world configurations and arcs represent transitions described by the successor function.
- A
- 29
How many times does each state occur in a state space graph as described in the lecture?
- A
A number that depends on the branching factor.
- B
Once for every action sequence that reaches it.
- C
Once, even if several paths could reach it.
- D
Once for every goal test performed on it.
Correct answer
COnce, even if several paths could reach it.
Explanation
Each state appears only once in the state space graph. Different paths to that state are represented separately in a search tree.
- A
- 30
What does a node in a search tree represent?
- A
A unique state that can occur only once in all possible paths.
- B
A goal condition that has not yet been tested.
- C
A sequence of states reached along a particular action sequence from the start.
- D
A complete description of every possible action in the problem.
Correct answer
CA sequence of states reached along a particular action sequence from the start.
Explanation
A search-tree node represents a path history: the sequence of states encountered from the start through a particular sequence of actions.
- A
- 31
Why can the search tree be much larger than the state space graph?
- A
The graph duplicates every state, while the tree stores each state once.
- B
The search tree always has more possible states than the real world.
- C
The search tree contains only goal states, while the graph contains every state.
- D
Different action sequences can reach the same state, so that state can appear multiple times in the tree.
Correct answer
DDifferent action sequences can reach the same state, so that state can appear multiple times in the tree.
Explanation
The tree records paths, not just distinct states. Multiple paths to one state create multiple tree nodes corresponding to that same state.
- A
- 32
How can a small state space graph produce an infinite search tree?
- A
A goal state automatically creates infinitely many successors.
- B
The successor function must generate new states even when no actions are available.
- C
Cycles can let the search tree keep extending with longer paths through the same states.
- D
A finite graph always has an infinite number of distinct states.
Correct answer
CCycles can let the search tree keep extending with longer paths through the same states.
Explanation
A graph with cycles can generate arbitrarily long paths by revisiting states. Thus even a graph with only a few states can have an infinite search tree.
- A
- 33
In the lecture's four-state graph, why can search starting at S have an infinite tree even though the graph is small?
- A
The graph's arcs represent infinitely many different actions.
- B
The transitions allow repeated movement among states, producing paths of unbounded length.
- C
The graph contains infinitely many distinct goal states.
- D
The start state has no outgoing transitions, so search repeats it.
Correct answer
BThe transitions allow repeated movement among states, producing paths of unbounded length.
Explanation
Cycles among the states can be traversed repeatedly, creating ever-longer paths and an infinite search tree.
- A
- 34
Why is the search tree usually treated as an abstraction rather than fully constructed in practice?
- A
It cannot represent solutions to search problems.
- B
It is identical to the real-world environment and cannot be stored.
- C
It contains no information about action consequences.
- D
It can be enormous or infinite, so algorithms generate only the parts needed during search.
Correct answer
DIt can be enormous or infinite, so algorithms generate only the parts needed during search.
Explanation
Search trees can be much larger than state-space graphs and may be infinite, so algorithms construct them incrementally as needed.
- A
- 35
What does the fringe contain in tree search?
- A
Every goal state in the entire state space graph.
- B
Leaf nodes that are candidates for expansion.
- C
Only nodes that have already been expanded.
- D
Only states that have no successors.
Correct answer
BLeaf nodes that are candidates for expansion.
Explanation
The fringe is the set of leaves in the current search tree that are waiting to be considered for expansion.
- A
- 36
What does tree search do when the fringe is empty?
- A
It restarts from the most recently visited state.
- B
It reports failure because there are no remaining candidates to expand.
- C
It declares success because every remaining node is a goal.
- D
It calls the successor function on the start state again.
Correct answer
BIt reports failure because there are no remaining candidates to expand.
Explanation
An empty fringe means there are no leaves left to expand, so the algorithm has exhausted its candidates without finding a solution.
- A
- 37
In the described tree-search procedure, what happens after a fringe node is selected?
- A
The algorithm immediately returns the node as a solution, whether or not it is a goal.
- B
The algorithm deletes every other fringe node and starts over.
- C
The algorithm checks whether the node's path reaches a goal; if not, it expands the node using the successor function.
- D
The algorithm tests every state in the state space graph before continuing.
Correct answer
CThe algorithm checks whether the node's path reaches a goal; if not, it expands the node using the successor function.
Explanation
The algorithm selects a candidate, checks its goal status, and, if it is not a goal, expands it using the successor function.
- A
- 38
Why is it not enough to notice that a goal node has been generated as a child?
- A
A generated goal state cannot be part of a valid solution.
- B
A goal is valid only if it has at least one successor.
- C
The goal test is performed only on the start state.
- D
The search procedure declares success when the goal-ending node is selected for expansion, not merely when it is generated.
Correct answer
DThe search procedure declares success when the goal-ending node is selected for expansion, not merely when it is generated.
Explanation
In the described tree-search procedure, a goal is checked when its node is selected from the fringe. Declaring success immediately upon generation can produce incorrect results for cost-based search.
- A
- 39
What does it mean to expand a node in tree search?
- A
Remove every state in the same layer from the state space graph.
- B
Test whether all possible plans in the search tree reach a goal.
- C
Replace the start state with the node's final state.
- D
Apply the successor function to its final state and add the resulting child paths to the fringe.
Correct answer
DApply the successor function to its final state and add the resulting child paths to the fringe.
Explanation
Expansion applies the successor function to the last state on a path, creating child nodes that represent possible next actions.
- A
- 40
Which choice distinguishes depth-first search from breadth-first search in tree search?
- A
Depth-first selects a goal node, while breadth-first selects a non-goal node.
- B
Depth-first selects a lowest-cost node, while breadth-first selects a highest-cost node.
- C
Depth-first selects a deepest fringe node, while breadth-first selects a shallowest fringe node.
- D
Depth-first expands graph states once, while breadth-first expands every path twice.
Correct answer
CDepth-first selects a deepest fringe node, while breadth-first selects a shallowest fringe node.
Explanation
DFS and BFS use different fringe-selection strategies: deepest first for DFS and shallowest first for BFS.
- A
- 41
For a search tree with branching factor B and maximum depth M, approximately how many nodes can the final layer contain?
- A
B×M
- B
B+M
- C
BM
- D
MB
Correct answer
CBM
Explanation
If each node has B successors, the number of nodes grows exponentially with depth; the layer at depth M has BM nodes.
- A
- 42
In the lecture's search-tree analysis, what does the branching factor B represent?
- A
The number of successors from a node, under the simplifying assumption that this number is uniform.
- B
The number of actions required to reach the nearest goal.
- C
The total number of distinct states in the graph.
- D
The maximum number of goals in the entire state space.
Correct answer
AThe number of successors from a node, under the simplifying assumption that this number is uniform.
Explanation
The branching factor is the number of successors per node in the simplified analysis.
- A
- 43
What is the worst-case time complexity of depth-first search when the maximum tree depth is finite at M?
- A
O(BS), where S is always the shallowest goal depth
- B
O(BM)
- C
O(BM)
- D
O(MB)
Correct answer
CO(BM)
Explanation
In the worst case DFS may explore the entire tree, whose size is dominated by its deepest layer, giving O(BM).
- A
- 44
Why does depth-first search typically require only O(BM) fringe space in the lecture's analysis?
- A
It never stores nodes that have been generated but not expanded.
- B
It stores every node in the tree but removes all goal nodes.
- C
Along a current path of depth at most M, it stores unexpanded alternatives from each level, with up to B successors per level.
- D
It stores at most one state for each of the B possible actions.
Correct answer
CAlong a current path of depth at most M, it stores unexpanded alternatives from each level, with up to B successors per level.
Explanation
DFS retains the current path and pending alternatives along it. With at most B alternatives at each of M levels, its fringe space is O(BM).
- A
- 45
Under what condition is depth-first search complete in the lecture's analysis?
- A
Whenever a goal exists at any depth, including in an infinite tree.
- B
When the search tree is finite, so it cannot descend forever along an infinite path.
- C
Only when every node has exactly one successor.
- D
Whenever all action costs are equal, even if the tree is infinite.
Correct answer
BWhen the search tree is finite, so it cannot descend forever along an infinite path.
Explanation
DFS is complete when the tree is finite. An infinite tree can let it follow an endless path without reaching an existing solution elsewhere.
- A
- 46
Why is depth-first search not generally optimal?
- A
It always expands every node before testing for a goal.
- B
It cannot find any goal that is not at maximum depth.
- C
It uses a fringe that contains only goal states.
- D
Its expansion order does not prioritize low-cost or shallow solutions, so it may find a more expensive solution first.
Correct answer
DIts expansion order does not prioritize low-cost or shallow solutions, so it may find a more expensive solution first.
Explanation
DFS follows its depth-based order, which does not guarantee that the first solution found has minimum cost or is the shallowest.
- A
- 47
How does breadth-first search organize its expansions?
- A
It expands only nodes that are geographically closest to the goal.
- B
It selects the fringe node with the lowest cumulative cost.
- C
It follows one path to maximum depth before considering alternatives.
- D
It expands nodes layer by layer, selecting a shallowest fringe node first.
Correct answer
DIt expands nodes layer by layer, selecting a shallowest fringe node first.
Explanation
BFS visits the search tree in order of depth, expanding all shallower layers before deeper ones.
- A
- 48
If the shallowest solution has depth S, what is the approximate time complexity of breadth-first search in the lecture's analysis?
- A
O(BM)
- B
O(BS)
- C
O(SB)
- D
O(BM) regardless of solution depth
Correct answer
BO(BS)
Explanation
BFS expands nodes through the depth of the shallowest solution, giving approximate time complexity O(BS).
- A
- 49
Why can breadth-first search require approximately O(BS) space?
- A
It stores all possible action costs but no search nodes.
- B
It may need to retain the many generated nodes at the frontier near the solution depth.
- C
It stores one node for each level, independent of the branching factor.
- D
It stores only the current path and a constant number of alternatives.
Correct answer
BIt may need to retain the many generated nodes at the frontier near the solution depth.
Explanation
BFS keeps the frontier of a broad layer. Near depth S, that frontier can contain on the order of BS nodes.
- A
- 50
When is breadth-first search optimal according to the lecture?
- A
When the deepest solution is the least expensive.
- B
Only when the search tree has no repeated states.
- C
When every action has the same cost, so a shallowest solution also has minimum cost.
- D
Whenever costs vary, because BFS compares cumulative path costs.
Correct answer
CWhen every action has the same cost, so a shallowest solution also has minimum cost.
Explanation
With equal action costs, minimizing the number of actions also minimizes total cost. With different costs, BFS is not generally optimal.
- A
- 51
Why can breadth-first search be preferable to depth-first search when a shallow solution lies far to the right in the tree?
- A
BFS reaches shallow solutions without first traversing a deep path on the left.
- B
BFS uses less memory than DFS on every tree.
- C
DFS is unable to find solutions in the right side of a tree.
- D
BFS ignores all branches that do not contain a goal.
Correct answer
ABFS reaches shallow solutions without first traversing a deep path on the left.
Explanation
BFS explores by depth, so it can find a shallow goal without exhaustively following a deep, unpromising branch first.
- A
- 52
Why might depth-first search be chosen despite not guaranteeing a shortest solution?
- A
It explores all shallow goals before any deeper nodes.
- B
It always finds a minimum-cost path on infinite trees.
- C
Its memory use can be much smaller than BFS when the frontier would otherwise be too large.
- D
It is complete on every infinite search tree.
Correct answer
CIts memory use can be much smaller than BFS when the frontier would otherwise be too large.
Explanation
DFS's low space requirement can make it practical when BFS's large frontier would exceed available memory.
- A
- 53
What is the basic strategy of iterative deepening search?
- A
Run uniform cost search with a larger cost limit after each iteration.
- B
Run DFS once and restart only if the search tree is infinite.
- C
Run BFS once, then discard all nodes above the first goal.
- D
Run depth-limited DFS repeatedly, increasing the maximum allowed depth after each unsuccessful run.
Correct answer
DRun depth-limited DFS repeatedly, increasing the maximum allowed depth after each unsuccessful run.
Explanation
Iterative deepening starts with a small depth limit and repeatedly runs depth-first search with an increasing limit until it finds a solution.
- A
- 54
Why does iterative deepening retain DFS's memory advantage?
- A
It stores the entire tree only once, then reuses every node in all later runs.
- B
Each run uses depth-first traversal with a depth cap, so it need not keep a broad layer of nodes in memory.
- C
It uses no fringe because it expands nodes in parallel.
- D
It removes all previously expanded nodes from the search space graph.
Correct answer
BEach run uses depth-first traversal with a depth cap, so it need not keep a broad layer of nodes in memory.
Explanation
Each iteration is depth-first and depth-limited, so memory use remains comparable to DFS rather than BFS.
- A
- 55
Why is iterative deepening's repeated work often not very costly?
- A
The number of nodes in every layer is constant.
- B
The deepest layer is exponentially larger than the earlier layers, so the final iteration's work dominates.
- C
The algorithm stops before searching the final layer.
- D
The algorithm reuses every expansion from earlier iterations without repeating it.
Correct answer
BThe deepest layer is exponentially larger than the earlier layers, so the final iteration's work dominates.
Explanation
Although earlier depths are revisited, the deepest layer contains most of the nodes in an exponentially growing tree, making the repeated shallower work relatively small.
- A
- 56
Which strategy does uniform cost search use to select a fringe node?
- A
Select the node closest to the goal in straight-line distance.
- B
Select the node with the lowest cumulative path cost so far.
- C
Select the node with the fewest actions from the start.
- D
Select the deepest node in the fringe.
Correct answer
BSelect the node with the lowest cumulative path cost so far.
Explanation
Uniform cost search prioritizes paths by their accumulated cost, not simply by their number of actions or depth.
- A
- 57
Why does uniform cost search continue after a goal node first appears on the fringe?
- A
The goal test applies only to nodes with successors.
- B
A lower-cost fringe path might still lead to a cheaper goal than the one already generated.
- C
The first goal on the fringe is always the most expensive one.
- D
A goal node cannot be tested until every state in the graph has been visited.
Correct answer
BA lower-cost fringe path might still lead to a cheaper goal than the one already generated.
Explanation
A generated goal is not necessarily the cheapest goal. Another path on the fringe with lower cumulative cost could lead to a cheaper solution.
- A
- 58
When can uniform cost search safely return a goal as optimal under the lecture's assumptions?
- A
As soon as any goal is generated, regardless of the costs on the fringe.
- B
When the goal path is selected at the lowest cumulative cost and all transition costs are positive.
- C
Only after every possible path has been explicitly enumerated.
- D
When the goal is at the greatest depth in the search tree.
Correct answer
BWhen the goal path is selected at the lowest cumulative cost and all transition costs are positive.
Explanation
With positive costs, when the least-cost fringe path is a goal, all remaining paths have at least as much cost and cannot yield a cheaper solution.
- A
- 59
What role does the minimum step cost ϵ play in uniform cost search's effective-depth estimate?
- A
It determines how many goal states exist.
- B
It is the cost of the optimal solution, regardless of the problem.
- C
It gives the branching factor of the search tree.
- D
It bounds the number of actions in a path of cost at most C∗ by approximately C∗/ϵ.
Correct answer
DIt bounds the number of actions in a path of cost at most C∗ by approximately C∗/ϵ.
Explanation
If every step costs at least ϵ and the optimal solution costs C∗, a path costing no more than that can contain at most about C∗/ϵ steps.
- A
- 60
Under the lecture's cost assumptions, how is the effective depth for uniform cost search defined?
- A
The number of states divided by the cost of the first action.
- B
Approximately C∗/ϵ, where C∗ is optimal solution cost and each step costs at least ϵ.
- C
The total cost of all paths divided by the branching factor.
- D
The maximum number of successors multiplied by the goal depth.
Correct answer
BApproximately C∗/ϵ, where C∗ is optimal solution cost and each step costs at least ϵ.
Explanation
The effective depth estimates how many actions can fit within the optimal cost when every action costs at least ϵ.
- A
- 61
What is a key limitation of uniform cost search highlighted in the lecture?
- A
It cannot handle different costs for different actions.
- B
It ignores the transition costs encoded in the search problem.
- C
It is guaranteed to choose the deepest path first.
- D
It expands in all directions according to cost so far, without using information about which paths seem closer to the goal.
Correct answer
DIt expands in all directions according to cost so far, without using information about which paths seem closer to the goal.
Explanation
Uniform cost search is complete and optimal under its assumptions, but it does not focus on directions that appear promising for reaching the goal.
- A
- 62
How can depth-first, breadth-first, and uniform cost search be unified in one tree-search implementation?
- A
Use the same fixed priority for every node and change the goal test.
- B
Change the successor function so each strategy has different legal actions.
- C
Build a separate state space graph for each strategy.
- D
Use a shared fringe mechanism and change the priority rule for selecting the next node.
Correct answer
DUse a shared fringe mechanism and change the priority rule for selecting the next node.
Explanation
The algorithms share the tree-search procedure; their main difference is how they prioritize fringe nodes—depth, shallowness, or cumulative cost.
- A
- 63
What priority rule corresponds to depth-first search in a shared fringe implementation?
- A
Prefer nodes with more successors.
- B
Prefer nodes with lesser depth.
- C
Prefer nodes with lower cumulative path cost.
- D
Prefer nodes with greater depth.
Correct answer
DPrefer nodes with greater depth.
Explanation
Depth-first search prioritizes the deepest fringe nodes.
- A
- 64
What priority rule corresponds to breadth-first search in a shared fringe implementation?
- A
Prefer nodes with greater cumulative path cost.
- B
Prefer nodes with fewer possible goal states.
- C
Prefer nodes with greater depth.
- D
Prefer nodes with lesser depth.
Correct answer
DPrefer nodes with lesser depth.
Explanation
Breadth-first search prioritizes the shallowest fringe nodes.
- A
- 65
A route planner chooses a turn based on its map, but that turn is impossible in the real world. What is the most likely underlying problem?
- A
The search tree is necessarily infinite.
- B
The fringe priority rule has made every successor invalid.
- C
The goal test must have found a cheaper route.
- D
The search model or map does not accurately represent the real environment.
Correct answer
DThe search model or map does not accurately represent the real environment.
Explanation
A search algorithm can only reason over its model. If the map does not match the real road layout, even a correctly run algorithm can recommend an unusable route.
- A
- 66
Why might a route planner send a traveler on a boat trip when trying to reach a nearby destination?
- A
The search algorithm has mistaken every city for a goal.
- B
The traveler must be following a depth-first search tree.
- C
The modeled state space may omit a needed road connection, making the boat route the available modeled path.
- D
Uniform cost search always prefers water over roads.
Correct answer
CThe modeled state space may omit a needed road connection, making the boat route the available modeled path.
Explanation
If a needed connection is absent from the map, it is absent from the search problem's state space graph. The algorithm may then find an unintended route that exists in the model.
- A

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