Professional Documents
Culture Documents
Artificial Intelligence & Machine Learning: Class No-1: Introduction To AI
Artificial Intelligence & Machine Learning: Class No-1: Introduction To AI
Artificial Intelligence & Machine Learning: Class No-1: Introduction To AI
Learning
Class No-1:
Introduction to AI
By:
Dr. Niranjan Panigrahi
CSE, PMEC, Berhampur,Odisha
Recommended Books
Problem-Specific Knowledge
Representation
• Given: 2 jugs:
4l 3l
Representation:
a state:
[content of large jug, content of small jug]
initial state:
[ 0, 0 ]
goal state:
[ 2, x ]
27
Rules for the jugs example:
– Fill large:
[ x, y ] and x < 4 [ 4, y ]
Fill small:
[ x, y ] and y < 3 [ x, 3 ]
Empty large:
[ x, y ] and x > 0 [ 0, y ]
Remove some from large:
28
Rules for the jugs example (2):
– Fill large from small:
[ x, y ] and x + y 4 and y > 0 [ 4, y-(4-x) ]
Fill small from large.
Empty small in large:
29
Part of the state space:
[ 0, 0 ] Fill small
[ 4, 0 ] [ 0, 0 ] [ 0, 3 ] Empty small
in large
[ 0, 3-d1] *
[ 3, 0 ]
[ 0, 0] [ 4, 3]
Fill small
*
[ 0, 3-d1-d2] [ 3, 3 ]
[ 3-d1, 0]
Fill large
[ 4, 3-d1] [ 4, 2 ]
from small
Redundant
subspace ! [ 0, 2 ] Empty large
Consist of:
A rule base,
a ‘working memory’, containing the state(s) that have currently been
reached,
a control strategy for selecting the rules to apply next to the states in the
‘working memory’ (including techniques for matching, verifying
preconditions and whether a goal state has been reached)
31
Work from Home-2
• Design state-space model for 8-puzzle
problem, 8-queen problem and tic-tac-toe
problem.
Any Q’s????