1. Home
  2. Explore
  3. Computer Science
  4. Informed Search

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Informed Search

  • 64Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Search Foundations

In a search problem, what does a state represent?

64 questions

  1. 1

    In a search problem, what does a state represent?

    1. A

      A sequence of actions that has already reached a goal

    2. B

      A numerical estimate of the remaining cost to a goal

    3. C

      A relevant abstraction of a possible configuration of the world

    4. D

      A complete record of every detail in the real world

    Correct answer
    C

    A relevant abstraction of a possible configuration of the world

    Explanation

    A state represents a configuration of the world at an abstraction level relevant to the agent's decisions; it need not contain every real-world detail.

  2. 2

    Which component of a search problem specifies where an action leads and what it costs?

    1. A

      The goal test

    2. B

      The successor function

    3. C

      The start state

    4. D

      The search fringe

    Correct answer
    B

    The successor function

    Explanation

    The successor function specifies the resulting state and the associated cost for an available action in a given state.

  3. 3

    What is the role of a goal test in a search problem?

    1. A

      It estimates the cost of reaching each successor state.

    2. B

      It selects which fringe node should be expanded next.

    3. C

      It determines which actions are available in each state.

    4. D

      It checks whether a state satisfies the desired condition.

    Correct answer
    D

    It checks whether a state satisfies the desired condition.

    Explanation

    A goal test checks whether a state satisfies the goal condition; if it does, that state is a goal state.

  4. 4

    What does a node in a search tree represent?

    1. A

      A path of actions leading to a state

    2. B

      The full set of possible states in the problem

    3. C

      An estimate of the shortest path to any goal

    4. D

      Only the state, regardless of how it was reached

    Correct answer
    A

    A path of actions leading to a state

    Explanation

    A search-tree node corresponds to a path to a state. Different paths to the same state can therefore appear as different nodes in the tree.

  5. 5

    How is the cost of a path calculated in the search problems described?

    1. A

      By summing the costs of all actions along the path

    2. B

      By counting only the actions that change the state

    3. C

      By adding the path length to the heuristic at its endpoint

    4. D

      By taking the largest cost among its actions

    Correct answer
    A

    By summing the costs of all actions along the path

    Explanation

    A path or plan's cost is the sum of the costs of all actions taken along that path.

  6. 6

    What distinguishes an optimal search algorithm from one that merely finds a solution?

    1. A

      It finds a least-cost plan to a goal.

    2. B

      It always expands the goal state before other states.

    3. C

      It uses a heuristic to estimate distance to the goal.

    4. D

      It finds a goal using the fewest state expansions in every problem.

    Correct answer
    A

    It finds a least-cost plan to a goal.

    Explanation

    An optimal search algorithm finds a least-cost plan; simply reaching a goal does not guarantee that the path is least-cost.

  7. 7

    For a stack of four distinctly sized pancakes, how many possible state configurations are there?

    1. A

      161616

    2. B

      121212

    3. C

      444

    4. D

      242424

    Correct answer
    D

    242424

    Explanation

    There are four choices for the bottom pancake, then three for the next position, two for the next, and one for the top, giving 4!=244! = 244!=24 configurations.

  8. 8

    In the four-pancake example, why are there three useful flip actions from a given stack?

    1. A

      There are three places to insert the spatula where a flip changes the stack.

    2. B

      There are three possible sizes of pancake that can be placed at the bottom.

    3. C

      Only three pancakes can be moved without changing the goal condition.

    4. D

      The robot can flip at most three pancakes in a single action.

    Correct answer
    A

    There are three places to insert the spatula where a flip changes the stack.

    Explanation

    The spatula can be placed between the second and third pancakes, between the third and fourth, or below the bottom pancake. Placing it between the top two leaves the top pancake on top and does not change the stack.

  9. 9

    In the pancake-flipping problem, what is the cost of a flip?

    1. A

      The number of pancakes included in the flip

    2. B

      The number of pancakes that are already in their correct positions

    3. C

      The number of actions remaining before the stack is sorted

    4. D

      The rank of the largest pancake in the stack

    Correct answer
    A

    The number of pancakes included in the flip

    Explanation

    The stated action cost is the number of pancakes flipped, reflecting the energy required to lift them.

  10. 10

    What determines which fringe item is expanded next in the general tree-search procedure?

    1. A

      The search strategy's ordering rule

    2. B

      The order in which states appear in the real world

    3. C

      The number of actions available in the start state

    4. D

      The order in which goal states were defined

    Correct answer
    A

    The search strategy's ordering rule

    Explanation

    The fringe contains candidates for expansion, and the search strategy determines which candidate is selected next.

  11. 11

    What information does a heuristic function provide?

    1. A

      An estimate of the cost or distance from a state to a goal

    2. B

      The number of actions that have already been taken

    3. C

      A list of all states that have been expanded

    4. D

      The exact cost of every possible path to a goal

    Correct answer
    A

    An estimate of the cost or distance from a state to a goal

    Explanation

    A heuristic estimates how close a state is to a goal, often by estimating the remaining cost. It is designed for a particular search problem.

  12. 12

    Why is Manhattan distance a reasonable heuristic for grid movement restricted to north, east, south, and west?

    1. A

      It measures the cost of every possible route through the grid.

    2. B

      It counts grid-aligned movement while ignoring obstacles.

    3. C

      It calculates the exact path around every wall.

    4. D

      It accounts for diagonal movement more accurately than other distances.

    Correct answer
    B

    It counts grid-aligned movement while ignoring obstacles.

    Explanation

    Manhattan distance fits movement along grid directions and is quick to compute. It ignores walls, so it is an estimate rather than necessarily the actual route cost.

  13. 13

    Why may Euclidean distance be a poorer heuristic than Manhattan distance for a grid where diagonal movement is prohibited?

    1. A

      It always overestimates the route cost in a grid with four-direction movement.

    2. B

      It requires knowledge of the exact locations of all walls before it can be calculated.

    3. C

      It assigns the same value to every state in the grid.

    4. D

      It measures straight-line distance that does not match the permitted movement pattern as closely.

    Correct answer
    D

    It measures straight-line distance that does not match the permitted movement pattern as closely.

    Explanation

    Euclidean distance measures straight-line separation, but a four-direction grid does not allow direct diagonal motion. Manhattan distance better reflects the permitted movement pattern.

  14. 14

    For finding a route between cities, what information can support a straight-line-distance heuristic to a destination?

    1. A

      The accumulated cost of every route already considered

    2. B

      The order in which cities were expanded

    3. C

      The GPS coordinates of the cities

    4. D

      The number of roads leaving each city

    Correct answer
    C

    The GPS coordinates of the cities

    Explanation

    GPS coordinates allow straight-line distances between cities to be computed, providing an estimate of distance to the destination.

  15. 15

    Why can the number of pancakes out of position be a heuristic for pancake flipping?

    1. A

      Every flip puts exactly one pancake into its correct position.

    2. B

      A pancake that is misplaced can never be moved by a single flip.

    3. C

      The number of misplaced pancakes is always the exact minimum path cost.

    4. D

      Every misplaced pancake must be flipped at least once, and flips have costs.

    Correct answer
    D

    Every misplaced pancake must be flipped at least once, and flips have costs.

    Explanation

    Each misplaced pancake must undergo at least one flip, and flip actions have costs based on the number of pancakes flipped. The count therefore gives an estimate, not necessarily the exact remaining cost.

  16. 16

    A proposed pancake heuristic counts correctly ordered pancakes. What adjustment makes its value zero at a solved four-pancake stack?

    1. A

      Use the count only when it is odd.

    2. B

      Subtract the count from four.

    3. C

      Multiply the count by four.

    4. D

      Add the count to four.

    Correct answer
    B

    Subtract the count from four.

    Explanation

    At the goal, all four pancakes are correctly ordered. Using four minus the number correctly ordered makes the heuristic zero at the goal and larger when more pancakes remain out of order.

  17. 17

    In the pancake heuristic based on the largest pancake still out of place, what does the pancake's number estimate?

    1. A

      The total number of possible stack configurations

    2. B

      The number of pancakes already in the correct order

    3. C

      How deep into the stack an operation must reach to put that pancake in place

    4. D

      The exact number of flips needed to sort the entire stack

    Correct answer
    C

    How deep into the stack an operation must reach to put that pancake in place

    Explanation

    The largest misplaced pancake's number indicates how deep into the stack a flip must reach before that pancake can be placed correctly.

  18. 18

    Two heuristics give different estimates for the same pancake stack. What can be concluded from the estimates alone?

    1. A

      The larger estimate is always the exact remaining cost.

    2. B

      The heuristic with more complex calculations must be more accurate.

    3. C

      The smaller estimate must be inadmissible.

    4. D

      The estimates may differ in precision, so their values should be compared with the problem's actual cost structure.

    Correct answer
    D

    The estimates may differ in precision, so their values should be compared with the problem's actual cost structure.

    Explanation

    Different heuristics can produce different estimates, and one may be more precise than another. For example, the largest-misplaced-pancake estimate can be closer to the cost of an immediately available goal-reaching flip than the count of misplaced pancakes.

  19. 19

    What does an admissible heuristic guarantee about its estimate at any state?

    1. A

      It equals the true minimum remaining cost.

    2. B

      It is at least the true minimum remaining cost.

    3. C

      It is greater than zero at every state, including a goal.

    4. D

      It is no greater than the true minimum remaining cost.

    Correct answer
    D

    It is no greater than the true minimum remaining cost.

    Explanation

    An admissible heuristic is optimistic: for every state, it estimates a cost less than or equal to the actual optimal cost remaining to a goal.

  20. 20

    Why is Manhattan distance generally admissible in a grid with walls?

    1. A

      It includes the extra distance needed to detour around walls.

    2. B

      Ignoring walls cannot make its estimate greater than the actual route cost.

    3. C

      It assigns a value of zero to every state adjacent to a wall.

    4. D

      It always gives the exact shortest path through the maze.

    Correct answer
    B

    Ignoring walls cannot make its estimate greater than the actual route cost.

    Explanation

    Manhattan distance ignores walls. Since walls can require extra movement but cannot make the actual path shorter than the unobstructed grid distance, the estimate is no greater than the true cost.

  21. 21

    What is the defining choice made by Greedy Search when selecting from the fringe?

    1. A

      It selects the node that has been on the fringe the longest.

    2. B

      It selects the node with the lowest heuristic estimate to a goal.

    3. C

      It selects the node with the lowest accumulated path cost.

    4. D

      It selects the node with the greatest number of successors.

    Correct answer
    B

    It selects the node with the lowest heuristic estimate to a goal.

    Explanation

    Greedy Search chooses the fringe node that appears closest to a goal according to the heuristic, without accounting for the path cost already incurred.

  22. 22

    A Greedy Search heuristic estimates only the remaining distance. What important information does Greedy Search ignore?

    1. A

      The cost already accumulated along the path to a state

    2. B

      Which actions are available from a state

    3. C

      Whether the state is part of the search problem

    4. D

      Whether a state satisfies the goal test

    Correct answer
    A

    The cost already accumulated along the path to a state

    Explanation

    Greedy Search orders nodes by their heuristic alone, so it ignores the cost already incurred to reach them.

  23. 23

    On a city map, Greedy Search chooses a route that moves closer to the destination by straight-line distance but has a high-cost step. Why might it choose that route over a cheaper alternative?

    1. A

      It rejects every route that does not immediately reach the destination.

    2. B

      It ranks the estimated remaining distance but does not include the cost of the step already taken.

    3. C

      It calculates the exact total cost before expanding any city.

    4. D

      It is required to choose the path with the greatest number of road segments.

    Correct answer
    B

    It ranks the estimated remaining distance but does not include the cost of the step already taken.

    Explanation

    Because Greedy Search uses only the heuristic, a costly action that appears to move closer to the goal can be preferred over a cheaper route that looks less promising by that estimate.

  24. 24

    What is a common failure mode when Greedy Search follows a promising-looking sequence of states?

    1. A

      It must expand all reachable states before it can find any goal.

    2. B

      It becomes identical to breadth-first search whenever a goal exists.

    3. C

      It always revisits every state before selecting another one.

    4. D

      It may pursue a costly route and neglect better alternatives still on the fringe.

    Correct answer
    D

    It may pursue a costly route and neglect better alternatives still on the fringe.

    Explanation

    Greedy Search can go down a costly or misleading path because it does not compare accumulated costs, leaving better alternatives on the fringe unexpanded.

  25. 25

    Which description best captures Greedy Search's worst-case behavior when guided by a poor heuristic?

    1. A

      It always expands nodes in increasing path-cost order.

    2. B

      It stops immediately when its first successor is generated.

    3. C

      It can behave like badly guided depth-first search.

    4. D

      It becomes a guaranteed optimal uniform-cost search.

    Correct answer
    C

    It can behave like badly guided depth-first search.

    Explanation

    A poor heuristic can direct Greedy Search along unpromising paths, making it behave like badly guided depth-first search and potentially explore many irrelevant states.

  26. 26

    In a maze, a state one step to the right of the start remains on Greedy Search's fringe but is never expanded. What best explains this?

    1. A

      Greedy Search is required to expand states from left to right.

    2. B

      The state cannot be generated by the maze's successor function.

    3. C

      Its heuristic value is less favorable than the values of states expanded first, including the goal.

    4. D

      Greedy Search removes every state that is one step from the start.

    Correct answer
    C

    Its heuristic value is less favorable than the values of states expanded first, including the goal.

    Explanation

    A fringe node can remain unexpanded if other nodes have better heuristic values. Greedy Search may expand a goal before that less-favored node gets selected.

  27. 27

    What can Greedy Search achieve when its heuristic is useful, even though its path may not be optimal?

    1. A

      It may find a goal quickly while doing less search work.

    2. B

      It expands every reachable state in equal measure.

    3. C

      It avoids using any goal test until the entire fringe is empty.

    4. D

      It guarantees the least-cost path while doing less search work.

    Correct answer
    A

    It may find a goal quickly while doing less search work.

    Explanation

    A useful heuristic can direct Greedy Search toward a goal quickly and reduce expansions, but this does not guarantee that the path found is least-cost.

  28. 28

    How does A* combine the information used by uniform-cost and Greedy Search?

    1. A

      It uses only the estimated remaining cost.

    2. B

      It uses accumulated path cost minus estimated remaining cost.

    3. C

      It uses only the number of actions available at the current state.

    4. D

      It uses accumulated path cost plus estimated remaining cost.

    Correct answer
    D

    It uses accumulated path cost plus estimated remaining cost.

    Explanation

    A* ranks nodes using f(n)=g(n)+h(n)f(n) = g(n) + h(n)f(n)=g(n)+h(n), where g(n)g(n)g(n) is the cost so far and h(n)h(n)h(n) estimates the remaining cost.

  29. 29

    In A*, what does g(n)g(n)g(n) represent?

    1. A

      The sum of all heuristic values in the search tree

    2. B

      The number of nodes remaining on the fringe

    3. C

      The accumulated cost of the path from the start to node nnn

    4. D

      The estimated cost from node nnn to a goal

    Correct answer
    C

    The accumulated cost of the path from the start to node nnn

    Explanation

    The backward cost g(n)g(n)g(n) is the sum of action costs incurred so far on the path from the start to node nnn.

  30. 30

    In A*, what does h(n)h(n)h(n) represent?

    1. A

      The total cost of the cheapest path already found

    2. B

      The estimated remaining cost from node nnn to a goal

    3. C

      The exact cost already paid to reach node nnn

    4. D

      The number of times node nnn has been generated

    Correct answer
    B

    The estimated remaining cost from node nnn to a goal

    Explanation

    The heuristic h(n)h(n)h(n) estimates the cost still needed to reach a goal from node nnn.

  31. 31

    Why can A* expand fewer nodes than uniform-cost search while still finding an optimal path under suitable conditions?

    1. A

      It uses a heuristic to favor promising directions while retaining accumulated path cost.

    2. B

      It ignores all paths that do not move directly toward the goal.

    3. C

      It reduces every action cost to one.

    4. D

      It always expands the goal as soon as it is generated.

    Correct answer
    A

    It uses a heuristic to favor promising directions while retaining accumulated path cost.

    Explanation

    A* uses both the cost already incurred and an estimate of remaining cost. A useful admissible heuristic can direct the search toward the goal without sacrificing optimality.

  32. 32

    Why is it generally incorrect for A* to stop as soon as a goal node is added to the fringe?

    1. A

      A goal node cannot be identified until every state has been expanded.

    2. B

      Another path to a goal may still be on the fringe with a lower total cost.

    3. C

      A* can only test goals after the fringe becomes empty.

    4. D

      The heuristic at a goal is always larger than its path cost.

    Correct answer
    B

    Another path to a goal may still be on the fringe with a lower total cost.

    Explanation

    A newly generated goal is not necessarily the cheapest one. A less costly path may still be on the fringe and must be considered before declaring success.

  33. 33

    When should A* declare success for the usual priority-queue search procedure?

    1. A

      When a goal is removed from the fringe for expansion

    2. B

      When every node at the current depth is generated

    3. C

      When a goal is generated as a successor

    4. D

      When the first non-goal node is expanded

    Correct answer
    A

    When a goal is removed from the fringe for expansion

    Explanation

    A* should declare success when a goal is dequeued, or popped from the fringe, not merely when it is enqueued. A cheaper goal path may still be waiting on the fringe.

  34. 34

    A* has a fringe node leading to a goal with total estimated cost 555 and another node with an estimated route that can produce a goal at cost 444. What should the algorithm do before declaring success for the cost-555 goal?

    1. A

      Discard the cost-444 candidate because it is not already a goal.

    2. B

      Stop immediately because the cost-555 goal was generated first.

    3. C

      Expand the cost-444 candidate because it has the lower priority value.

    4. D

      Choose randomly because both candidates could lead to goals.

    Correct answer
    C

    Expand the cost-444 candidate because it has the lower priority value.

    Explanation

    A* selects the lowest-priority fringe node. The cost-444 candidate must be processed before the cost-555 goal can safely be declared the solution.

  35. 35

    Can A* be assumed to find an optimal solution for every heuristic?

    1. A

      No, because A* never checks whether a node is a goal.

    2. B

      Yes, provided the search problem has a finite number of states.

    3. C

      No, optimality depends on conditions such as heuristic admissibility for tree search.

    4. D

      Yes, because combining path cost and heuristic always guarantees optimality.

    Correct answer
    C

    No, optimality depends on conditions such as heuristic admissibility for tree search.

    Explanation

    A* is not automatically optimal for arbitrary heuristics. For tree search, an admissible heuristic is a sufficient condition for optimality.

  36. 36

    What is the risk of using a heuristic that overestimates the remaining cost?

    1. A

      All accumulated path costs are reset to zero.

    2. B

      Promising low-cost paths may stay on the fringe too long, allowing a suboptimal goal to be selected first.

    3. C

      Every goal state will receive a negative heuristic value.

    4. D

      The search becomes identical to breadth-first search.

    Correct answer
    B

    Promising low-cost paths may stay on the fringe too long, allowing a suboptimal goal to be selected first.

    Explanation

    An overestimate can make a promising partial path's priority look too high. A* may then select a suboptimal goal before expanding the better path.

  37. 37

    In the optimality argument for A* tree search with an admissible heuristic, why is an optimal goal node aaa prioritized before a suboptimal goal node bbb?

    1. A

      An ancestor of aaa on the fringe has an fff-value no greater than f(a)f(a)f(a), while f(a)<f(b)f(a) < f(b)f(a)<f(b).

    2. B

      The heuristic at every ancestor of aaa equals the total cost of the search.

    3. C

      The goal test always returns true for aaa before it checks bbb.

    4. D

      Every ancestor of aaa has more successors than bbb.

    Correct answer
    A

    An ancestor of aaa on the fringe has an fff-value no greater than f(a)f(a)f(a), while f(a)<f(b)f(a) < f(b)f(a)<f(b).

    Explanation

    If bbb is on the fringe before aaa has been expanded, some ancestor nnn of aaa must also be on the fringe. Admissibility gives f(n)≤f(a)f(n) \leq f(a)f(n)≤f(a), and optimality of aaa gives f(a)<f(b)f(a) < f(b)f(a)<f(b). Thus the path toward aaa is expanded before bbb.

  38. 38

    Why is f(a)f(a)f(a) equal to the path cost g(a)g(a)g(a) when aaa is a goal node in the A* optimality argument?

    1. A

      A* excludes the heuristic from its priority after a goal is generated.

    2. B

      The path cost at every goal is zero, so f(a)=h(a)f(a) = h(a)f(a)=h(a).

    3. C

      The heuristic at a goal is zero, so f(a)=g(a)+h(a)=g(a)f(a) = g(a) + h(a) = g(a)f(a)=g(a)+h(a)=g(a).

    4. D

      The heuristic at a goal equals the number of actions in the path.

    Correct answer
    C

    The heuristic at a goal is zero, so f(a)=g(a)+h(a)=g(a)f(a) = g(a) + h(a) = g(a)f(a)=g(a)+h(a)=g(a).

    Explanation

    A goal has no remaining cost to reach a goal, so its heuristic is zero. Therefore its fff-value, g(a)+h(a)g(a) + h(a)g(a)+h(a), equals its path cost g(a)g(a)g(a).

  39. 39

    What does the A* tree-search optimality proof treat as a node?

    1. A

      A collection of all goals in the problem

    2. B

      A path of actions and states from the start, possibly ending at a goal

    3. C

      A heuristic value with no associated state

    4. D

      A state alone, with all paths to that state merged

    Correct answer
    B

    A path of actions and states from the start, possibly ending at a goal

    Explanation

    In a search tree, a node encodes a particular path from the start. Different paths to the same state can therefore be distinct nodes, including distinct goal nodes.

  40. 40

    Why is the zero heuristic admissible?

    1. A

      It equals the exact remaining cost in every problem.

    2. B

      It never exceeds the nonnegative true remaining cost.

    3. C

      It orders nodes by the number of available actions.

    4. D

      It makes all goal tests return true.

    Correct answer
    B

    It never exceeds the nonnegative true remaining cost.

    Explanation

    A zero estimate is no greater than the actual remaining cost, so it is admissible. With h(n)=0h(n)=0h(n)=0, A* behaves like uniform-cost search.

  41. 41

    Why might an admissible heuristic that is not very informative still produce an optimal A* result but save little computation?

    1. A

      A weak estimate causes the goal test to run less often.

    2. B

      Admissibility makes the heuristic equal to the true cost, but increases queue operations.

    3. C

      Admissibility preserves the optimality condition, but a weak estimate may not guide expansion effectively.

    4. D

      A* ignores the heuristic whenever it is admissible.

    Correct answer
    C

    Admissibility preserves the optimality condition, but a weak estimate may not guide expansion effectively.

    Explanation

    Admissibility concerns whether the heuristic overestimates, not how close it is to the true cost. A weak admissible heuristic can preserve optimality while offering little guidance, as with the zero heuristic.

  42. 42

    In the eight-puzzle problem, which description matches the state space?

    1. A

      All possible configurations of the tiles and empty space

    2. B

      The sequence of tile moves without the board configuration

    3. C

      Only the configurations that have already been visited

    4. D

      The set of possible heuristic values for the empty space

    Correct answer
    A

    All possible configurations of the tiles and empty space

    Explanation

    An eight-puzzle state records a configuration of the board. The possible configurations form its state space.

  43. 43

    In the eight-puzzle formulation described, what is a natural action?

    1. A

      Move any tile to any board position.

    2. B

      Move a tile into the empty position.

    3. C

      Exchange two numbered tiles regardless of their positions.

    4. D

      Rotate the entire board without moving tiles.

    Correct answer
    B

    Move a tile into the empty position.

    Explanation

    An action moves a tile into the empty spot, equivalently moving the empty spot around the board.

  44. 44

    If each eight-puzzle tile move has cost one, what is the cost of a plan?

    1. A

      The greatest distance moved by any one tile

    2. B

      The number of tile moves in the plan

    3. C

      The number of misplaced tiles in the final state

    4. D

      The number of empty spaces visited

    Correct answer
    B

    The number of tile moves in the plan

    Explanation

    When every tile move costs one, the path cost is the sum of those action costs, which equals the number of moves.

  45. 45

    Why is the number of misplaced tiles an admissible eight-puzzle heuristic when a tile move costs one?

    1. A

      The empty position must move once for every misplaced tile.

    2. B

      Every misplaced tile is corrected by exactly one move, so the count is always exact.

    3. C

      Every misplaced tile must move at least once, so the count cannot exceed the required number of moves.

    4. D

      Tiles in correct positions must also move before any goal can be reached.

    Correct answer
    C

    Every misplaced tile must move at least once, so the count cannot exceed the required number of moves.

    Explanation

    Each tile that is out of place must undergo at least one move. Additional moves may be needed, so the number of misplaced tiles is a lower bound on the remaining cost.

  46. 46

    What is the relaxed-problem interpretation of the misplaced-tiles heuristic?

    1. A

      Imagine each tile can be picked up and placed directly in its destination.

    2. B

      Imagine all tiles must move together as one unit.

    3. C

      Imagine every tile move has a cost greater than one.

    4. D

      Imagine the empty position cannot move.

    Correct answer
    A

    Imagine each tile can be picked up and placed directly in its destination.

    Explanation

    If a tile could be placed directly at its destination without constraints from other tiles, the number of actions needed would be the number of misplaced tiles. This easier problem provides a lower-bound heuristic for the original puzzle.

  47. 47

    What does total Manhattan distance sum in the eight-puzzle?

    1. A

      Each tile's grid distance from its current position to its destination

    2. B

      The number of moves each tile has already made

    3. C

      The straight-line distance from the board center to each tile

    4. D

      The number of other tiles between each tile and the empty space

    Correct answer
    A

    Each tile's grid distance from its current position to its destination

    Explanation

    Total Manhattan distance sums the grid-aligned distance each tile must travel from its current position to its goal position.

  48. 48

    Why is total Manhattan distance admissible for the eight-puzzle?

    1. A

      Each tile must move at least its Manhattan distance, and other tiles cannot make it require fewer moves.

    2. B

      It includes every interaction between tiles and therefore equals the exact solution cost.

    3. C

      It ignores tile movement and measures only the empty position.

    4. D

      It assumes tiles can move diagonally, producing an overestimate.

    Correct answer
    A

    Each tile must move at least its Manhattan distance, and other tiles cannot make it require fewer moves.

    Explanation

    Each tile must undergo at least the number of grid steps given by its Manhattan distance. Summing these required steps gives a lower bound on the puzzle's remaining move cost.

  49. 49

    How does total Manhattan distance differ from the misplaced-tiles heuristic?

    1. A

      It uses the exact optimal path cost instead of an estimate.

    2. B

      It counts only tiles already in their goal positions.

    3. C

      It estimates the cost of moving the empty space but not the tiles.

    4. D

      It accounts for how far each misplaced tile is from its destination, not just whether it is misplaced.

    Correct answer
    D

    It accounts for how far each misplaced tile is from its destination, not just whether it is misplaced.

    Explanation

    The misplaced-tiles heuristic gives each misplaced tile a basic count, while total Manhattan distance reflects the number of grid steps each tile remains from its destination.

  50. 50

    What is the trade-off involved in choosing a more accurate heuristic?

    1. A

      It always increases node expansions but is cheaper to calculate.

    2. B

      It removes the need to define action costs.

    3. C

      It guarantees zero computation during search.

    4. D

      It may reduce node expansions but can require more computation to calculate.

    Correct answer
    D

    It may reduce node expansions but can require more computation to calculate.

    Explanation

    A heuristic closer to the true remaining cost can reduce the number of nodes expanded, but computing a more accurate heuristic may itself require more work.

  51. 51

    If two admissible heuristics h1h_1h1​ and h2h_2h2​ are available for the same problem, why is h(n)=max⁡(h1(n),h2(n))h(n)=\max(h_1(n),h_2(n))h(n)=max(h1​(n),h2​(n)) useful?

    1. A

      It makes the search behave like depth-first search.

    2. B

      It remains admissible and is at least as informative as either heuristic at each node.

    3. C

      It becomes inadmissible because it always adds the two estimates.

    4. D

      It is guaranteed to equal the exact remaining cost.

    Correct answer
    B

    It remains admissible and is at least as informative as either heuristic at each node.

    Explanation

    The maximum of two lower bounds remains a lower bound, so it is admissible. It is no smaller than either estimate, making it at least as informative point by point.

  52. 52

    What does it mean for one heuristic to dominate another in the ordering described?

    1. A

      It gives a value at least as high at every node.

    2. B

      It requires fewer actions to compute at every node.

    3. C

      It gives a lower value at every node.

    4. D

      It equals the other heuristic at every goal only.

    Correct answer
    A

    It gives a value at least as high at every node.

    Explanation

    A heuristic dominates another when its value is at least as high at every node. Among admissible heuristics, a higher lower-bound estimate is generally more informative.

  53. 53

    Why can two heuristics fail to be ordered by dominance?

    1. A

      Dominance applies only to heuristics with identical formulas.

    2. B

      One must be exact and the other inadmissible.

    3. C

      One can be higher at some nodes and lower at others.

    4. D

      Both must assign zero to every node.

    Correct answer
    C

    One can be higher at some nodes and lower at others.

    Explanation

    Dominance requires one heuristic to be at least as high at every node. If their values cross, neither dominates the other under this ordering.

  54. 54

    What does Graph Search add to the basic tree-search procedure?

    1. A

      A requirement to expand every generated path

    2. B

      A rule that removes all heuristic estimates from the fringe

    3. C

      A new goal test that replaces the successor function

    4. D

      A record of states already expanded, used to avoid expanding them again

    Correct answer
    D

    A record of states already expanded, used to avoid expanding them again

    Explanation

    Graph Search keeps track of expanded states, commonly in a closed set, and skips successor expansion for a state that has already been expanded.

  55. 55

    Why can Graph Search be more efficient than Tree Search in a problem where several paths reach the same state?

    1. A

      It merges all distinct states into one state.

    2. B

      It removes the need to generate successors for any state.

    3. C

      It guarantees that each state has only one possible predecessor.

    4. D

      It can avoid repeatedly expanding the same state through different paths.

    Correct answer
    D

    It can avoid repeatedly expanding the same state through different paths.

    Explanation

    A search tree can contain repeated occurrences of a state reached by different paths. Graph Search can skip repeat expansions, avoiding redundant work and potentially large growth.

  56. 56

    In breadth-first search, why should an already expanded state be skipped if it is reached again by a longer path?

    1. A

      Breadth-first search cannot store states that have multiple predecessors.

    2. B

      The goal test is no longer valid after a state has been expanded.

    3. C

      The longer path must lead to a different goal state.

    4. D

      The earlier path reached it in fewer steps, so expanding it again would only repeat downstream work at greater depth.

    Correct answer
    D

    The earlier path reached it in fewer steps, so expanding it again would only repeat downstream work at greater depth.

    Explanation

    Breadth-first search reaches states in increasing numbers of steps. If the state was already expanded through a shorter path, exploring its successors again through a longer path cannot improve those routes.

  57. 57

    Why should the expanded-state record be implemented as a set rather than a list?

    1. A

      A set allows efficient membership checks for whether a state has already been expanded.

    2. B

      A set stores the order in which every path was generated.

    3. C

      A list cannot store states that have successors.

    4. D

      A set automatically guarantees that all paths have equal cost.

    Correct answer
    A

    A set allows efficient membership checks for whether a state has already been expanded.

    Explanation

    Graph Search repeatedly checks whether a state is already expanded. A set supports efficient membership checks; scanning a list can make those checks—and the algorithm—slow.

  58. 58

    Why does skipping repeated expansions preserve completeness in the basic Graph Search reasoning?

    1. A

      The skipped state has already been expanded through another path, so its successors have already been considered.

    2. B

      A complete search never needs to expand a state that has successors.

    3. C

      Graph Search adds every possible goal to the fringe at initialization.

    4. D

      The skipped state must be a goal state.

    Correct answer
    A

    The skipped state has already been expanded through another path, so its successors have already been considered.

    Explanation

    The excluded tree branches lead to states whose successors have already been explored elsewhere. Skipping redundant expansions therefore does not remove the only access to a reachable goal.

  59. 59

    Why can Graph Search with A* lose optimality even when the heuristic is admissible?

    1. A

      It always removes the goal test from the search procedure.

    2. B

      Admissibility forces every heuristic value to be too high.

    3. C

      It may expand a state first by a more costly path and later refuse to re-expand it by a cheaper path.

    4. D

      Graph Search expands states only in decreasing path-cost order.

    Correct answer
    C

    It may expand a state first by a more costly path and later refuse to re-expand it by a cheaper path.

    Explanation

    If a state is closed after being reached along a costly path, Graph Search may skip a later, cheaper route to that state. Its descendants may then be explored using a suboptimal path cost.

  60. 60

    What additional heuristic property is required for the stated A* Graph Search optimality guarantee?

    1. A

      Strict positivity at every state

    2. B

      Exactness at every non-goal state

    3. C

      Consistency

    4. D

      Equality between heuristic and accumulated cost

    Correct answer
    C

    Consistency

    Explanation

    For the stated Graph Search guarantee, the heuristic must be consistent, a stronger condition than admissibility.

  61. 61

    What local relationship does consistency require between a state, its successor, and the action cost?

    1. A

      The successor's heuristic must always be zero.

    2. B

      The heuristic at the state is at least the action cost plus the successor's heuristic.

    3. C

      The action cost must equal the heuristic at both states.

    4. D

      The heuristic at the state is no greater than the action cost plus the successor's heuristic.

    Correct answer
    D

    The heuristic at the state is no greater than the action cost plus the successor's heuristic.

    Explanation

    Consistency requires h(n)≤c(n,n′)+h(n′)h(n) \leq c(n,n') + h(n')h(n)≤c(n,n′)+h(n′) for a transition from nnn to successor n′n'n′ with cost c(n,n′)c(n,n')c(n,n′).

  62. 62

    A heuristic assigns 444 to a state, 111 to its successor, and the transition costs 111. Why is this assignment inconsistent?

    1. A

      The first estimate exceeds the transition cost plus the successor estimate: 4>1+14 > 1 + 14>1+1.

    2. B

      The first estimate is too small compared with the successor estimate.

    3. C

      The transition cost must be greater than both heuristic values.

    4. D

      The successor estimate is not zero, as consistency requires.

    Correct answer
    A

    The first estimate exceeds the transition cost plus the successor estimate: 4>1+14 > 1 + 14>1+1.

    Explanation

    Consistency requires the first heuristic to be no greater than the step cost plus the successor's heuristic. Here that would require 4≤1+14 \leq 1 + 14≤1+1, which is false.

  63. 63

    What happens to the A* value f=g+hf=g+hf=g+h along a path when the heuristic is consistent?

    1. A

      It never decreases as the search moves to a successor.

    2. B

      It alternates between increasing and decreasing at each step.

    3. C

      It remains zero until a goal is reached.

    4. D

      It decreases by exactly the action cost at every step.

    Correct answer
    A

    It never decreases as the search moves to a successor.

    Explanation

    Consistency gives h(n)≤c(n,n′)+h(n′)h(n) \leq c(n,n') + h(n')h(n)≤c(n,n′)+h(n′). Adding the path-cost relationship yields f(n)≤f(n′)f(n) \leq f(n')f(n)≤f(n′), so fff does not decrease along a path.

  64. 64

    Why does consistency help ensure A* Graph Search finds an optimal path when it expands a goal?

    1. A

      Consistency makes every path to a goal have the same cost.

    2. B

      Consistency ensures all states are goals before any are expanded.

    3. C

      Since fff decreases along paths, the goal is always expanded first.

    4. D

      Since fff does not decrease along paths, a cheaper solution cannot emerge later from a path with a higher fringe priority.

    Correct answer
    D

    Since fff does not decrease along paths, a cheaper solution cannot emerge later from a path with a higher fringe priority.

    Explanation

    With a consistent heuristic, fff is nondecreasing along paths. When a goal is removed from the fringe, paths with lower priority have already been considered, and extending a higher-priority path cannot produce a lower-cost solution.

Question 1 of 64
Question 1 of 64

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent