Lably
Skip to content

State space (computer science)

Set of all possible values of a system

  • 3 min read
  • 3 chapters

Related on Lably

Through Computer science, Artificial intelligence and Natural number

For instance, the toy problem Vacuum World has a discrete finite state space in which there are a limited set of configurations that the vacuum and dirt can be in. A "counter" system, where states are the natural numbers starting at 1 and are incremented over time has an infinite discrete state space. The angular position of an undamped pendulum is a continuous (and therefore infinite) state space.

Definition

State spaces are useful in computer science as a simple model of machines. Formally, a state space can be defined as a tuple [N, A, S, G] where:

  • N is a set of states
  • A is a set of arcs connecting the states
  • S is a nonempty subset of N that contains start states
  • G is a nonempty subset of N that contains the goal states.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Computing and communication