State Space Representation
State Space Representation
• State space:
– Includes the initial state S and all other states that are
reachable from S by a sequence of actions
– A state space can be organized as a
graph: nodes: states in the space
arcs: actions/operations
• The size of a problem is usually described in terms of the
number of states (or the size of the state space) that are
possible.
– Tic-Tac-Toe has about 3^9 states.
– Checkers has about 10^40 states.
– Rubik's Cube has about 10^19 states.
– Chess has about 10^120 states in a typical game.
Formalizing Search in a State Space
• A state space is a graph, (V, E) where V is a set of nodes and E is a
set of arcs, where each arc is directed from a node to another node
• node: corresponds to a state
–state description
• arc: corresponds to an applicable action/operation.
–the source and destination nodes are called as parent (immediate
predecessor) and child (immediate successor) nodes with respect to each
other
–each arc has a fixed, non-negative cost associated with it, corresponding
to the cost of the action
• node generation: making explicit a node by applying an action
to another node which has been made explicit
• nodeexpansion: generate all children of an explicit node
by applying all applicable operations to that node
• One or more nodes are designated as start nodes
• A goal test predicate is applied to a node to determine if its
associated
state is a goal state
• A solution is a sequence of operations that is associated with a path in
a state space from a start node to a goal node
• The cost of a solution is the sum of the arc costs on the solution path
State Space
• In state space representation of problem start with the initial
state &
wandering through the set of states in search of final state.
• The state space representation forms the basis of most of AI
problems. It’s structure corresponds to structure of problem
solving in two importance ways.
• It allows for formal destination of a problem as the need to
convert some given situation into some desired situation using
a set of permissible operation.
• It permit us to a design the process of solving a particular
problem as a
combination
For
Example:
To keep track of the reasoning process, we draw a state-space for the problem.
The leaves generated after firing of the rules should be stored in WM.
{4,
1)