Heuristics and A-Star Search
Tags: #◇Computer Science #◇CSINTSY #◇Heuristics and A-Star Search #◇Problem Solving #◇M2
◇Overview
Informed search, unlike uninformed search, exploits partial knowledge about the problem to guide the exploration of the state space. This domain knowledge is often encapsulated in a heuristic function, , which estimates the cost from state to the goal.
Greedy Best-First Search (GBFS) Expands the node that appears closest to the goal (lowest ). Characteristics: Complete if the state space is finite. Not optimal. Devolves to BFS or DFS if .
A Search* Combines Uniform Cost Search and Greedy Best-First Search by considering both the accumulated path cost and the estimated cost to the goal . Characteristics: Complete for finite spaces. Optimal if the heuristic is admissible. If , A* devolves into UCS.
Admissibility:
A heuristic is admissible if it never overestimates the true cost to reach the goal: , where is the true optimal cost.
◇Important Formulas
Heuristic Function evaluation in A Search*
Where: = Cost accumulated from start node to current node . = Estimated cost from node to goal node.
Admissibility Condition
Consistency (Monotonicity) Condition
Theorem: A consistent heuristic guarantees that when A* selects a state for expansion, the optimal path to that state has already been found. No re-expansion of explored states is required.
◇Theoretical Framework: A* State Space Expansion & Evaluation
A* Min-Priority Queue Execution Pipeline
◇Worked Examples
8-Puzzle Heuristics:
- Number of misplaced tiles: = count of tiles not in their goal position.
- Total Manhattan Distance: = sum of horizontal and vertical distances of each tile from its target location.
A Algorithm Walkthrough:*
- Add to FRONTIER with priority .
- While FRONTIER is not empty:
- Remove state with the lowest priority . Let be the cost up to .
- If then return the solution.
- Add to EXPLORED.
- For each action :
- Get successor
- If is not yet in EXPLORED, update in FRONTIER with priority .
◇References & Navigation
- Previous Topic: ◇Uniform Cost Search
- Next Topic: ◇Adversarial Games
- Related Notes: ◇Informed Search, ◇Dijkstra's Algorithm (Advanced)
ACTIVE RECALL VERIFICATION
Select an answer to verify conceptual comprehension and reveal the technical rationale.
How does informed search differ from uninformed search?
What is the primary characteristic of Greedy Best-First Search (GBFS)?
How does A* Search calculate the priority of a node to expand?
What happens to the A* Search algorithm if the heuristic function is always set to 0?
What does the Admissibility Condition ensure for a heuristic?