Unit 2 - Problem Solving in AI
Unit 2 - Problem Solving in AI
A problem-solving agent is an intelligent system that uses search strategies to reach a goal.
The agent follows these steps:
1. Define the problem (initial state, goal state, actions, transition model, cost function).
Breadth-First Search (BFS): Explores all nodes at the current level before moving
deeper.
Depth-First Search (DFS): Explores as far as possible along a branch before
backtracking.
Uniform Cost Search (UCS): Expands the least-cost node first.
Depth-Limited Search (DLS): Limits search depth to prevent infinite loops.
Iterative Deepening Depth-First Search (IDDFS): Combines BFS and DFS advantages.
Greedy Best-First Search: Expands the node that appears closest to the goal.
A* Search: Uses both path cost and heuristic function for optimal solutions.
6. Heuristic Functions
A heuristic function estimates the cost from a given state to the goal. Examples:
8. Adversarial Search
Used in competitive environments like games where agents act against each other:
Minimax Algorithm: Determines the best move by assuming optimal opponent play.
Alpha-Beta Pruning: Optimizes minimax by cutting unnecessary branches.
Monte Carlo Tree Search (MCTS): Used in complex games like Go.