Heuristics

Heuristics are functions that estimate the cost from a state to a goal state. They guide informed search algorithms by “preferring” nodes believed to be closer to a goal. Good heuristics often come from solving relaxed versions of the original problem, where constraints are removed so that the solution is easier to compute. Common heuristics for grid problems include Manhattan distance ( norm) and Euclidean distance ( norm).

Heuristics are crucial because they can dramatically reduce the number of expanded nodes compared to uninformed search, though their effectiveness depends on how well they approximate the true cost.

Properties

(Admissibility) For any node , , where is the actual minimal cost from to a goal.

(Consistency) A heuristic is consistent if, for every node , successor , and step cost , it holds that .