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