3 - Uninformed Search Strategies
3 - Uninformed Search Strategies
15
UNIFORM-COST SEARCH
nExpand least-cost unexpanded node
nImplementation:
nUse priority queue = queue ordered by path cost
nOptimal? No
b) What path would uniform cost graph search return for this
search problem?
Uniform-Cost Search
EXAMPLE 2
Consider the search space below, where S is the start node and
EXAMPLE 2 G1, G2, and G3 satisfy the goal test. Arcs are labeled with the
cost of traversing them (ignore the numbers reported inside
nodes)
Uniform-Cost Search
DFS:
• Tree search
• DFS can stuck in infinte loop
[Incomplete]
• DFS is sensitive to the ordering of
nodes
• Graph search
• Will return the solution but the
solution may not be optimal.
BFS:
• Complete and optimal
EXAMPLE 4 1. What path will BFS tree search return? (Show your
solution)