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

  • 63Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Search Foundations
A search problem represents relevant configurations of the world as a set of
.

63 questions

  1. 1
    A search problem represents relevant configurations of the world as a set of
    _____
    .
    Hint

    These represent the configurations that matter for an agent's decisions.

    Answer

    states

  2. 2
    In a search problem, the possible choices an agent can make from a state are called
    _____
    .
    Hint

    These are the decisions available to the agent.

    Answer

    actions

  3. 3
    The function that specifies the state reached and the cost incurred for a state-action pair is the
    _____
    .
    Hint

    It describes what happens after an available action is taken.

    Answer

    successor function

  4. 4
    The state where the agent begins a search problem is the
    _____
    .
    Hint

    It is the initial situation from which search proceeds.

    Answer

    start state

  5. 5
    A test that determines whether a state satisfies the desired condition is the
    _____
    .
    Hint

    It checks whether the search has reached success.

    Answer

    goal test

  6. 6
    In a search tree, a node corresponds to a
    _____
    to a state rather than only to the state itself.
    Hint

    It records how the search arrived at the state.

    Answer

    path

  7. 7
    The cost of a plan is the
    _____
    of the costs of all actions along its path.
    Hint

    Combine the costs incurred at every step.

    Answer

    sum

  8. 8
    The set of search nodes that are ready to be expanded is called the
    _____
    .
    Hint

    It contains candidates waiting for the search strategy to select one.

    Answer

    fringe

  9. 9
    A search algorithm builds the search tree
    _____
    by systematically selecting nodes from the fringe.
    Hint

    Usually the algorithm need not construct the entire tree.

    Answer

    partially

  10. 10
    A search algorithm is optimal when it finds a
    _____
    plan.
    Hint

    It minimizes the total cost of reaching a goal.

    Answer

    least cost

  11. 11
    In pancake flipping, the goal stack has the largest pancake at the bottom and the
    _____
    pancake at the top.
    Hint

    The pancakes are ordered from largest at the bottom to this size at the top.

    Answer

    smallest

  12. 12
    A pancake-flipping action places a spatula beneath a stack segment and flips every pancake
    _____
    the spatula.
    Hint

    The pancakes on one side of the spatula are turned over.

    Answer

    above

  13. 13
    For a stack of four pancakes, there are
    _____
    meaningful spatula positions because placing it between the top two changes nothing.
    Hint

    The useful positions are between pancakes two and three, between three and four, and below the bottom pancake.

    Answer

    three

  14. 14
    The number of distinct arrangements of four different pancakes is
    _____
    .
    Hint

    Count the choices for each successive position: four, then three, then two, then one.

    Answer

    24

  15. 15
    In the pancake-flipping example, the cost of an action is the number of
    _____
    flipped.
    Hint

    The cost reflects how many items the robot must lift during that flip.

    Answer

    pancakes

  16. 16
    Uniform Cost Search selects a fringe node with the lowest accumulated
    _____
    .
    Hint

    It considers the cost already incurred from the start.

    Answer

    path cost

  17. 17
    Uniform Cost Search is complete, meaning it finds a solution whenever
    _____
    .
    Hint

    Completeness concerns whether an existing solution will eventually be found.

    Answer

    a solution exists

  18. 18
    Uniform Cost Search is optimal because it finds a solution with the
    _____
    cost.
    Hint

    It returns the least expensive path to a goal.

    Answer

    lowest

  19. 19
    Because Uniform Cost Search has no information about the goal's direction, it explores
    _____
    in all directions.
    Hint

    Its expansion pattern does not favor states that appear closer to the goal.

    Answer

    equally

  20. 20
    In a grid maze, Uniform Cost Search expands every state whose distance from the start is less than the cost of the
    _____
    path to the goal.
    Hint

    Those states must be considered before the least-cost goal path can be selected.

    Answer

    shortest

  21. 21
    A priority queue can implement a search fringe by assigning priorities according to the algorithm's
    _____
    .
    Hint

    This determines which fringe item is selected next.

    Answer

    strategy

  22. 22
    A heuristic function estimates how close a state is to a
    _____
    .
    Hint

    It provides guidance about the desired destination.

    Answer

    goal

  23. 23
    Unlike the basic search problem definition, using informed search requires designing a heuristic for the particular
    _____
    being solved.
    Hint

    The estimate should reflect the structure of the task at hand.

    Answer

    search problem

  24. 24
    For Pac-Man moving only north, east, south, and west, Manhattan distance is a useful estimate because it reflects
    _____
    movement.
    Hint

    The movement follows rows and columns rather than diagonal lines.

    Answer

    grid

  25. 25
    In a maze, Manhattan distance may underestimate the true route length because it ignores
    _____
    .
    Hint

    These obstacles can force a longer route than the direct grid estimate.

    Answer

    walls

  26. 26
    For a route to Bucharest, the straight-line distance between a city and Bucharest can be computed from their
    _____
    coordinates.
    Hint

    These coordinates locate cities geographically.

    Answer

    GPS

  27. 27
    For pancake flipping, the ID number of the largest pancake still out of place estimates how deep into the stack a necessary flip must
    _____
    .
    Hint

    The misplaced pancake implies that an operation must reach at least its level.

    Answer

    go

  28. 28
    A useful heuristic should be measured in units comparable to the problem's
    _____
    .
    Hint

    For example, an estimate of remaining cost should match the quantity used to evaluate plans.

    Answer

    cost

  29. 29
    A heuristic that gives larger estimates as the search gets closer to the goal may need to be transformed so that its value is
    _____
    at the goal.
    Hint

    At the destination, no remaining cost should be estimated.

    Answer

    0

  30. 30
    Greedy Search selects the fringe node with the lowest
    _____
    value.
    Hint

    It chooses the state that appears closest to a goal.

    Answer

    heuristic

  31. 31
    Unlike A Star Search, Greedy Search ignores the cost already incurred, also called
    _____
    .
    Hint

    This is the accumulated cost from the start to the current node.

    Answer

    backward cost

  32. 32
    Greedy Search can return a suboptimal solution because it may favor a costly step that appears to move closer to the
    _____
    .
    Hint

    The method focuses on estimated remaining distance rather than total plan cost.

    Answer

    goal

  33. 33
    When a heuristic repeatedly points in the wrong direction, Greedy Search can behave like a poorly guided
    _____
    search.
    Hint

    It may keep following one unpromising path rather than comparing total costs.

    Answer

    Depth-first

  34. 34
    In the Romania example, Greedy Search chooses among cities using their straight-line distance to
    _____
    .
    Hint

    This is the destination city in the example.

    Answer

    Bucharest

  35. 35
    A node that Greedy Search leaves on the fringe may never be expanded if the algorithm reaches and expands a
    _____
    first.
    Hint

    The search can terminate before that waiting candidate is selected.

    Answer

    goal

  36. 36
    A Star Search evaluates a node using f=g+hf = g + hf=g+h, where ggg is accumulated path cost and hhh is the
    _____
    estimate.
    Hint

    This term estimates the remaining cost to a goal.

    Answer

    heuristic

  37. 37
    A Star Search combines the cost already incurred with an estimate of the
    _____
    cost remaining.
    Hint

    This part of the evaluation looks from the current state toward the goal.

    Answer

    forward

  38. 38
    A Star should declare success when a goal node is removed from the fringe, or
    _____
    , rather than when it is first added.
    Hint

    Wait until the candidate is selected for expansion, not merely generated.

    Answer

    dequeued

  39. 39
    If A Star stops as soon as a goal is enqueued, it can return a path of cost five even when a path of cost
    _____
    exists.
    Hint

    The cheaper route is discovered after a different goal path has already entered the fringe.

    Answer

    4

  40. 40
    For A Star Tree Search to be guaranteed optimal, its heuristic must be
    _____
    .
    Hint

    The estimate must not overstate the cheapest remaining cost.

    Answer

    admissible

  41. 41
    With a heuristic that is always 000, A Star Search behaves like
    _____
    .
    Hint

    The evaluation then contains only the accumulated path cost.

    Answer

    Uniform Cost Search

  42. 42
    Even with an admissible heuristic, A Star may expand more nodes if the heuristic is not very
    _____
    .
    Hint

    A weak estimate provides little guidance toward the goal.

    Answer

    informative

  43. 43
    A Star's heuristic is admissible when, at every node, its estimate is no greater than the cheapest actual cost from that node to a
    _____
    .
    Hint

    The estimate must be optimistic about the remaining cost.

    Answer

    goal

  44. 44
    An admissible heuristic is called optimistic because it never
    _____
    the true cheapest remaining cost.
    Hint

    Its estimate is always a lower bound or exact value.

    Answer

    overestimates

  45. 45
    For an admissible heuristic, h(n)h(n)h(n) is bounded above by the optimal remaining cost, denoted
    _____
    .
    Hint

    This notation represents the true cheapest cost from node nnn to a goal.

    Answer

    h∗(n)h^*(n)h∗(n)

  46. 46
    Manhattan distance is admissible in a grid maze because it does not exceed the actual cost of a route that may be lengthened by
    _____
    .
    Hint

    The estimate ignores these obstacles.

    Answer

    walls

  47. 47
    For pancake flipping, the ID of the largest pancake still out of place is admissible because at least that many pancakes must be reached by a
    _____
    .
    Hint

    The misplaced pancake cannot be repositioned without an operation that reaches its depth.

    Answer

    flip

  48. 48
    A relaxed-problem heuristic is found by adding actions to make a hypothetical problem less
    _____
    than the original.
    Hint

    The relaxed version allows more ways to act.

    Answer

    constrained

  49. 49
    The optimal solution cost in a relaxed problem is an admissible heuristic because the relaxed problem offers at least as many
    _____
    as the original.
    Hint

    The hypothetical problem gives the solver additional choices.

    Answer

    actions

  50. 50
    In the 8 Puzzle, counting tiles in the wrong position is admissible when each misplaced tile must undergo at least one
    _____
    .
    Hint

    The estimate counts a minimum amount of work needed for each incorrect tile.

    Answer

    action

  51. 51
    The total Manhattan distance heuristic for the 8 Puzzle sums each tile's distance to its destination while relaxing the constraint that tiles
    _____
    each other.
    Hint

    Imagine tiles sliding without blocking one another.

    Answer

    constrain

  52. 52
    For the 8 Puzzle, total Manhattan distance is generally more informative than the misplaced-tile count because it estimates how far each tile must
    _____
    .
    Hint

    It measures more than whether a tile is simply in the wrong place.

    Answer

    move

  53. 53
    For two admissible heuristics, taking their
    _____
    produces another admissible heuristic that is at least as informative as either one.
    Hint

    Choose the larger estimate at each node.

    Answer

    maximum

  54. 54
    Making a heuristic more accurate can reduce node expansions, but may increase the computational cost of
    _____
    the heuristic.
    Hint

    A more sophisticated estimate may require more work before the search can use it.

    Answer

    computing

  55. 55
    In Graph Search, the set of already expanded states is called the
    _____
    set.
    Hint

    It records states whose successors have already been considered.

    Answer

    closed

  56. 56
    Graph Search skips a state if that state has already been
    _____
    .
    Hint

    Its successors have already been generated during an earlier visit.

    Answer

    expanded

  57. 57
    The closed collection should be stored as a set rather than a list to make membership checks more
    _____
    .
    Hint

    The search needs to quickly check whether a state has appeared before.

    Answer

    efficient

  58. 58
    Graph Search remains complete because the portions of the search tree it skips correspond to states already
    _____
    elsewhere.
    Hint

    Skipping a duplicate state does not remove access to a new state.

    Answer

    expanded

  59. 59
    A Star Graph Search can lose optimality if it first expands a state through a more
    _____
    path and later skips a cheaper route to that same state.
    Hint

    The first route may not be the best route to the state.

    Answer

    costly

  60. 60
    For A Star Graph Search, a heuristic must be
    _____
    to guarantee optimality.
    Hint

    This stronger condition ensures local estimates agree with step costs.

    Answer

    consistent

  61. 61
    A heuristic is consistent across an edge from nnn to n′n'n′ when h(n)h(n)h(n) is no greater than the edge cost plus
    _____
    .
    Hint

    The estimate at the next state is combined with the cost of reaching it.

    Answer

    h(n′)h(n')h(n′)

  62. 62
    With a consistent heuristic, the fff value along a path never
    _____
    as search proceeds.
    Hint

    Consistency makes each successor's evaluation at least as large as its predecessor's.

    Answer

    decreases

  63. 63
    With a consistent heuristic, A Star Graph Search can safely stop when it expands a
    _____
    .
    Hint

    At that point, remaining fringe paths cannot provide a cheaper solution.

    Answer

    goal

1 of 63
Question 1 of 63

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent