3.3informed Search
3.3informed Search
AI
CH:03
Solving Problems by Searching
Content
• Informed Search:
• Heuristic Function,
• Admissible Heuristic,
– Informed Search Technique:
• Greedy Best First Search,
• A* Search,
What is a Heuristic Search?
H(n)>H’(n)
Example
Refer book
Informed Search Algorithms
● Best first search can switch between BFS and DFS by gaining the advantages of both the
algorithms.
● This algorithm is more efficient than BFS and DFS algorithms.
Disadvantages:
g(x) for A is zero and from the graph, we get the heuristic value of A is 11,
therefore
● A→B=2+6=8
● A→E=3+6=9
Since the cost for A → B is less, we move forward with this path and compute the
Since there is no path between C and G, the heuristic cost is set infinity or a very
high value
● A → B → C = (2 + 1) + 99= 102
● A → B → G = (2 + 9 ) + 0 = 11
Here the path A → B → G has the least cost but it is still more than the
Path- A → F
Node G and Node H can be reached from node F.
Path- A → F → G
Node I can be reached from node G.
Path- A → F → G → I
Node E, Node H and Node J can be reached from node I.
Path- A → F → G → I → J
Advantages:
● It does not always produce the shortest path (longest)as it mostly based
on heuristics and approximation.
● A* search algorithm has some complexity issues.
● The main drawback of A* is memory requirement as it keeps all
generated nodes in the memory, so it is not practical for various large-
scale problems.
Thank you !
34