Lecture 3
Lecture 3
S
1 5 8
A B C
3 9
7 4 5
D E G
– For a complete search tree of depth 12, where every node at depths
0, ..., 11 has 10 children and every node at depth 12 has 0 children,
there are 1 + 10 + 100 + 1000 + ... + 10^12 = (10^13 - 1)/9 =
O(10^12) nodes in the complete search tree.
• BFS is suitable for problems with shallow solutions
11/10/2024 11:56:54 AM Dr.Nadir Kamal Salih 14
Breadth-First Search
S
1 5 8
A B C
3 9
7 4 5
D E G G’ G”
• Depth-First Search:
– Many solutions exist
– Know (or have a good estimate of) the depth of solution
• Breadth-First Search:
– Some solutions are known to be shallow
• Uniform-Cost Search:
– Actions have varying costs
– Least cost solution is the required
This is the only uninformed search that worries about costs.
• Iterative-Deepening Search:
– Space is limited and the shortest solution path is required