SearchProblem
:
Encapsulates information needed to solve a search problem for a particular domain
getStartState()
isGoalState(state)
getSuccessors(state)
(successor,stepCost)
pairs.
Where successor
is a successor to state
and stepCost
is the
incremental cost of a solution to go to successor
from state
SearchAgent
: Solves search problems
solve(searchProblem)
searchProblem
and returns
a (solution,cost)
pair, where soltuion
is a solution path starting
from the start state and ending in a goal state, where each state is a successor of the last.
The total cost of the solution is cost