U18PCCS501 Artificial Intellingence Uninformed Search
U18PCCS501 Artificial Intellingence Uninformed Search
U18PCCS501 Artificial Intellingence Uninformed Search
ARTIFICIAL
INTELLINGENCE
Uninformed Search
Searching Strategies
UNINFORMED SEARCH
INFORMED SEARCH
Uninformed Search Algorithms
• Breadth-first Search
• Depth-first Search
• Depth-limited Search
• Bidirectional Search
Breadth- First -Search:
Consider the state space of a problem that takes the form of a tree. Now, if
we search the goal along each breadth of the tree, starting from the root and
continuing up to the largest depth, we call it breadth first search
Algorithm:
1. Create a variable called NODE-LIST and set it to initial state
2. Until a goal state is found or NODE-LIST is empty do
Step 2: A is removed from fringe. The node is expanded, and its children B
and C are generated. They are placed at the back of fringe
Step 3: Node B is removed from fringe and is expanded. Its children D, E
are generated and put at the back of fringe.
Advantages:
• Finds the path of minimal length to the goal.
Disadvantages:
• Requires the generation and storage of a tree
whose size is exponential the depth of the
shallowest goal node.
• The breadth first search algorithm cannot be
effectively used unless the search space is quite
small
DEPTH FIRST SEARCH
• We may sometimes search the goal along the largest depth
of the tree, and move up only when further traversal along
the depth is not possible.
Step 3: Node B is removed from fringe, and its children D and E are pushed in
front of fringe.
Step 4: Node D is removed from fringe. C and F are pushed in front of
fringe.
Step 5: Node C is removed from fringe. Its child G is pushed in front of fringe.
Step 6: Node G is expanded and found to be a goal node.