Unit summary
- Uninformed search: BFS (queue, complete, optimal for equal costs), DFS (stack, low memory) and iterative deepening (best of both).
- Informed search uses heuristics: greedy best-first (f = h) and A* (f = g + h, optimal with admissible h).
- AO* searches AND-OR graphs for a solution sub-graph, revising costs backward.
- Minimax chooses optimal moves in zero-sum games; alpha-beta prunes without changing the result.
- CSPs use variables, domains and constraints; backtracking with MRV and forward checking solves them.
- Genetic algorithms evolve populations with selection, crossover and mutation.
Glossary
| Term | Meaning |
|---|---|
| A* | Search with f = g + h. |
| Admissible | Never overestimates the true cost. |
| Alpha-beta | Pruned minimax. |
| AND-OR graph | Graph with alternatives and conjunctions. |
| Branching factor | Maximum number of successors. |
| Crossover | Exchanging parts of two parents. |
| CSP | Constraint satisfaction problem. |
| Fitness | Score of a candidate solution. |
| Forward checking | Prune neighbour domains after assignment. |
| Frontier | Generated but unexpanded nodes. |
| Genetic algorithm | Evolutionary search with selection, crossover, mutation. |
| Heuristic | Estimate of remaining cost. |
| Minimax | Optimal play for two-player zero-sum games. |
| MRV | Choose the variable with fewest legal values. |
| Mutation | Random change in a chromosome. |
| Ply | One move by one player. |
Question bank
Short Answer Questions (2 marks each)
- Differentiate BFS and DFS.
- What is iterative deepening?
- Define an admissible heuristic.
- What is the evaluation function of A*?
- What is an AND-OR graph?
- What is a zero-sum game?
- What are α and β in alpha-beta pruning?
- Define a CSP.
- What is mutation in a GA?
- State the MRV heuristic.
Medium Answer Questions (5 marks each)
- Explain BFS with its properties.
- Explain iterative deepening search.
- Explain greedy best-first search with an example.
- Explain A* and prove its optimality condition.
- Explain the minimax algorithm.
- Explain backtracking search for CSPs.
Long Answer Questions (15 marks each)
- Explain uninformed search strategies BFS, DFS and iterative deepening with complexity.
- Explain informed search: best-first, A and AO with examples.
- Explain adversarial search: minimax and alpha-beta pruning with a game tree.
- Explain constraint satisfaction problems and genetic algorithms with applications.
Sources
- Official BCA syllabus Artificial Intelligence, course code 26BCA404DS04, Unit II
