Search Algorithms and Intuition
- 55Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What is search, in the broad sense used here?
Search is the exploration of choices made while trying to reach a goal or make a decision; it is not limited to maps.
Or swipe the card
55 cards
What is search, in the broad sense used here?
Search is the exploration of choices made while trying to reach a goal or make a decision; it is not limited to maps.
Why are maps useful for illustrating search?
They make choices and possible routes easy to visualize, even though search applies to many kinds of problems.
What can human vision contribute to finding a path?
People can often use their eyes to find a pretty good path quickly, but the lecture does not explain how the visual system does this.
Why can’t the search procedures discussed simply use the same visual method as people?
The programs have no eyes or visually grounded algorithms, so they must explore choices another way.
How can search be understood as a model of human problem solving?
Planning involves evaluating choices and considering how they might work, which can be modeled as search.
What is the difference between a pretty good path and an optimal path in the examples?
A pretty good path reaches the goal reasonably well; an optimal path is the best possible path. A search may find the former without finding the latter.
What does a search procedure explore?
It explores possible choices, often represented as paths through a search tree.
What is the British Museum approach to search?
It finds every possible path from the starting point rather than stopping after finding one route to the goal.
Why is the British Museum approach considered inefficient?
It explores every possible path, including many paths that are not needed to find a usable route.
Why is cleverness of limited value in a British Museum search?
Because the algorithm must find everything, there is little work to save by choosing a cleverer exploration strategy.
What ordering convention is used when developing search trees for quizzes?
List each node’s children in lexical (alphabetical) order.
What does it mean for a path to “bite its own tail,” and how is this prevented?
It means revisiting a node already on the current path. Paths are not allowed to revisit nodes already on that path.
Why does backtracking not help the British Museum algorithm?
The algorithm must enumerate all possible paths, so finding one route is not a reason to stop or backtrack to seek alternatives.
How does depth-first search choose which path to explore?
It pursues one branch deeply before exploring alternatives, using the chosen ordering convention to select the next branch.
What happens when depth-first search reaches a dead end?
It can backtrack to the most recent point where a choice was made and try another branch.
What are backtracking and backing up in depth-first search?
They are the process of returning to an earlier choice point after reaching a dead end, then exploring a different branch.
Is backtracking always considered part of depth-first search?
No. It is treated as an optional add-on; problem instructions may specify whether to use it.
How does breadth-first search explore a search tree?
It explores paths level by level, examining all paths at one depth before moving to the next.
How does breadth-first search know when it has found a goal path?
It checks the paths at each level and finds a goal when it reaches a level containing one.
What kind of path did breadth-first search find in the illustrated map example?
It found a path, but the path was not necessarily the best one; from a middle starting point it found a shorter route while still exploring unhelpful areas.
Why can ordinary breadth-first search seem unintelligent when searching toward a nearby goal?
It does not know whether a path is getting closer to or farther from the goal, so it may explore distant directions unnecessarily.
What is the shared basic mechanism used to implement different searches?
Maintain a queue of paths under consideration, repeatedly take a path, test it for the goal, extend it if appropriate, and add the resulting paths back to the queue.
How is the queue initialized in the illustrated search algorithm?
With a single path containing only the starting node.
How does queue placement produce depth-first search?
Put newly extended paths at the front of the queue so the search pursues them before older alternatives.
How does queue placement produce breadth-first search?
Put newly extended paths at the back of the queue so older, shallower paths are considered first.
What is the purpose of checking whether a path is a winner before extending it?
If the path has reached the goal, the search can report success instead of extending it further.
What is the extended-node list used for?
It records nodes that have already been the endpoint of an extended path, preventing the search from extending another path to the same endpoint again.
Why can an extended-node list make search more efficient?
It avoids repeatedly exploring paths that reach nodes already extended, reducing duplicate work.
Which search methods can benefit from an extended-node list, and does it help exhaustive search?
It can help depth-first and breadth-first search, but it does not help the British Museum approach, which must find all paths.
What heuristic guides hill-climbing search?
A measure of how close a node appears to be to the goal.
How does hill-climbing search differ from depth-first search?
Both pursue one path deeply, but hill climbing chooses the next node based on closeness to the goal rather than lexical order.
How does hill climbing break a tie between equally promising choices in the illustrated procedure?
It uses lexical order to break the tie.
Why is hill-climbing search called informed search?
It uses heuristic information about progress toward the goal.
Does hill climbing always find an optimal path?
No. It may find a non-optimal path, even when it moves directly toward what appears to be the goal.
What is beam search?
A breadth-first-style search that keeps only a fixed number of the most promising paths at each level.
What does the beam width w specify?
The maximum number of paths retained at each level of beam search.
How does beam search decide which paths to keep?
It ranks paths using heuristic information and retains the w paths judged closest to the goal.
How does beam search relate to breadth-first search?
It proceeds level by level like breadth-first search, but prunes each level to keep only the best w paths.
How can the shared queue mechanism be adapted for hill climbing?
Add newly generated paths to the front and sort them by heuristic closeness to the goal.
How can the shared queue mechanism be adapted for beam search?
Retain only the w best paths according to the heuristic; their queue placement is otherwise unimportant.
What is best-first search?
A search that repeatedly works on the leaf node judged closest to the goal, allowing it to shift among different branches of the search tree.
How does best-first search differ from pursuing one branch deeply?
It can skip from one part of the tree to another, choosing the most promising leaf overall rather than continuing only along the current branch.
What problem can hill climbing encounter when searching a continuous space?
It can become stuck at a local maximum that is lower than the global maximum.
What is the plateau or “telephone pole” problem for hill climbing?
On a flat region, nearby directions provide no useful indication of which way leads upward, so hill climbing can fail to make progress.
How can a narrow ridge mislead hill climbing?
If every tested direction moves downhill from a point on the ridge, the algorithm may falsely conclude it is at a maximum even though the ridge continues upward.
Why can the ridge problem become especially serious in high-dimensional spaces?
The useful direction may not align with any of the limited directions the algorithm tests, making local measurements misleading.
What is the difference between being stuck at a local maximum and being fooled by a ridge?
At a local maximum, progress stops at a genuinely higher-than-neighbors point that is not global; on a ridge, the search may mistake the point for a maximum because its tested directions all appear downhill.
What is an elaboration graph in the story-understanding system?
A representation built from a story together with background knowledge and inferences drawn from it.
How did the system identify revenge in the Macbeth story?
It searched the elaboration graph for a pattern matching its description of revenge, using both explicit story events and events inferred by if/then rules.
What is a Pyrrhic victory, and how does the Macbeth example illustrate it?
It is a success that initially seems beneficial but ultimately brings a damaging consequence. Macbeth becomes king, but is eventually killed as a consequence.
What kinds of knowledge did the story system use to analyze Macbeth?
It used common-sense knowledge, such as that a person who is killed is dead, and reflective-level knowledge about concepts such as revenge.
How did the system answer a question using common-sense knowledge?
It examined local connections in the goal tree to identify the common-sense explanation associated with the event.
How did the system answer a question using reflective-level knowledge?
It reported higher-level patterns found by searches through the story’s elaboration graph, such as revenge or Pyrrhic victory.
How can story information be made usable by the system?
People can rewrite a story in simpler language or annotate a more natural version so the system can interpret it.
How can search support humanities questions about a story?
It can find higher-level patterns in the story and use them to answer questions about concepts such as revenge, success, or a Pyrrhic victory.

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