Learning Objectives
- Be able to describe examples of search problems and how they are represented
- Be able to describe multiple possible state representations for a given search problem
- Practice formalizing some search problems
- Name the components of a search problem
Towers of Hanoi
Demo
State Graph
Examples of Search Problems
-
8-Tile puzzle
-
Route-Finding
Components of a Search Problem
-
State Representation
The state representation is how we describe the current state.
Examples in English, Diagram, Data Structure
-
State Space
The state space is the set of all possible states
-
Actions
Actions are the moves available to an agent solving a search problem.
The action space is the set of all possible moves for the search problem.
-
Transition Function
also called “Transition Model”
The transition function describes what happens when an action is taken from some state .
For deterministic environments (where taking the same action always leads to the same successor state), the transition function has signature
-
Action Cost Function
The action cost function describes the cost associated with each action.
-
Initial State
The initial state is the state that an agent starts at when solving a search problem.
-
Goal State
Goal states are states that an agent attempts to reach. When an agent reaches a goal state, the search problem has been completed, and a solution (a path from the initial state to the goal state) is returned.