RTUComputer ScienceYr 2024 · Sem 62024

Q19Principles of Artificial Intelligence

Question

10 marks

Discuss the A algorithm. Prove that A is optimal and complete if the heuristic is admissible.

Answer

An exhaustive theoretical proof of the A* Search Algorithm. Details how the absolute evaluation function guarantees optimal and complete search traversal strictly when the heuristic is mathematically admissible (never overestimates).

A is the absolute pinnacle of informed pathfinding algorithms. Breadth-First Search is blind. Greedy Best-First Search is fast but mathematically flawed (it gets trapped). A aggressively merges the absolute optimality of Dijkstra's Algorithm (tracking past costs) with the explosive speed of Greedy Search (predicting future costs) to violently navigate massive state-space graphs.

At every node, A* calculates a strict mathematical score:

  • : The exact, absolute physical cost to travel from the Start node to the current Node . (Known data).
  • (The Heuristic): The mathematically estimated cost to travel from Node to the final Goal. (Predicted data).
  • : The estimated total cost of the absolute cheapest solution path that physically passes through Node .

The algorithm maintains an "Open List" (a priority queue) of discovered nodes, violently sorting them by . It always pops and expands the node with the absolute lowest score.

A* is mathematically guaranteed to find the absolute shortest path (Optimal) and guaranteed to find a path if one exists (Complete), strictly under one condition: The Heuristic function must be Admissible.

What is an Admissible Heuristic?

An admissible heuristic NEVER mathematically overestimates the true cost to reach the goal. (where is the actual physical true cost).

Example: In a maze, a straight Euclidean line between and the Goal is perfectly admissible because the true physical path (dodging walls) will always be mathematically greater than or equal to the straight line. It is physically impossible to travel shorter than a straight line.

The Mathematical Proof of Optimality

Assume A* is flawed and it selects a suboptimal Goal instead of the true optimal Goal .

  • Because is suboptimal, its true cost is higher: .
  • Because is a Goal node, its heuristic is zero: . Thus, .
  • Consider a node that is currently on the Open List and is physically on the correct path to .
  • Because is Admissible, it does not overestimate. Therefore: .
  • Since we established , it mathematically proves that .

The Contradiction: A always expands the node with the absolute lowest score. Therefore, A will mathematically be forced to expand node BEFORE it is ever allowed to expand the suboptimal goal . A will relentlessly follow all the way to . It is mathematically impossible for A to terminate on a suboptimal goal if is admissible.

Back to Paper