0
4.2kviews
| written 6.8 years ago by |
BFS is optimal when all step costs are equal, because it always expands the shallowest un expanded node. By a simple extension, we can find an algorithm that is optimal with any step cost function. Instead of expanding the shallowest node, uniform cost search expands the node n with the …