Definition
Uniform-Cost Search
Uniform-cost search is about expanding the least-code unexpanded node. The frontier is a priority queue sorted by path cost, lowest first.
Properties
Completeness
Uniform-cost search is complete if the step cost
Time Complexity
Let
Note that the solution test happens at expansion time. For step cost = 1, the uniform-cost search has the same cost as breadth-first search.
Space Complexity
Let
Optimality
Uniform-cost search is optimal since nodes are expanded in increasing order of