Watch AI search algorithms find the optimal path in real-time
Best for: Most situations
Guarantees: Optimal path
Uses both distance traveled and estimated distance to goal. Usually the fastest optimal algorithm.
Best for: Weighted graphs
Guarantees: Optimal path
Explores all directions equally. Slower than A* but guaranteed to find the shortest path.
Best for: Unweighted graphs
Guarantees: Optimal path
Explores level by level. Great for understanding but slower than A*.
Best for: Memory-constrained situations
Guarantees: Finds a path (not optimal)
Goes as deep as possible before backtracking. Not optimal but uses less memory.
Best for: Quick approximations
Guarantees: Fast (not optimal)
Always moves toward the goal. Very fast but can get trapped by obstacles.