CSC266 Artificial Intelligence

Artificial IntelligenceTU Board 2079

What is state space representation? Illustrate with one example.

Answer

State‑space representation is a formal model that describes all possible configurations (states) of a problem and the permissible transitions (actions) between them. Each node in the graph denotes a unique state of the system, while each directed edge denotes an action that transforms one state into another. The complete set of nodes and edges constitutes the state space; it is the foundation on which search algorithms (e.g., breadth‑first search, A*) operate.

Key components

Component Description
State A complete description of the problem at a given instant (e.g., arrangement of tiles in the 8‑puzzle).
Action An operator that changes the current state to a successor state (e.g., moving the blank tile left).
Successor function A mapping that returns all states reachable from state by a single action.
Goal test A predicate that determines whether a state satisfies the problem’s objective.
Path cost A numeric value associated with a sequence of actions, used to evaluate solution quality.

Illustrative example – 3‑tile sliding puzzle

Consider a miniature sliding‑tile puzzle with three numbered tiles (1, 2, 3) and a blank (0) on a board. The initial configuration and the goal configuration are:

From the blank can move Left (L) or Up (U), generating two successor states and . From each of these, a single move reaches the goal state . The resulting state‑space graph is shown below.

LUULS0S1S2S3
State‑space graph for the 3‑tile sliding puzzle. Nodes represent board configurations; arrows are labeled with the move that produces the successor.

Interpretation of the figure

  • S0 – initial board
  • S1 – after moving the blank left: (which is already the goal in this tiny instance)
  • S2 – after moving the blank up:
  • S3 – goal board

The graph compactly captures every reachable configuration and the actions that connect them. A search algorithm can now traverse this graph from S0 to S3, guaranteeing that any found path corresponds to a valid sequence of moves solving the puzzle.

Discussion

Loading…

More Artificial Intelligence questions

All Artificial Intelligence old questions