Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admissible & Non-admissible |Digital Wave

1,605 views 10 slides Feb 15, 2022
Slide 1
Slide 1 of 10
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

About This Presentation

Heuristic Search in Artificial Intelligence | Heuristic Function in AI | Admissible & Non-admissible

Hi Friends,
I am Rahul Sharma, Welcome to my Youtube channel Digital Wave, Segment- Artificial Intelligence

In this artificial Intelligence Tutorial video I have explained about Heuristic Sea...


Slide Content

Artificial Intelligence
Heuristic Search

Heuristic Search and Heuristic Function
▪HeuristicSearchandHeuristicfunctionareusedininformedsearch.
▪Heuristicsearchisasimplesearchingtechniquethattriestooptimizea
problemusingHeuristicFunction.
▪Optimizationmeansthatwewilltrytosolveaprobleminminimumnumber
ofstepsorcost.

Heuristic Function h(n)
▪ItisafunctionH(n)thatgivesanestimationonthecostofgettingfrom
node‘n’tothegoalstate.
▪Ithelpsinselectingoptimalnodeforexpansion.
R1
R2
Mumbai GOA
R1= 340 Km
R2= 270Km
H(300)
H(200)

Heuristic Function h(n)
X
Y
Z
(Number of steps to reach the
goal state) or Heuristic value
of x will be :
h(x)=2
(Number of steps to reach the
goal state) or Heuristic value
of x will be :
h(y)=1
Goal State
Start Sate

Types of Heuristic Function h(n)
▪TherearetwotypesofHeuristicFunctions:
1.Admissible
2.Non-Admissible

Admissible Heuristic Function h(n)
▪Aheuristicfunctionisadmissibleifitneveroverestimatesthecostof
reachingthegoal.
h(n) < = h*(n)
Hereh(n)isheuristiccost,andh*(n)isthe
estimatedcost.
Soheuristiccostshouldbelessthanor
equaltotheestimatedcost.

Non-Admissible Heuristic Function h(n)
▪Anon-admissibleheuristicmayoverestimatethecostofreachingthe
goal.
h(n) > h*(n)
Hereh(n)isheuristiccost,andh*(n)isthe
estimatedcost.
Soheuristiccostmaybegreaterthento
theestimatedcost.
total cost = search cost + path cost

Admissible Heuristic Function h(n)
A
B
1
E
Heuristic Cost
Start Sate
G
C
D
F Goal State
B= 1+3=43
2
5
1
1
H(C)=4H(D)=5
H(B)=3
H(D)=5
H(C)=4
H(E)=2
H(F)=3
F(n) = H(n) + G(n)
Cost = Heuristic cost + Actual cost
C= 1+4=5
H(B)=3
D= 1+5=6
Actual cost from A to G = 1+3+5+2= 11
H(B)=3 so h(n) =3 and h*(n)=11
H(n)<=h*(n)
3<=11
ADMISSIBLE

Non-Admissible Heuristic Function h(n)
A
B
1
E
Heuristic Cost
Start Sate
G
C
D
F Goal State
3
2
5
1
1
H(D)=5
H(B)=3
H(D)=5
H(C)=4
H(E)=3
H(F)=3
F(n) = H(n) + G(n)
Cost = Heuristic cost + Actual cost
Actual cost from A to G(via D)= 1+3= 4
H(D)=5 so h(n) =5 and h*(n)=4
H(n)<=h*(n)
5<=4
NON-ADMISSIBLE
3

THANK YOU
➢Subscribe our channel
➢Follow us on Facebook
✓Page name : Digital
Wave ( Link in
Description Box)