Analyzing and Improving Search
1/27/17
Analyzing and Improving Search 1/27/17 From Wednesday: Measuring - - PowerPoint PPT Presentation
Analyzing and Improving Search 1/27/17 From Wednesday: Measuring Performance Completeness : Is the search guaranteed to find a solution (if one exists)? Optimality : Is the search guaranteed to find the lowest-cost solution (if it finds
1/27/17
solution (if one exists)?
lowest-cost solution (if it finds one)?
solution?
perform the search?
BFS DFS UCS A* Greedy complete?
time efficient? space efficient?
BFS DFS UCS A* Greedy complete? Y N Y Y
cycle-checking
N N Y Y N time efficient? no
no sort of
space efficient? no yes!!! no no no
reach the goal.
decreasing along paths.
the better. Key idea: simplify the problem.
1 8 2 4 3 7 6 5 8 2 1 4 3 7 6 5 1 8 2 4 3 7 6 5 1 8 2 7 4 3 6 5
1 2 3 4 5 6 7 8 8-puzzle:
adjacent to the empty space can slide into it.
increasing order.
until finding a goal node.
it can’t miss a better path.
factor, A* is also complete.
algorithm will expand fewer nodes.
c(s) + h(s) < C* runs the risk of missing the optimal solution.
are expanded when c(s) + h(s) = C*.
properties from BFS.
Key idea:
increase the bound.
time a solution is found.
bound.
asymptotically similar number of nodes to A*, with a lower memory overhead.
goal(s) toward the start.
Goal
toward the goal.
Use the Manhattan distance heuristic.
1 8 2 4 3 7 6 5 1 2 3 4 5 6 7 8 Start Goal