Name - Shantanu V Reg No. - RA2311028010184 Class - W1 AI Unit - 2
Name - Shantanu V Reg No. - RA2311028010184 Class - W1 AI Unit - 2
AI
Unit – 2
*Aim:*
To implement search algorithms (BFS and A*) for solving real-world
pathfinding problems.
1. Breadth-First Search (BFS) – Shortest Path in a Maze
*Algorithm*:
while queue:
r, c, steps = queue.popleft()
if (r, c) == end:
return steps
*Result:*
The implemented search algorithms optimize *GPS navigation, robot
path planning, and emergency evacuation* by efficiently finding the
shortest and safest paths.