Uninformed Search Flashcards
What is a state-based model?
Model task as a graph of all possible states.
- A state captures all the relevant information about the past in order to act (optimally)in the future
- Actions correspond to transitions from one state to another
- Solutions are defined as a sequence of steps/actions (path)
What is the general goal of a search problem?
To find a sequence of actions
Basic Search Task Assumptions (not including games)
Fully observable Deterministic Static Discrete Single Agent Solution = sequence of actions
What knowledge doe the agent need?
info needs to be sufficient to describe all relevant aspects for reaching the goal
adequent to describe world state/situation
Fully observable (aka closed world assumption)
All necessary information about a problem domain is accessible so that each state is a complete description of the world; there is no missing info at any point
problem state
representation of all necessary information about the environment
state space
all possible valid configurations of the environment
goal test
defines what it means to have achieved the goal (goal can be task to be accomplished, state to be reached, a set of properties to be satisfied)
What do the actions of the agent need?
given an action and description of the current state, action will specify if action can be applied, what state of world will be after performed (no history needed to compute successor)
Actions need to be
steps that are discrete and individual, so can be treated as instantaneous, sufficient to describe all necessary changes
A state space
directed graph with set of nodes and arcs
each node in state space graph
contains a state description, maybe link to parent node, name of action that generated node
each arc in state space graph
has fixed, positive cost; corresponds to when action is applied to arc’s source node, destination node is resulting state
successor nodes
correspond to all of the legal actions that can be applied to the source node’s state
expanding a node means:
generate all successor nodes
add them and associated arcs to the state-space search tree
state space graph needs
start node(s), goal test, solution (sequence of actions), total cost
state space, inital states, goal states, action function, cost function
Search summary
Solution is an ordered sequence of primitive actions, model task as graph of all possible states and actions, solution as a path, state captures all the relevant info about the past
frontier
generated but not yet expanded states
tree search algorithm
loop do if frontier is empty, return false pick node from frontier if goal node, return solution generate n's successors and add to frontier remove n from frontier