Correct Search and Planning Trade-offs
Examine optimality, heuristic assumptions, and replanning when a model changes.
artificial intelligence, heuristics, planning, correctnessWhat is actually guaranteed?
An algorithm is complete under stated conditions if it finds a solution when one exists; it is optimal if the returned solution has minimum cost. Those are different properties. Breadth-first search is optimal for fewest edges, not arbitrary weighted costs. Uniform-cost search and A* need appropriate cost, frontier and termination assumptions.
For A* graph search, a consistent heuristic has h(goal)=0 and obeys
h(u) ≤ c(u,v) + h(v) for every edge. With non-negative edge costs, finite
branching and suitable termination conditions, removing a goal from the
minimum-f frontier gives an optimal solution. If a heuristic is admissible
but inconsistent, a graph-search implementation must allow improved paths
to reopen states rather than permanently discard them.
A model can change
- A route planner finds A → B → D, cost 4, using its current map.
- The traveller observes that B → D is closed. The previous optimality claim applied to the old map, not the changed situation.
- Update the available edges and search again. If A → C → D costs 7 and remains open, it becomes the best route in this small updated map.
See the reasoning
Follow the example one step at a time
Replan when the actual route differs from the original map. This is a prepared teaching demonstration, not live code execution.
Plan
old map: A → B → D cost 4
This route is optimal in the stated old map.
Choose a planning strategy
Forward planning explores from the current state; backward planning reasons from goals toward actions that could achieve them. A partial-order plan can leave independent action ordering unspecified. These approaches trade off branching, memory, representation and coordination. Search in an incomplete or changing world may need observation and replanning; a proof about a simplified model is not a promise about the real environment.
Reflect on the concept
Four fixed questions to reinforce the reasoning. Answers are not saved or scored.
