6.034 Artificial Intelligence - Recitations, fall 2004 online slides on search

Next:Assumptions Up: Search Previous: Search

Problem-Solving Agent

SimpleProblemSolvingAgent(percept)
   state = UpdateState(state, percept)
   if sequence is empty then
      goal = FormulateGoal(state)
      problem = FormulateProblem(state, g)
      sequence = Search(problem)
   action = First(sequence)
   sequence = Rest(sequence)
   return action