Next: Heuristic Search Up: Problems and Search Previous: Searching

Blind Search

Depth-First Search

  1. Set to be a list of the initial nodes in the problem.
  2. If is empty, fail otherwise pick the first node from
  3. If the e is a goal state, quit and return path from initial node.
  4. Otherwise remove from and add to the front of all of 's children. Label each child with its path from initial node. Return to 2.

Fig. Depth First Tree Search

Note: All numbers in Fig refer to order visited in search.

Breadth-First Search

  1. Set to be a list of the initial nodes in the problem.
  2. If is empty, fail otherwise pick the first node from
  3. If the e is a goal state, quit and return path from initial node.
  4. Otherwise remove from and add to the end of all of 's children. Label each child with its path from initial node. Return to 2.

Fig. Breadth First Tree Search

Note: All numbers in Fig refer to order visited in search.


Dave.Marshall@cm.cf.ac.uk
Tue Nov 15 16:48:09 GMT 1994