AI Module2
AI Module2
PROBLEM SOLVING
3.1 PROBLEM-SOLVING AGENTS
• Goal formulation, based on the current situation and the agent's
performance measure, is the first step in problem solving.
• Problem formulation is the process of deciding what actions and
states to consider, given a goal.
An agent with several immediate options of unknown value can decide
what to do by first examining future actions that eventually lead to
states of known value.
• The process of looking for a sequence of actions that reaches the goal is
called search.
• A search algorithm takes a problem as input and returns a solution in
the form of an action sequence.
• Once a solution is found, the actions it recommends can be carried out.
This is called the execution phase.
• Thus, a simple “formulate, search, execute” design for the agent.
• After formulating a goal and a problem to solve, the agent calls a search
procedure to solve it.
• It then uses the solution to guide its actions, doing whatever the
solution recommends as the next thing to do—typically, the first action
of the sequence—and then removing that step from the sequence.
• Once the solution has been executed, the agent will formulate a new
goal.
3.1.1 Well-defined problems and
solutions