CS632 Lecture 04
CS632 Lecture 04
INTELLIGENCE
CS-632
Formulate goal: Be in
Bucharest.
S3 S6 S5 S4
S7 S8
•States: S1 , S2 , S3 , S4 , S5 , S6 , S7 , S8
• Operators: Go Left , Go Right , Suck
• Goal test: no dirt left in both squares
• Path Cost: each action costs 1.
WATER JUG PROBLEM
DIRECTED GRAPHS
• Problem formulation
• Deciding the representation of the states
• Selecting the initial state representation
• The description of the operators, and the successor states
• States:
• Any arrangement of 8 queens on the board
• Initial state:
• All queens are at column 1
• Successor function:
• Change the position of any one queen
• Goal test:
• 8 queens on the board, none are attacked
• States:
• Any arrangement of k queens in the first k rows such that
none are attacked
• Initial state:
• 0 queens on the board
• Successor function:
• Add a queen to the (k+1)th row so that none are attacked.
• Goal test :
• 8 queens on the board, none are attacked
N QUEENS PROBLEM
FORMULATION 3
Thank You