11 Comparison of searches

Strategy Selection from frontier Path found Space
Breadth-first First node added (FIFO) Fewest arcs O(bd)O(b^d)
Depth-first Last node added (LIFO) ×\times O(bd)O(bd)
Iterative deepening N/A Fewest arcs O(bd)O(bd)
Uniform cost Minimal c(p)c(p) Least cost O(bd)O(b^d)
Greedy Minimal h(p)h(p) ×\times O(bd)O(b^d)
A* Minimal c(p)+h(p)c(p) + h(p) Least cost O(bd)O(b^d)
bb = branching factor
dd = depth of shallowest solution
×\times = not guaranteed to find solution
blue = uninformed, red = informed