F AI LAB 3 8queens
F AI LAB 3 8queens
BRIEF DESCRIPTION:
The 8 puzzle consists of eight numbered, movable tiles set in a 3x3 frame. One cell of the frame
is always empty thus making it possible to move an adjacent numbered tile into the empty cell.
Such a puzzle is illustrated in following diagram.
For the 8-puzzle, a straight forward description is a 3X3 array of matrix of numbers. Initial
global database is this description of the initial problem state. Virtually any kind of data
structure can be used to describe states. A move transforms one problem state into another state.
OUTPUT: