📘 Course Code: 21CSC206T • Semester 4

Artificial Intelligence Study Hub

Rigorous curricular study guide covering intelligent agent architectures, uninformed vs. informed heuristic search, game trees, propositional and predicate resolution, and Bayesian probabilistic networks.

📊 Methodology Behind PYQ Frequency Analysis

Curriculum priorities below are based on empirical recurrence across SRM IST 21CSC206T examination cycles (2022–2025). Questions are weighted by marks allocation across Part A (2-mark foundational definitions such as PEAS descriptors and heuristic properties), Part B (5-mark algorithm descriptions), and Part C (15-mark numerical problem solving: A* search graph traversal, Alpha-Beta pruning traces, and FOPL resolution proofs).

Unit 1 • Intelligent Agents

Foundations of AI & Agent Architectures

1.1 Rational Agents & PEAS Specification

An agent is anything that perceives its environment through sensors and acts upon it through actuators. A rational agent acts to maximize its expected performance measure given its percept history and built-in knowledge. Environments are formally specified using the PEAS framework:

  • Performance Measure: Quantitative metric evaluating success (e.g., safety, trip duration, fuel economy for an autonomous vehicle).
  • Environment: The operational workspace (e.g., roads, pedestrians, weather conditions).
  • Actuators: Mechanisms for action execution (e.g., steering wheel, accelerator, brakes, signals).
  • Sensors: Inputs for environmental perception (e.g., cameras, LIDAR, speedometer, GPS).

1.2 Environment Properties & Agent Types

Environments are classified across six dimensional axes: Fully vs. Partially Observable, Deterministic vs. Stochastic, Episodic vs. Sequential, Static vs. Dynamic, Discrete vs. Continuous, and Single-Agent vs. Multi-Agent. Agent architectures progress in complexity:

• Simple Reflex Agent: Action = Condition_Action_Rule(current_percept) [Ignores history] • Model-Based Reflex Agent: Maintains internal state of the unobserved world • Goal-Based Agent: Evaluates candidate actions against target objective states • Utility-Based Agent: Maximizes an explicit scalar utility function U(state) • Learning Agent: Critic, Learning Element, Learning Goals, Performance Element
Unit 2 • Problem Solving & Search

Uninformed Search & Informed Heuristic (A*) Search

2.1 Search Algorithm Complexities

Search performance is governed by branching factor $b$, shallowest goal depth $d$, and maximum path length $m$:

BFS (Breadth-First): Complete: Yes | Time: O(b^d) | Space: O(b^d) [Queue FIFO, Optimal if step costs identical] DFS (Depth-First): Complete: No (in infinite spaces) | Time: O(b^m) | Space: O(b·m) [Stack LIFO] UCS (Uniform Cost Search): Complete: Yes | Time: O(b^(1 + ⌊C*/ε⌋)) | Space: O(b^(1 + ⌊C*/ε⌋)) [Priority Queue ordered by path cost g(n)] IDS (Iterative Deepening): Complete: Yes | Time: O(b^d) | Space: O(b·d) [Optimal combination of BFS memory and DFS speed]

2.2 Informed Heuristic Search & A* Optimality

A* search evaluates nodes using the evaluation function $f(n) = g(n) + h(n)$, where $g(n)$ is the exact cost from the start node to node $n$, and $h(n)$ is the estimated heuristic cost from $n$ to the closest goal:

  • Admissibility: A heuristic is admissible if it never overestimates the true cost to reach the goal: $h(n) \le h^*(n)$ for all $n$, and $h(\text{goal}) = 0$. Admissibility guarantees optimality in tree search.
  • Consistency (Monotonicity): For every node $n$ and each successor $n'$ generated by action $a$: $h(n) \le c(n, a, n') + h(n')$. Consistency implies admissibility and guarantees that the first time A* expands a node, the shortest path to that node has been discovered (eliminating re-expansion in graph search).
📐 Worked Example 1: Complete A* Search Graph Traversal Trace

Problem Statement: Find the optimal path from Start ($S$) to Goal ($G$) on the following directed graph. Step costs $c(u, v)$ and heuristic values $h(u)$ are given:
$h(S)=7, h(A)=6, h(B)=2, h(C)=1, h(G)=0$.
Edges: $S \to A$ (cost 2), $S \to B$ (cost 5), $A \to C$ (cost 4), $B \to C$ (cost 2), $C \to G$ (cost 3), $B \to G$ (cost 6).

  1. Iteration 1: Start at $S$. Path cost $g(S) = 0$. $f(S) = g(S) + h(S) = 0 + 7 = 7$.
    Expand $S$. Generate successors:
    • Node $A$: $g(A) = 0 + 2 = 2$, $f(A) = 2 + h(A) = 2 + 6 = \mathbf{8}$.
    • Node $B$: $g(B) = 0 + 5 = 5$, $f(B) = 5 + h(B) = 5 + 2 = \mathbf{7}$.
    Open List: $[(B, f=7), (A, f=8)]$. Closed List: $\{S\}$.
  2. Iteration 2: Select node with minimum $f$: Node $B$ ($f=7$).
    Expand $B$. Generate successors:
    • Node $C$ via $B$: $g(C) = g(B) + c(B, C) = 5 + 2 = 7$, $f(C) = 7 + h(C) = 7 + 1 = \mathbf{8}$.
    • Node $G$ via $B$: $g(G) = g(B) + c(B, G) = 5 + 6 = 11$, $f(G) = 11 + 0 = \mathbf{11}$.
    Open List: $[(A, f=8), (C, f=8), (G, f=11)]$. Closed List: $\{S, B\}$.
  3. Iteration 3: Select Node $A$ ($f=8$, tie-break by generation order).
    Expand $A$. Generate successors:
    • Node $C$ via $A$: $g(C) = g(A) + c(A, C) = 2 + 4 = 6$.
    Notice that this is a cheaper path to $C$ than via $B$ ($g=6 < g=7$). Update $g(C)=6$, $f(C) = 6 + 1 = \mathbf{7}$.
    Open List: $[(C, f=7), (G, f=11)]$. Closed List: $\{S, B, A\}$.
  4. Iteration 4: Select Node $C$ ($f=7$).
    Expand $C$. Generate successors:
    • Node $G$ via $C$: $g(G) = g(C) + c(C, G) = 6 + 3 = 9$, $f(G) = 9 + h(G) = 9 + 0 = \mathbf{9}$.
    Update goal node in Open List since $9 < 11$.
    Open List: $[(G, f=9)]$. Closed List: $\{S, B, A, C\}$.
  5. Iteration 5: Select Goal $G$ ($f=9$). Goal is reached and expanded.
    Optimal Solution Path: $S \to A \to C \to G$ with exact minimum path cost $\mathbf{C^* = 9}$.
Unit 3 • Adversarial Search & CSP

Minimax Algorithm, Alpha-Beta Pruning & Constraint Satisfaction

3.1 Minimax Game Trees

In two-player, zero-sum, perfect-information deterministic games (e.g. Chess, Tic-Tac-Toe), MAX aims to maximize payoff while MIN aims to minimize it. The minimax value of state $s$ is computed recursively:

Minimax(s) = Utility(s) if Terminal-Test(s) max_{a ∈ Actions(s)} Minimax(Result(s, a)) if Player(s) = MAX min_{a ∈ Actions(s)} Minimax(Result(s, a)) if Player(s) = MIN
📐 Worked Example 2: Alpha-Beta Pruning Game Tree Trace

Problem Statement: Trace Alpha-Beta pruning on a 2-ply game tree where root is MAX. Root has children $B$ and $C$ (both MIN nodes).
• $B$ has leaves: $L_1 = 3$, $L_2 = 5$, $L_3 = 6$.
• $C$ has leaves: $L_4 = 2$, $L_5 = 8$, $L_6 = 1$.
Determine the root value and state explicitly which leaf nodes are pruned.

  1. Root Initialization: Root node $A$ initializes with $\alpha = -\infty, \beta = +\infty$.
  2. Evaluate Subtree at $B$ (MIN node): Pass $\alpha = -\infty, \beta = +\infty$.
    • Inspect $L_1 = 3$: $\beta = \min(\infty, 3) = 3$.
    • Inspect $L_2 = 5$: $\beta = \min(3, 5) = 3$.
    • Inspect $L_3 = 6$: $\beta = \min(3, 6) = 3$.
    Node $B$ returns value $3$. Root $A$ updates: $\alpha = \max(-\infty, 3) = \mathbf{3}, \beta = +\infty$.
  3. Evaluate Subtree at $C$ (MIN node): Pass inherited $\alpha = 3, \beta = +\infty$.
    • Inspect $L_4 = 2$: $\beta = \min(+\infty, 2) = \mathbf{2}$.
    • Check Pruning Condition: Here $\alpha \ge \beta$ ($3 \ge 2$) holds!
    • Pruning Triggered: The remaining children of $C$ ($L_5 = 8$ and $L_6 = 1$) are PRUNED without evaluation because MIN at node $C$ will never choose a value greater than 2, and MAX at root $A$ already has a guaranteed outcome of at least 3 from node $B$.
  4. Root Final Value: Node $A$ selects $\max(3, 2) = \mathbf{3}$. Leaves $L_5$ and $L_6$ are successfully pruned, reducing state evaluations by $33\%$.
Unit 4 • Knowledge & Reasoning

Logic Representation, Unification & Resolution Refutation

4.1 Conjunctive Normal Form (CNF) Conversion Steps

Resolution refutation requires transforming First-Order Predicate Logic (FOPL) statements into a conjunction of disjunctive clauses through seven algorithmic steps:

  1. Eliminate Implications: Replace $P \implies Q$ with $\neg P \lor Q$. Replace $P \iff Q$ with $(\neg P \lor Q) \land (\neg Q \lor P)$.
  2. Move Negations Inward (De Morgan's Laws): $\neg(P \land Q) \equiv \neg P \lor \neg Q$, $\neg(P \lor Q) \equiv \neg P \land \neg Q$, $\neg(\forall x P(x)) \equiv \exists x \neg P(x)$, $\neg(\exists x P(x)) \equiv \forall x \neg P(x)$.
  3. Standardize Variables: Ensure each quantifier binds a unique variable name: $(\forall x P(x)) \lor (\exists x Q(x)) \to (\forall x P(x)) \lor (\exists y Q(y))$.
  4. Skolemization: Eliminate existential quantifiers. Replace $\exists x P(x)$ with Skolem constant $P(A)$. Replace $\forall x \exists y Q(x, y)$ with Skolem function $Q(x, f(x))$.
  5. Drop Universal Quantifiers: All remaining variables are implicitly universally quantified.
  6. Distribute $\lor$ over $\land$: Convert to pure product-of-sums: $(A \land B) \lor C \equiv (A \lor C) \land (B \lor C)$.
  7. Isolate Clauses: Separate clauses into a set of disjunctions ready for resolution.

4.2 Resolution Refutation Proof Strategy

To prove query $Q$ from knowledge base $KB$: Negate the query ($\neg Q$), add it to the clause set, and repeatedly resolve complementary literals ($L$ and $\neg L$) until the empty clause (nil / $\Box$) is derived, establishing a contradiction that proves $Q$ must be true.

Unit 5 • Uncertain Knowledge

Probabilistic Reasoning & Bayesian Belief Networks

5.1 Bayes' Rule & Conditional Independence

Bayes' Rule: P(A | B) = [ P(B | A) · P(A) ] / P(B) Full Joint Expansion: P(X_1, X_2, ..., X_n) = Π_{i=1}^n P(X_i | Parents(X_i)) d-separation Rule: A path is blocked between X and Y by evidence set E if: 1. Path contains a chain (X -> Z -> Y) or fork (X <- Z -> Y) and Z ∈ E. 2. Path contains a collider (X -> Z <- Y) and neither Z nor any descendant of Z is in E.

Lecture Notes & PPT Presentations

Directly synced from SRM IST Google Drive. Interactive preview and verified downloads:

⏳
Connecting to Google Drive repository…
Academic Provenance & Verification Notice: This study guide is authored by peer student tutors and academic contributors for the SRM IST 21CSC206T curriculum based on standard reference works (Russell & Norvig). For syllabus queries or revision updates, contact the editorial team via Contact Us.