I.ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS) II.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE III.HEURISTIC FUNCTION IN AI

2,412 views 15 slides May 06, 2021
Slide 1
Slide 1 of 15
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15

About This Presentation

Artificial Intelligence: Introduction, Typical Applications. State Space Search: Depth Bounded
DFS, Depth First Iterative Deepening. Heuristic Search: Heuristic Functions, Best First Search,
Hill Climbing, Variable Neighborhood Descent, Beam Search, Tabu Search. Optimal Search: A
*

algorithm, Itera...


Slide Content

Topic To Be Covered:
I.ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS)
II.INFORMED SEARCH IN ARTIFICIAL INTELLIGENCE
III.HEURISTIC FUNCTION IN AI
Jagdamba Education Society's
SND College of Engineering & Research Centre
Department of Computer Engineering
SUBJECT: Artificial Intelligence & Robotics
Lecture No-08
Prof.Dhakane Vikas N

ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS
This is type of Uninformed
search technique also called
as blind search.
This algo. Works on only
present value.
This algorithm is
combination of DFS & BFS
It uses STACK (LIFO) to
perform search operations
Utilizes Deepest &
shallowest Node

ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID-DFS
Best depth limit is found out
by gradually increasing depth
limit on each iterations.
Initially depth limit is =0
On each iteration depth
increased by exactly one.
S->Initial Node Or Source Node
G->Goal Node Or Target Node

ITERATIVE DEEPENING DEPTH FIRST SEARCH(ID -DFS
Advantages of ID-DFS:
Combine the advantage of both DFS and BF
It is Complete & Optimal
Will not go in infinite loop
Disadvantages of ID-DFS:
Regressive Recursion is required
May required more memory

Types of search in ai
II. Informed Search In AI
It is search with information.
It is greedy search method
Use knowledge to find steps to solution.
Less Complexity(Time, Space)
Quick Solution
Know about Start state and Goal state & Also
know how to reach.
informedsearchalgorithmcontainsan
arrayofknowledgesuchashowfarweare
fromthegoal,pathcost,howtoreachto
goalnode,etc.Thisknowledgehelpagents
toexplorelesstothesearchspaceandfind
moreefficientlythegoalnode.
Theinformedsearchalgorithmismore
usefulforlargesearchspace.Informed
searchalgorithmusestheideaof
heuristic,soitisalsocalledHeuristic
search.

HEURISTIC FUNCTION in ai
Heuristicisafunctionwhichisusedin
InformedSearch,anditfindsthemost
promisingpath.
Ittakesthecurrentstateoftheagentasits
inputandproducestheestimationofhow
closeagentisfromthegoal.
HeuristicvalueorFunctionactasGuidein
IS.
Heuristicfunctionestimateshowclosea
stateistothegoal.Itisrepresentedby
h(n),anditcalculatesthecostofan
optimalpathbetweenthepairofstates.
Theheuristicmethod,however,mightnot
alwaysgivethebestsolution,butit
guaranteedtofindagoodsolutionin
reasonabletime.
Thistechniquealwaysusetofindsolution
quickly.

HEURISTIC FUNCTION in ai
Heuristicisafunctionwhichis
usedinInformedSearch,andit
findsthemostpromisingpath.
Ittakesthecurrentstateofthe
agentasitsinputandproduces
theestimationofhowclose
agentisfromthegoal.
Heuristicfunctionestimates
howcloseastateistothegoal.
Itisrepresentedbyh(n),andit
calculatesthecostofan
optimalpathbetweenthepair
ofstates.
The heuristicmethod,
however,mightnotalways
givethebestsolution,butit
guaranteedtofindagood
solutioninreasonabletime.

HEURISTIC FUNCTION in ai
Different Method Used To Estimate Heuristic Value
---------------------------------------------------------------------------
I.Euclidian Distance (Straight Line Distance Method)
Euclideandistanceisthedistancebetweentwopoints
inEuclideanspace.EuclideanspacewasoriginallydevisedbytheGreek
mathematicianEuclidaround300B.C.E.tostudytherelationships
betweenanglesanddistances.

HEURISTIC FUNCTION in ai
Different Method Used To
Estimate Heuristic Value
II. Manhattan Distance
Incaseof8-Puzzleproblem
Manhattandistancesare
nothingbutNumberof
movesneedtobemadebyAI
agentsothatitcanreachto
itsgoalstate.

HEURISTIC FUNCTION in ai
Different Method Used
To Estimate Heuristic
Value
-------------------------------
III. No.of Misplaced
Tiles

BEST FIRST SEARCH(BFS)
This is informed search technique
also called as HEURISTIC search.
This algo. Works using heuristic
value.
This algorithm uses evaluation
function to decide which adjacent
node is most promising and then
explore.
Priority queue is used to store cost
of function.
Space & Time Complexity of BFS is
also O(V+E)where V is vertices and E
is edges.
Also Written as:-O(b)^d
Where, b->Branching factor
d->depth

BEST FIRST SEARCH(BFS)
Algorithm
Priority queue ‘PQ’ containing
initial states
Loop
If PQ=Empty Return Fail
Else
NODE<-Remove_First(PQ)
If NODE=GOAL
Return path from initial state to
NODE
ELSE
Generate all successor of NODE
and insert newly generated NODE
into ‘PQ’ according to cost value.
END LOOP

BEST FIRST SEARCH(BFS)
Advantages of BFS:
Memory efficient as compared with DFS & BFS
It is Complete
Disadvantages of BFS:
It gives good solution but not optimal solution.
In worst case it may behave like unguided DFS