CSE860 - 10 - Uninformed Search Strategies
CSE860 - 10 - Uninformed Search Strategies
CSE860 - 10 - Uninformed Search Strategies
(Uninformed Search)
2
• Root node is expanded first,
• Then all the successors of the root node are
expanded next,
• Then their successors and so on!
5
6
Number of nodes generated:
b + b2 + b3 + … + bd = O(bd)
7
• Breadth First Search (BFS) is Optimal when all
step costs are equal because it always expands
the shallowest unexpanded node.
8
9
Other differences with BFS:
• Goal test is applied upon expansion of the
node (as in generic graph search algorithm)
rather than at the time of generation.
10
11
• Uniform Cost Search is Optimal in general!!
• Space Complexity:
O(b1+C*/ε)
where:
C* is cost of the optimal solution
ε is minimum permissible cost of an action.
12
• Depth First Search always expands the
deepest node in the current frontier of the
search tree.
• It is also an instance of the Graph Search
Algorithm but with a LIFO queue (stack) as
frontier.
• It is usually implemented using Recursion.
13
14
• Space Complexity: O(bm)
m: Maximum depth of a node in the search
tree.
• If the nodes are discarded after Goal Check,
then the depth first search requires storage of
only O(bm) nodes!!
• At d=16 depth first search requires 156 kB of
memory space … 7 trillion times less than BFS!
15
• Depth Limited Search (DLS) is Depth First
Search with a limit applied on the depth of the
tree.
16
17
18
Number of nodes
• N(IDS) = d(b) + (d-1)b2+ …. + (1) bd
If b = 10 and d = 5
19
• Space Complexity: O(bd/2)
20
• Comparison
21