- All search problems can be cast into the following general form:
- Starting State
E.g.
- starting city for a route
- a jumbled Rubik's cube
- Goal State (or a test for goal state)
E.g.
- destination city
- the solved Rubik's cube
- The permissible operators
E.g.
- go to city X
- rotate subcube1, rotate subcube2, ...
- A state is a data structure which captures all relevant information
about the problem.
E.g.
- a partial route
- the orientation of all subcubes of Rubik's cube
|