I.BEST FIRST SEARCH IN AI

6,641 views 7 slides May 06, 2021
Slide 1
Slide 1 of 7
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7

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.BEST FIRST SEARCH IN AI
Jagdamba Education Society's
SND College of Engineering & Research Centre
Department of Computer Engineering
SUBJECT: Artificial Intelligence & Robotics
Lecture No-09(I)
Prof.Dhakane Vikas N

BEST FIRST SEARCH(BFS)
Thisisinformedsearchtechnique(GreedySearch)alsocalledas
HEURISTICsearch.
This algo. Works using heuristic value.
This algorithm uses evaluation functionto 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)
TheimplementationofBest
FirstSearchAlgorithminvolves
maintainingtwolists-OPENand
CLOSED.
OPENcontainsthosenodesthat
havebeenevaluatedbythe
heuristicfunctionbuthavenot
beenexpandedintosuccessors
yet.
CLOSEDcontainsthosenodes
thathavealreadybeenvisited.

BEST FIRST SEARCH(BFS)
Algorithm
Priority queue ‘PQ’ containing
initial states
Loop
If PQ=Empty Return Fail
Else
Insert Node into PQ(Open-List)
Remove First(PQ) ->NODE(Close-
List)<
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