Screenshot_20240207-201233~2.png

Greedy search is the most basic search, just choose the best option in front of you.

A* algo

Screenshot_20240207-202318~2.png

Screenshot_20240207-202533~2.png

Local search

Screenshot_20240207-204014~2.png

Untitled

GBFS A*
h(n) h(n) + g(n)
O(b^m) O(b^d)

Admissibility

In the A* algorithm, admissibility refers to the property of the heuristic function used to estimate the cost of reaching the goal from a given state. A heuristic is admissible if it never overestimates the cost to reach the goal from any given state. In other words, the heuristic must be optimistic; it can underestimate the actual cost but should never overestimate it. This property ensures that A* will always find the optimal solution when using an admissible heuristic.

Consistent

Mathematically, for all nodes (n) and (n') where (n') is a neighbor of (n), the following must hold true:

(h(n) \leq c(n, n') + h(n'))