_module 3 Sample Questions Solution
_module 3 Sample Questions Solution
2-Mark Questions
Greedy Best-First
Feature A* Search
Search
More computationally
Faster but may take
Efficiency expensive but finds the best
suboptimal paths
path
A well-defined problem ensures an AI system can efficiently find a solution using search
algorithms.
1. Clearly Defined Initial State – The starting point must be well-specified.
2. Goal Test – A function to determine whether a given state is a solution.
3. Well-Defined State Space – The problem should be represented as a set of valid
states.
4. Set of Actions – A list of valid moves to transition between states.
5. Transition Model – A rule defining how actions change states.
6. Path Cost Function – A way to evaluate the cost of moving from one state to another.
For example, in a chess game, the initial board setup, legal moves, and winning conditions
define a well-structured problem.
Iterative Deepening Search (IDS) combines DFS and BFS by repeatedly applying depth-limited
DFS with increasing depth limits. It performs DFS up to a certain depth and then increases the
limit if the goal is not found.
Advantages:
Example: IDS is used in chess engines where deep searches are needed within limited time
constraints.
5. Discuss the time and space complexity of uniform-cost search (UCS).
Uniform-Cost Search (UCS) expands the least-cost node first and finds the optimal path in
weighted graphs.
●
UCS is beneficial for weighted graphs but can be slow if many small-cost steps exist.
f(n)=g(n)+h(n)
where:
9. What are the advantages and disadvantages of hill climbing search?
Alpha-Beta Pruning improves Minimax by skipping unnecessary branches that won't affect the
final decision.
Advantages:
Example: Used in chess engines like Stockfish to analyze millions of positions quickly.
-
10-Mark Questions
1. Explain the state space representation of a problem with a suitable example and
discuss its importance in AI.
Example:
Consider the 8-puzzle problem, where a 3x3 grid has tiles numbered 1-8 and a blank space.
The state space consists of all possible board configurations. Actions include moving tiles into
the blank space. The goal state is a predefined tile arrangement.
Importance in AI:
● Provides a systematic approach to problem-solving.
● Helps in designing efficient search algorithms.
● Enables AI to automate decision-making in robotics, planning, and navigation.
2. Discuss different uninformed search techniques (BFS, DFS, UCS, DLS, IDS) with
their advantages and disadvantages.
3. Compare and analyze different search strategies based on time complexity, space
complexity, completeness, and optimality.
4. Explain informed search techniques and compare greedy best-first search and A
search* with an example.
● Greedy Best-First Search selects the node with the lowest heuristic h(n)h(n)h(n)
(estimated cost to goal).
● A* search uses f(n)=g(n)+h(n)f(n) = g(n) + h(n)f(n)=g(n)+h(n) (actual cost + estimated
cost).
Example: In pathfinding, Greedy may take a direct but blocked route, whereas A* finds the
shortest navigable path.
-
5. Discuss local search algorithms, focusing on hill climbing and simulated
annealing.
Local search algorithms optimize problems without exploring all possible states.
6. Describe the genetic algorithm approach with steps and its applications in AI.
Steps in GA:
Applications:
7. Explain the minimax algorithm with an example and discuss how Alpha-Beta
pruning improves its efficiency.
Minimax is used in adversarial games like chess. It assumes players take optimal moves.
Example: In Tic-Tac-Toe, Minimax evaluates all possible moves and counter-moves to choose
the best strategy.
● Example: In chess, AI predicts the opponent’s best move and counters it using Minimax
with Alpha-Beta pruning.
● Techniques:
○ Minimax: Evaluates moves assuming optimal play.
○ Monte Carlo Tree Search (MCTS): Used in Go and Poker AI.