1. Home
  2. Explore
  3. Computer Science
  4. Search Algorithms and Intuition

Study methods

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

Search Algorithms and Intuition

  • 48Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Search Foundations
Search is fundamentally about making
, even when maps are used to illustrate it.

48 questions

  1. 1
    Search is fundamentally about making
    _____
    , even when maps are used to illustrate it.
    Hint

    Think about what a problem solver selects while exploring possible actions.

    Answer

    choices

    Explanation

    Search is about the choices made while exploring possibilities; maps are only one way to illustrate those choices.

  2. 2
    Human visual problem solving can quickly find a good route, but a complete theory of intelligence must explain how the
    _____
    contributes to problem solving.
    Hint

    Consider the part of human perception that lets us inspect a map directly.

    Answer

    human visual system

    Explanation

    The human visual system contributes to everyday problem solving, such as finding a pretty good path, but how it does so is not fully understood.

  3. 3
    Unlike people inspecting a map, search programs described in the lecture do not have eyes or
    _____
    grounded algorithms.
    Hint

    What kind of grounding comes from direct visual perception?

    Answer

    visually

    Explanation

    The programs lack eyes and visually grounded algorithms, so they must search by other means.

  4. 4
    The British Museum approach finds
    _____
    possible path rather than stopping after finding one route.
    Hint

    This approach is exhaustive rather than selective.

    Answer

    every

    Explanation

    A British Museum search finds every possible path, so it cannot save much work by being clever about which paths to explore.

  5. 5
    When constructing a search tree for a quiz, children are listed in
    _____
    order to make the procedure orderly.
    Hint

    This is the ordering used for words in a dictionary.

    Answer

    lexical

    Explanation

    Lexical order provides a consistent convention for listing a node's children in a search tree.

  6. 6
    A valid path cannot revisit a place already on that path; this restriction prevents a path from
    _____
    .
    Hint

    The lecture uses an image of a path looping back onto itself.

    Answer

    biting its own tail

    Explanation

    Paths are not allowed to return to a place that is already on the path, preventing cycles within a path.

  7. 7
    The British Museum algorithm is not improved by avoiding redundant work, because it must still find
    _____
    possible paths.
    Hint

    Its defining feature is exhaustive enumeration.

    Answer

    all

    Explanation

    Since the British Museum algorithm must find everything, avoiding some repeated work does not remove its fundamental exhaustive search.

  8. 8
    Depth-first Search proceeds down one branch as far as it can, following the chosen branch-order convention before exploring alternatives; this is a
    _____
    strategy.
    Hint

    It plunges down one route instead of spreading effort across many routes.

    Answer

    single-minded

    Explanation

    Depth-first Search barrels ahead down a single branch, then considers alternatives if needed.

  9. 9
    When Depth-first Search reaches a dead end, it can return to the most recent point where a choice was made; this is called
    _____
    .
    Hint

    Think of undoing the latest route choice to try another branch.

    Answer

    backtracking

    Explanation

    Backtracking returns to an earlier decision point and explores a different branch after a dead end.

  10. 10
    Backtracking is treated as an optional add-on to Depth-first Search, although it is usually sensible to use it so the search does not
    _____
    a route to the goal.
    Hint

    Without returning to earlier choices, the search may fail to examine an alternative.

    Answer

    miss

    Explanation

    Depth-first Search without backtracking can plunge down a branch and fail to explore the branch that reaches the goal.

  11. 11
    Breadth-first Search expands paths
    _____
    by level rather than following one path deeply.
    Hint

    It first considers paths of one length, then paths of the next length.

    Answer

    level

    Explanation

    Breadth-first Search builds the search tree level by level and finds a goal when it appears at a level being scanned.

  12. 12
    In the illustrated unweighted map, Breadth-first Search can find a shorter route than a poorly ordered Depth-first Search because it explores
    _____
    paths first.
    Hint

    Which paths have fewer steps from the starting position?

    Answer

    shallower

    Explanation

    By exploring level by level, Breadth-first Search considers paths with fewer steps before deeper paths, so it can find a shorter route in an unweighted graph.

  13. 13
    Breadth-first Search may waste effort by extending different paths that end at the same
    _____
    , even though that place has already been expanded.
    Hint

    The repeated item is a location represented in the search graph.

    Answer

    node

    Explanation

    Without a repeated-state filter, Breadth-first Search may expand paths ending at nodes it has already expanded through another path.

  14. 14
    A search that expands a node only the first time it is the endpoint of an expanded path uses an
    _____
    list to avoid redundant expansion.
    Hint

    The list records places that have already had paths expanded from them.

    Answer

    extended

    Explanation

    The extended list tracks nodes that have already been the final node of an extended path, preventing repeated expansions.

  15. 15
    The extended-list filter can improve Depth-first, Breadth-first, and Hill Climbing Search, but it does not help the
    _____
    algorithm.
    Hint

    This search must enumerate every possible path.

    Answer

    British Museum

    Explanation

    The British Museum algorithm must find every possible path, so the extended-list filter cannot eliminate the need for its exhaustive enumeration.

  16. 16
    Backtracking is not useful for Breadth-first Search in the described framework, because the search already keeps its alternative paths in the
    _____
    .
    Hint

    Breadth-first Search preserves paths to explore instead of retreating along one route.

    Answer

    queue

    Explanation

    Breadth-first Search retains alternative paths in its queue, so the backtracking operation used with a deep single-path exploration is not needed.

  17. 17
    A general search implementation can store paths under consideration in a
    _____
    and repeatedly remove the first path for processing.
    Hint

    It is also described as a line of paths waiting to be explored.

    Answer

    queue

    Explanation

    The queue stores paths under consideration. The algorithm removes a path, checks whether it reaches the goal, and otherwise extends it.

  18. 18
    The basic queue-based search begins with a path containing only the
    _____
    node.
    Hint

    This is the starting position in the map example.

    Answer

    s

    Explanation

    Initialization places a single path, consisting only of the start node s, in the queue.

  19. 19
    After taking the first path from the queue, the algorithm checks whether that path has reached the
    _____
    before extending it.
    Hint

    This is the destination the search is trying to reach.

    Answer

    goal

    Explanation

    The queue-based procedure tests whether the selected path is a winner before extending it with successor paths.

  20. 20
    To make the queue-based procedure behave like Depth-first Search, newly generated paths are placed at the
    _____
    of the queue.
    Hint

    This placement prioritizes exploring the paths just generated.

    Answer

    front

    Explanation

    Putting new paths at the front makes the search continue deeply along the most recently extended path.

  21. 21
    To make the same queue-based procedure behave like Breadth-first Search, newly generated paths are placed at the
    _____
    of the queue.
    Hint

    This lets older, shallower paths be processed first.

    Answer

    back

    Explanation

    Appending new paths to the back preserves level-by-level exploration, which produces Breadth-first Search.

  22. 22
    In the queue-based procedure, if a path is not a goal, the algorithm generates its extensions and places those new paths back on the
    _____
    .
    Hint

    The new possibilities must be stored for later consideration.

    Answer

    queue

    Explanation

    After checking and extending a non-goal path, the algorithm adds the resulting paths to the queue according to its search strategy.

  23. 23
    Changing only where new paths are inserted in the queue can switch the basic procedure between Depth-first and
    _____
    Search.
    Hint

    This strategy appends new paths so earlier levels are processed first.

    Answer

    Breadth-first

    Explanation

    The basic queue procedure stays the same; placing new paths at the front gives Depth-first Search, while placing them at the back gives Breadth-first Search.

  24. 24
    Breadth-first Search is uninformed in the described map example because it has no way to judge whether a node is getting closer to or
    _____
    from the goal.
    Hint

    It does not use a measure of progress toward the destination.

    Answer

    further away

    Explanation

    Breadth-first Search in its basic form does not use heuristic information about distance to the goal, so it may explore unpromising directions.

  25. 25
    Hill Climbing resembles Depth-first Search but breaks choices according to which node appears
    _____
    to the goal.
    Hint

    It uses a measure of progress rather than relying only on lexical order.

    Answer

    closer

    Explanation

    Hill Climbing uses heuristic information about proximity to the goal to choose which branch to pursue.

  26. 26
    If two candidate nodes are equally close to the goal in the illustrated Hill Climbing procedure, the tie is broken using
    _____
    order.
    Hint

    This is the same consistent ordering convention used to list children in the search tree.

    Answer

    lexical

    Explanation

    Hill Climbing uses closeness to the goal to rank choices and lexical order to break ties.

  27. 27
    A search is called
    _____
    when it takes advantage of additional guidance such as estimated distance to the goal.
    Hint

    The search has useful knowledge beyond the bare structure of the graph.

    Answer

    informed

    Explanation

    An informed search uses heuristic information, such as an estimate of how close a node is to the goal.

  28. 28
    Hill Climbing is informed only when the problem provides a useful
    _____
    measurement or other heuristic for progress toward the goal.
    Hint

    The map example uses this quantity to compare candidate nodes.

    Answer

    distance

    Explanation

    Hill Climbing depends on a heuristic measure of closeness. If the problem supplies no such information, this guidance cannot be used.

  29. 29
    Beam Search begins like Breadth-first Search but limits how many paths it keeps at each level; that limit is the
    _____
    width.
    Hint

    The name of the search also names its per-level limit.

    Answer

    beam

    Explanation

    Beam Search restricts consideration to a small fixed number of paths at each level, specified by its beam width.

  30. 30
    At each level, Beam Search retains the paths judged
    _____
    according to the heuristic and discards the rest.
    Hint

    In the map example, the preferred paths are those closest to the destination.

    Answer

    best

    Explanation

    Beam Search keeps only the beam-width number of paths that rank best under the heuristic, such as estimated closeness to the goal.

  31. 31
    In the queue-based implementation, Hill Climbing inserts new paths at the front and
    _____
    them by heuristic value.
    Hint

    The path with the most favorable estimate is placed first.

    Answer

    sorts

    Explanation

    Hill Climbing uses front-sorted insertion, arranging newly generated paths according to their heuristic ranking.

  32. 32
    In the queue-based implementation, Beam Search can keep the best
    _____
    paths rather than depending on where paths are inserted.
    Hint

    This symbol denotes the chosen beam width.

    Answer

    w

    Explanation

    Beam Search retains the w best paths, so the insertion location is less important than selecting the paths that meet the width limit.

  33. 33
    Best-first Search repeatedly works on the leaf node that is currently judged
    _____
    to the goal, even if this means jumping between parts of the tree.
    Hint

    Unlike a strictly depth-first procedure, it can switch to a more promising leaf elsewhere.

    Answer

    closest

    Explanation

    Best-first Search selects the most promising leaf in the search tree, which may cause it to move among different branches.

  34. 34
    In a continuous space, Hill Climbing can fail when it reaches a
    _____
    maximum that is lower than the best point overall.
    Hint

    This peak is best only in its nearby region.

    Answer

    local

    Explanation

    A local maximum can attract Hill Climbing even though a higher maximum exists elsewhere in the space.

  35. 35
    A broad, nearly flat region can stop ordinary Hill Climbing from making progress; the lecture calls this the
    _____
    problem.
    Hint

    The name evokes a narrow object surrounded by a flat area.

    Answer

    telephone pole

    Explanation

    On a flat region, checking nearby directions does not reveal a better step, so the method can fail to make progress. The lecture calls this the telephone pole problem.

  36. 36
    On a ridge running diagonally through a contour map, every tested north, south, east, or west step may appear to go downhill, misleading Hill Climbing into thinking it is at the
    _____
    .
    Hint

    The algorithm mistakes its current position for the highest point.

    Answer

    top

    Explanation

    A ridge can rise along a diagonal while all tested cardinal directions descend, so Hill Climbing may falsely conclude that it has reached the top.

  37. 37
    The ridge problem is especially acute in
    _____
    dimensional spaces, even though the lecture illustrates it in two dimensions.
    Hint

    The problem becomes more concerning as the number of dimensions increases.

    Answer

    high

    Explanation

    The lecture notes that being fooled by a ridge is particularly acute in high-dimensional spaces.

  38. 38
    The ridge example shows that Hill Climbing can be not only stuck but also
    _____
    about whether it has reached a peak.
    Hint

    The algorithm draws an incorrect conclusion from its local directional checks.

    Answer

    fooled

    Explanation

    When every tested direction appears downhill, Hill Climbing may falsely infer that it is at a maximum, even while it is actually on a rising ridge.

  39. 39
    When people make a plan, they evaluate a number of
    _____
    and consider how they might work.
    Hint

    Planning involves considering possible actions or routes.

    Answer

    choices

    Explanation

    Planning can be viewed as a search process in which a person evaluates different choices and their possible outcomes.

  40. 40
    The Genesis system builds an
    _____
    graph while it absorbs a story and related background knowledge.
    Hint

    This graph represents the story enriched with knowledge and inferences.

    Answer

    elaboration

    Explanation

    As the system reads background knowledge and a story, it constructs an elaboration graph that supports further reasoning.

  41. 41
    To work with more natural adult-style stories, the system can use annotations; alternatively, people can rewrite the story in simpler
    _____
    .
    Hint

    This is the simplified-language option contrasted with adding annotations.

    Answer

    third grade English

    Explanation

    The lecture describes two ways to make stories usable: rewrite them in third grade English or annotate a more natural adult-style version.

  42. 42
    The story system includes common-sense knowledge such as the rule that if somebody kills you, you are
    _____
    .
    Hint

    This is the consequence stated by the simple causal rule.

    Answer

    dead

    Explanation

    The system represents common-sense facts, including the rule that a person who is killed is dead.

  43. 43
    To recognize revenge in a story, the system searches the elaboration graph for a pattern specified by its
    _____
    -level knowledge.
    Hint

    This type of knowledge describes higher-level concepts such as revenge.

    Answer

    reflective

    Explanation

    Reflective-level knowledge includes descriptions of concepts such as revenge, which the system searches for in the elaboration graph.

  44. 44
    A higher-level pattern can be found in a story even when some of its details are inferred by if/then rules rather than stated
    _____
    .
    Hint

    The contrast is between direct statements and information inferred by rules.

    Answer

    explicitly

    Explanation

    The revenge pattern can be recognized from a combination of explicit statements and facts produced by knee-jerk if/then rules.

  45. 45
    A Pyrrhic victory begins with apparent success but later brings a harmful
    _____
    for the person who succeeds.
    Hint

    Think about what happens to Macbeth after he achieves his goal.

    Answer

    consequence

    Explanation

    A Pyrrhic victory appears successful at first, but the success eventually leads to a bad consequence.

  46. 46
    In the Macbeth example, becoming king is a Pyrrhic victory because Macbeth eventually gets
    _____
    as a consequence.
    Hint

    The apparent success of gaining the throne leads to this outcome.

    Answer

    killed

    Explanation

    Macbeth wants to be king and succeeds, but he is eventually killed, making the success a Pyrrhic victory.

  47. 47
    The system answers common-sense questions by looking locally at connections in the
    _____
    tree.
    Hint

    This structure is also used by programs that build plans toward objectives.

    Answer

    goal

    Explanation

    For common-sense-level answers, the system looks locally around connections in the goal tree.

  48. 48
    For reflective-level answers, the system reports higher-level thoughts about its own thoughts and identifies which of those thoughts contains the
    _____
    being asked about.
    Hint

    This is the particular event or occurrence mentioned in the question.

    Answer

    incident

    Explanation

    The system reports reflective-level conclusions by finding which higher-level thought includes the incident in question.

1 of 48
Question 1 of 48

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent