Simple Search


Basic Schema for Search

(Assuming that the path makes a difference, we maintain a queue of paths rather than just states.)

The algorithm makes use of two procedures specific to the problem

  1. A predicate goal?, which takes a state and returns #t if the state is a goal state
  2. A procedure extend, which takes a state and returns all of the successor states to the state


Depth-First and Breadth-First Search


To the IU Bloomington Home Page. To the IU Cognitive Science Home Page. To the Q351 Home Page.

Last updated: 16 January 1996
URL: http://www.indiana.edu/~gasser/Q351/search2.html
Comments: gasser@salsa.indiana.edu
Copyright 1996, The Trustees of Indiana University