Solving Problems by Searching Flashcards
A imagine that our searching is done on a ______ _____ or ______ _____
search tree, search graph
A node in the search tree contains the ______ of the environment
state
We will usually have _______ nodes in non-trivial search trees
many
Since trees are gargantuan, we assume the tree is expanded _________ as we go
incrementally
In search trees, we have some way of recognizing ______ nodes
goal
It is very difficult to find optimal solution to the __-puzzle
25
There is no way to find optimal solution to the __-puzzle
36
A problem has at least 5 parts. What are they?
- Initial state
- Actions that can be executed
- Transition model
- Goal test
- Path cost
An initial state describes where the ____ starts
agent
A __________ model describes how the state changes when an action is applied to it
transition
Describe the basic pseudocode for a tree search
function tree-search(problem) frontier
Describe the basic pseudocode for a graph search
function graph-search(problem) frontier
What are the 4 ways in which search algorithm performance is evaluated in?
- Completeness
- Optimality
- Time Complexity
- Space Complexity
To create BFS, we implement frontier as a ______
queue
BFS is _______ and _______ by definition, but has poor ______ complexity
complete, optimal, space
What is the total number of nodes generated in BFS at depth d with branching factor b?
b^d
In practice, BFS’ major problem is that it runs out of ______
memory
_______-____ Search is BFS but with !1 path costs
Uniform-cost
Uniform-cost search works better than BFS because…
BFS stops as soon as it removes a goal from frontier, but Uniform-cost search checks for a goal with a cheaper path cost
DFS always expands the _______ node in search tree
deepest
DFS’ queue is implemented as a _______ instead of a queue
stack
DFS is not ______ because it may find goal nodes further from the root
optimal
DFS’ major advantage over BFS is ______ __________ as it only stores one root-to-node path
space complexity
What is depth-limited search?
DFS plus a number L that indicates the max depth to be searched