b -> c -> d -> e 2. What path will UCS tree search return? a -> c -> e The BFS algorithm explores the shallowest nodes first, so it will return the path a -> b -> c -> d -> e. The UCS algorithm explores the lowest cost nodes first, based on the path costs shown. The lowest cost path is a -> c -> e, so that is the path UCS will return."> b -> c -> d -> e 2. What path will UCS tree search return? a -> c -> e The BFS algorithm explores the shallowest nodes first, so it will return the path a -> b -> c -> d -> e. The UCS algorithm explores the lowest cost nodes first, based on the path costs shown. The lowest cost path is a -> c -> e, so that is the path UCS will return.">
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)