Problem Formulation
Problem Formulation
Involves 4 steps
1. Define the problem precisely. The definition must
comprise of precise specification of the initial
situation as well the final situation with acceptable
solutions to the problem.
2. Analyse the problem.
3. Isolate and represent the task knowledge which is
required to solve the problem.
4. Choose the best problem-solving technique(s)
and apply it (them) to the particular problem.
Problem Definition
Done as a State Space Search
Chess Game, Water Jug Problem
Chess Game
Legal Moves
Position that represents a win
It is not only the play but also the winning condition
which terminates the game
Chess Game
Chess Game
Goal
Opponent does not have a legal move
King is under attack
Practical Difficulties
No person could ever supply a complete set of such rules. It
would take too long and could certainly not be done without
mistakes.
No program could easily handle all those rules. Although a
hashing scheme could be used to find the relevant rules for
each move fairly quickly, storing is in fact a difficulty.
5
Chess Game
Chess Game
White pawn at
Square(file e, rank 2)
AND
Square(file e, rank 3)
is empty
AND
Square(file e, rank 4)
Is empty
10
Problem Description
Therefore, in order to provide a formal description of a problem,
one need to do the following:
1.Define a state space that contains the possible configurations of
the relevant objects.
2.Specify one or more states within that space that describe
possible situations from which the problem solving starts, which
are termed the initial states.
3.Specify one or more states that would be acceptable as
solutions to the problem, which are termed the goal states.
4.Specify a set of rules that describe the actions/operators
available.
The problem can be solved using the rules which can be
combined with appropriate control strategies.
11