A problem,
,
is defined by the following elements:
where:
is the state space
is the initial state
is set of actions or operations
is the state transition function
is the cost function
defines the goal to be achieved.
A solution
which induces a state sequence
has an associated cost:
A solution
is optimal if it minimises corresponding cost: