Searching for Solutions Flashcards
searching
just thinking about trying each possible action in every possible state and stopping early if you find the goal
problem state
data structure describing the configuration of all the elements of the problem that can change or be affected by actions in the problem environment
What are vertices in the state space?
problem states
search node
data structure containing search info, including (but not only) a problem state
node expansion
generating new legal search nodes from a parent node
frontier
a collection of dearch nodes to be explored
search strategy
the rule that determines which node to remove from the frontier
search tree / search space
a tree of search nodes whose exact shape depends on both the state transition model and the search strategy
graph search
modification to tree search: we store all the states we have previously seen and check for repeats when expanding nodes
partial graph search
- each search node stores a reference to its parent
- we check all ancestors for repeats when expanding a node
How to determine if you should use graph search?
- calculate the number of possible states
- if it is small: repeat states are likely, graph search could save a lot of work
- if it is big: repeat states are unlikely, graph search adds cost for little gain