Class-4_Search Algorithems
Class-4_Search Algorithems
Search algorithms :
• Based on the search problems we can classify the search
algorithms into
1. uninformed search (Blind search)
2. informed search (Heuristic search)
Uninformed/Blind Search:
• The uninformed search does not contain any domain
knowledge such as closeness, the location of the goal.
• It operates in a brute-force way as it only includes
information about how to traverse the tree and how to
identify leaf and goal nodes.
• Breadth-first search
• Uniform cost search
• Depth-first search
• Iterative deepening depth-first search
• Bidirectional Search
Informed Search :
• Informed search algorithms use domain knowledge. In an
Example :
• Greedy Search
• A* Search
Breadth-first search :
• Explore nodes in tree order: library, school, hospital,
factory, park, newsagent, uni, church.
• (conventionally explore left to right at each level)
Depth first search : Nodes explored in order: library,
school, factory, hospital, park, newsagent, universities
• Water Jug Problem: you have two jugs with
Operations :
1. Empty Operation
2. Fill Operation
3. Transfer Operation
• Breath first search :
• Depth first Search Algorithm :
• Depth first Search Algorithm :
Heuristic Search :
• Production rules for solving the water jug problem :
The listed production rules contain all the actions that
could be performed by the agent in transferring the
contents of jugs. But, to solve the water jug problem in a
minimum number of moves, following set of rules in the
given sequence should be performed: