Comparison of Uninformed Search Techniques
Comparison of Uninformed Search Techniques
Breadth-First Explores all nodes at the present - Guarantees the - High memory
Search (BFS) depth before moving on to nodes shortest path in consumption, as it stores all
at the next depth level. unweighted graphs. nodes at the current depth.
- Completeness: will
find a solution if one
exists.
Depth-First Explores as far as possible along - Low memory usage - Does not guarantee the
Search (DFS) each branch before backtracking. compared to BFS. shortest path.
- Can be more efficient - Can get stuck in deep
for deep solutions. paths (infinite loops).
Iterative Combines the space efficiency of - Completeness and - More time-consuming due
Deepening DFS with the optimality of BFS by optimality for to repeated exploration of
DFS gradually increasing depth limits. unweighted graphs. nodes.
- Uses less memory
than BFS.
Uniform Cost Expands the least cost node first, - Guarantees the - Higher computational
Search (UCS) ensuring that the path cost is optimal solution for overhead due to cost
minimized. weighted graphs. calculations.
- Completeness: will - Can be slow if there are
find a solution if one many low-cost paths.
exists.
• Breadth-First Search is ideal for scenarios where finding the shortest path is critical,
but its high memory requirement can be a limitation in large search spaces.
• Depth-First Search is more memory efficient but risks missing the optimal solution
and can become inefficient in certain configurations.
• Iterative Deepening DFS offers a balanced approach, providing both completeness
and optimality while managing memory usage effectively.
• Uniform Cost Search excels in weighted scenarios, ensuring optimal solutions but
can be computationally expensive.
These comparisons highlight the strengths and weaknesses of each uninformed search
technique, providing a framework for selecting an appropriate method based on specific
problem requirements.