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)

  1. Differentiate BFS and DFS.
  2. What is iterative deepening?
  3. Define an admissible heuristic.
  4. What is the evaluation function of A*?
  5. What is an AND-OR graph?
  6. What is a zero-sum game?
  7. What are α and β in alpha-beta pruning?
  8. Define a CSP.
  9. What is mutation in a GA?
  10. State the MRV heuristic.

Medium Answer Questions (5 marks each)

  1. Explain BFS with its properties.
  2. Explain iterative deepening search.
  3. Explain greedy best-first search with an example.
  4. Explain A* and prove its optimality condition.
  5. Explain the minimax algorithm.
  6. Explain backtracking search for CSPs.

Long Answer Questions (15 marks each)

  1. Explain uninformed search strategies BFS, DFS and iterative deepening with complexity.
  2. Explain informed search: best-first, A and AO with examples.
  3. Explain adversarial search: minimax and alpha-beta pruning with a game tree.
  4. Explain constraint satisfaction problems and genetic algorithms with applications.

Sources

  • Official BCA syllabus Artificial Intelligence, course code 26BCA404DS04, Unit II