Introduction To AI
Introduction To AI
Syllabus
Introduction
Introduction
as a human
❖ entity should exhibit thought process or reasoning
ability
Along with this an intelligent entity must be
rational, e.g. it does the “right thing” based on what
it knows.
❖ Knowledge representation
❖ Planning
❖ Learning
❖ Perception
❖ Planning.
❖ Learning.
❖ Expert Systems.
?
❖ how do we describe it concisely ?
in new environments ?
Interacting with the Environment
❖ increased costs
❖ difficulty with software development - slow and
expensive
❖ few experienced programmers
❖ few practical products have reached the market as
yet.
State Space Search: Water Jug Problem
3 (x,y) if x>0 (x-d,y) Pour some part from the 4 gallon jug
4 (x,y) if y>0 (x,y-d) Pour some part from the 3 gallon jug
7 (x,y) if (x+y)<7 (4, y-[4-x]) Pour some water from 3 gallon jug to fill the 4 gallon
jug
8 (x,y) if (x+y)<7 (x-[3-y],y) Pour some water from 4 gallon jug to fill 3 gallon jug
9 (x,y) if (x+y)<4 (x+y,0) Pour all water from 3 gallon jug to the 4 gallon jug
10 (x,y) if (x+y)<3 (0, x+y) Pour all water from 4 gallon jug to 3 gallon jug
Water Jug Problem
The listed production rules contain all the actions that could be performed by the agent in
transferring the contents of jugs. But, to solve the water jug problem in a minimum number of
moves, following set of rules in the given sequence should be performed:
On reaching the 7th attempt, we reach a state which is our goal state. Therefore,
at this state, our problem is solved
Tic Tac Toe: AI Problem
e(p) = 6 - 5 = 1
MinMax Algorithm for game playing