Vijay Pagare

Notes - AI Fundamentals

Lord Rama, was doing BFS search until he met Jatayu, then he started DFS.

Lord Rama and BFS, DFS analogy
Note - This document was created on notion. It looks more readable there.

Search Methods for Problem Solving.

Search Types: Uninformed (blind, brute force) and Informed (heuristic)

UninformedInformed
search without informationsearch with information
no knowledgeuse knowledge to find steps to solution
time consumingquicker solution
more complexity (time, space)less complexity (time, space)
DFS, BFSA*, Heuristic DFS, Best first search

DFS family - Depth Bounded, Iterative Deepening

Depth-Limited Search (DLS)Iterative Deepening Depth-First Search (IDDFS)
Depth is fixed — search is restricted to a certain depth so that it doesn’t encounter a loop or go into infinitely deep space.Iteratively first checks for depth 1, then 2, then 3, and so on... till the goal is found.
Completeness: NO (if the solution is beyond the depth limit)Completeness: YES (if the branching factor 'b' is finite)
Optimality: NO (it might find a non-optimal solution if a solution exists at a shallower depth but is not explored due to the limit)Optimality: YES (it is guaranteed to find the shallowest goal)
Time Complexity: $O(b^l)$ where 'l' is the depth limit.Time Complexity: $O(b^d)$ where 'd' is the depth of the shallowest solution. (This is asymptotically equivalent to BFS and DFS for large d)
Space Complexity: $O(bl)$ where 'l' is the depth limit. (Same as DFS)Space Complexity: $O(bd)$ where 'd' is the depth of the shallowest solution. (Same as DFS)

Bidirectional search (extension of BFS, DFS)

A* admissibility - underestimate, overestimate

Hill climbing - Local search algorithm

tbd:

References

YT playlists - GATE smasher - NPTEL - CS50

#Study