Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AI and Deep Learning by (50.2k points)

I don't understand how the following graph gives a suboptimal solution with A* search.

enter image description here

The graph above was given as an example where A* search gives a suboptimal solution, i.e the heuristic is admissible but not consistent. Each node has a heuristic value corresponding to it and the weight of traversing a node is given. I don't understand how A* search will expand the nodes.

1 Answer

0 votes
by (108k points)

Only A* with "graph search" will deliver a suboptimal solution. 

The heuristic h(n) is not consistent.

This is when a heuristic function is said to be consistent.

h(n) is consistent if  

for every node n

for every successor n' because of legal action a 

h(n) <= c(n,a,n') + h(n')

Here in the above code, it is clearly seen that 'A' is a successor to node 'B' but h(B) > h(A) + c(A,a,B). Hence the heuristic function is not consistent/monotone, and so A* need not give an optimal solution.

Browse Categories

...