







































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!








































































Reference Book: Stuart Russell, Peter Norvig, Artificial Intelligence A Modern Approach (Third Edition)
Problem-Solving by Search
The types of Problem-solving by Search
The types of Problem-solving by Search
Example: Romania
some assumptions
Well-defined problems and solutions
Well-defined problems and solutions
A toy problem : vacuum world Three kinds of actions: Right , Left, Suck
Example problem : vacuum world state space forms a directed graph
Example problem : 8-puzzle The 8-puzzle, an instance of which is shown in Figure 3.4, consists of a 3 × 3 board with eight numbered tiles and a blank space. A tile adjacent to the blank space can slide into the space. The object is to reach a specified goal state, such as the one shown on the right of the figure.
Example problem : 8-puzzle
States: A state description specifies the location of each of the eight tiles and the blank in one of the nine squares. Initial state: Any state can be designated as the initial state. Note that any given goal can be reached from exactly half of the possible initial states (Exercise 3.4). Actions: The simplest formulation defines the actions as movements of the blank space Left, Right, Up, or Down. Different subsets of these are possible depending on where the blank is. Transition model: Given a state and action, this returns the resulting state; for example, if we apply Left to the start state in Figure 3.4, the resulting state has the 5 and the blank switched. Goal test: This checks whether the state matches the goal configuration shown in Figure 3.4. (Other goal configurations are possible.) Path cost: Each step costs 1, so the path cost is the number of steps in the path.
Example problem : 8-queens problem
Example problem : 8-queens problem