Trisha Shetty (Editor)

State space search

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

State space search is a process used in the field of computer science, including artificial intelligence (AI), in which successive configurations or states of an instance are considered, with the goal of finding a goal state with a desired property.

Problems are often modelled as a state space, a set of states that a problem can be in. The set of states forms a graph where two states are connected if there is an operation that can be performed to transform the first state into the second.

State space search often differs from traditional computer science search methods because the state space is implicit: the typical state space graph is much too large to generate and store in memory. Instead, nodes are generated as they are explored, and typically discarded thereafter. A solution to a combinatorial search instance may consist of the goal state itself, or of a path from some initial state to the goal state.

Representation

In state space search a state space is formally represented as a tuple S :< S , A , A c t i o n ( s ) , R e s u l t ( s , a ) , C o s t ( s , a ) > , in which:

  • S is the set of all possible states;
  • A is the set of possible action, not related to a particular state but regarding all the state space;
  • A c t i o n ( s ) is the function that establish which action is possible to perform in a certain state;
  • R e s u l t ( s , a ) is the function that return the state reached performing action a in state s
  • C o s t ( s , a ) is the cost of performing an action a in state s . In many state spaces is a constant, but this is not true in general.
  • References

    State space search Wikipedia