Module3 InformedSearch
Module3 InformedSearch
INFORMED
SEARCH
Informed search strategies
• Hsld is correlated with actual road distances and is, therefore, a useful heuristic
For example,
Hsld(In(Arad)=) 366. Notice that the values of Hsld cannot be computed from the
problem description itself. Moreover, it takes a certain amount of experience to know that
Hsld is correlated with actual road distances and is, therefore, a useful heuristic.
Greedy best-first search- Route
finding problem in Romania
Greedy best-first search- Route
finding problem in Romania
Properties of greedy best-first search
• Complete?
• No – can get stuck in loops, e.g., Iasi Neamt Iasi
Neamt
• Time?
• O(bm), but a good heuristic can give
dramatic improvement
• Space?
• O(bm) -- keeps all nodes in memory
• Optimal?
• No
A* search
current 𝑓-cost limit, it backtracks and replaces the cost with the next best
■ The algorithm recursively explores the best child node. If a node exceeds the
alternative.
■ Advantages: Requires minimal memory (linear in the depth of the search
tree). Adapts well to problems with high branching factors.
■ Limitations:
– Can re-expand nodes multiple times (not as efficient as A* in terms of
time).
– Performance depends on the accuracy of the heuristic.
Stages in an RBFS
• h1(S) = ? 8
• h2(S) = ? 3+1+2+2+2+3+3+2 = 18
Performance of heuristics
• function
One way to characterize the quality of a heuristic is the
effective branching factor b∗
• If the rules of the 8-puzzle are relaxed so that a tile can move anywhere,
then h1(n) gives the shortest solution
• If the rules are relaxed so that a tile can move to any adjacent square,
then h2(n) gives the shortest solution
The constants cl and c2 are adjusted to give the best fit to the actual data on
solution costs.