Uninformed vs Informed Search Algorithms
CSET-381 | Lecture 3.3 | Artificial Intelligence
Also called "Blind Search"
• No knowledge about goal location
• Exhaustive exploration required
• Strategies don't use goal information
Uses heuristic information
• Takes goal location into account
• More efficient path finding
• Uses domain knowledge
| Algorithm | Complete? | Optimal? | Time Complexity | Space Complexity | Key Advantage |
|---|---|---|---|---|---|
| BFS | ✓ Yes | ✓ Yes | O(b^d) | O(b^d) | Guaranteed shortest path |
| DFS | ✗ No* | ✗ No | O(b^m) | O(bm) | Memory efficient |
| IDS | ✓ Yes | ✓ Yes | O(b^d) | O(bd) | Best of both worlds |
Legend: b = branching factor, d = depth of optimal solution, m = maximum depth
*DFS is complete only in finite state spaces
Perfect when you need the shortest path and have sufficient memory. Ideal for small to medium search spaces where optimality is crucial.
Choose DFS when memory is limited and you're exploring deep solution spaces. Great for constraint satisfaction problems.
The best general-purpose algorithm combining BFS optimality with DFS memory efficiency. Use when you're unsure about solution depth.
Consider: available memory, need for optimal solution, problem depth, and branching factor when choosing your search strategy.